3

I am willing to do something like this. but unable to figure out how to put curly braces and arrows with text.

enter image description here

% !TEX program = xelatex
\documentclass[a4paper,12pt]{article}
\setcounter{secnumdepth}{0}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[version=4]{mhchem}
\usepackage{framed}
\usepackage{mathtools}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{polyglossia}
\setmainlanguage[numerals=Devanagari]{bengali}
\setotherlanguage{english}
\newfontfamily\englishfont{Times New Roman}
\newfontfamily\bengalifont[Script=Bengali,BoldFont={Kalpurush},BoldFeatures={FakeBold=2.5},ItalicFont={Kalpurush}, ItalicFeatures={FakeSlant=0.3}]{Kalpurush}
\begin{document}
\begin{align*}
    \ce{H2SO4} + \ce{H2O &-> H2SO4} \qquad \qquad \Delta H = -30.5 \text{Kj}\\
    \ce{H2SO4} + 10\ce{H2O &-> H2SO4} \qquad \qquad \Delta H = -68 \text{Kj}\\
    \ce{H2SO4} + 19\ce{H2O &-> H2SO4} \qquad \qquad \Delta H = -70.7 \text{Kj}\\
    \ce{H2SO4} + 450\ce{H2O &-> H2SO4} \qquad \qquad \Delta H = -84.52 \text{Kj}\\
    \ce{H2SO4} + 451\ce{H2O &-> H2SO4} \qquad \qquad \Delta H = -84.52 \text{Kj}
\end{align*}
\end{document}

enter image description here

2
  • 2
    Are the Kj the kilojoule units?
    – Bernard
    Apr 16 '20 at 12:53
  • @Bernard yes they are.
    – Soyeb Jim
    Apr 16 '20 at 12:56
3

I propose this solution, based on an alignat* environment and pstricks. I replaced mhchem with the chemformula package, because it has a simpler syntax when used in equations. I defined empty nodes (\pnode command) at the relevant places and connected them with arrows or braces. The only constraint is that these nodes cannot be contained in the argument of a \ch command.

\documentclass{article}
\setcounter{secnumdepth}{0}
\usepackage{amsmath, amssymb}
\usepackage{chemformula}
\usepackage{siunitx}
\usepackage{tikz}
\usepackage{pbox}
\usepackage{pstricks-add}

\begin{document}

\begin{alignat*}{5}
 & & \ch{H2SO4 & + & H2O &-> H2SO4} & \qquad \qquad ΔH & = \SI{-30.5}{\kJ} & & \pnode[1ex, 2ex]{BrT}\\
 & & \ch{ H2SO4 & + & 10 H2O &-> H2SO4} & ΔH & = \SI{-68}{\kJ} & \\
 & & \ch{H2SO4 & + & 19 H2O &-> H2SO4} & ΔH & = \SI{-70.7}{\kJ}\\
 & & \ch{H2SO4} & + & \pnode[1.55em, -2pt]{L1} \ch{450 H2O& -> H2SO4} & ΔH & =\SI{-84.52}{\kJ} & & \pnode[1ex, -0.5ex]{BrB} \pnode[5em, 0pt]{C}\\
\rnode{L2}{\parbox[t]{1in}{\centering Some text on several lines}}& \qquad & \ch{H2SO4 & + & 451 H2O &-> H2SO4} & ΔH & = \SI{-84.52}{\kJ}\\
\psset{linewidth=0.5pt, linejoin=1, arrows=->, arrowinset=0.15}
\ncangle[angleA=-90, offsetB=2pt]{L1}{L2}
\psbrace[singleline, linewidth=0.6pt, braceWidthInner=3pt, braceWidthOuter=2pt, nodesep=0.5ex](BrB)(BrT){\text{Some other text}}
\ncline[offsetA=0.5ex, nodesepA=3pt]{BrB}{C}\uput[r](C){\text{A last text}}
 \end{alignat*}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.