1

Here is my example. I'm trying to align both sets of <, and if possible, center the middle term on the second row.

\documentclass{article}

\usepackage[semibold,tt=false]{libertine}
\usepackage{libertinust1math}
\usepackage{siunitx}
\newcommand{\longsymbolone}{\delta\Delta\Phi_{\text{cell}(\text{IL, }\SI{0}{\percent})}}
\newcommand{\longsymboltwo}{\delta\Delta\Phi_{\text{cell}}(\text{PIL, B0})}
\newcommand{\longsymbolthree}{\delta\Delta\Phi_{\text{cell}}(\text{PIL, B0})}

\begin{document}

\begin{equation}
\begin{aligned}
  \longsymbolone &< \longsymboltwo < \longsymbolthree\\
  \SI[separate-uncertainty]{0.01(12)}{\volt} &< \SI[separate-uncertainty]{-0.02(10)}{\volt} < \SI[separate-uncertainty]{0.01(16)}{\volt}
\end{aligned}
\end{equation}

\end{document}

mwe

2 Answers 2

1

It's easy to do with the eqparbox package, which uses a system of tags for box ommands, so that two boxes with the same tag have as width the natural width of the widest content.

\documentclass{article}

\usepackage[semibold,tt=false]{libertine}
\usepackage{libertinust1math}
\usepackage{siunitx}
\newcommand{\longsymbolone}{\delta\Delta\Phi_{\text{cell}(\text{IL, }\SI{0}{\percent})}}
\newcommand{\longsymboltwo}{\delta\Delta\Phi_{\text{cell}}(\text{PIL, B0})}
\newcommand{\longsymbolthree}{\delta\Delta\Phi_{\text{cell}}(\text{PIL, B0})}

\usepackage{eqparbox}
\newcommand{\eqmathbox}[2][M]{\eqmakebox[#1]{$\displaystyle #2$}}

\begin{document}

\begin{equation}
\begin{aligned}
  \longsymbolone &< \eqmathbox{\longsymboltwo} < \longsymbolthree\\
  \SI[separate-uncertainty]{0.01(12)}{\volt} &< \eqmathbox{\SI[separate-uncertainty]{-0.02(10)}{\volt}} < \SI[separate-uncertainty]{0.01(16)}{\volt}
\end{aligned}
\end{equation}

\end{document} 

enter image description here

2

It's easy with array:

\documentclass{article}

\usepackage[semibold,tt=false]{libertine}
\usepackage{libertinust1math}
\usepackage{siunitx,array}
\newcommand{\longsymbolone}{\delta\Delta\Phi_{\text{cell}(\text{IL, }\SI{0}{\percent})}}
\newcommand{\longsymboltwo}{\delta\Delta\Phi_{\text{cell}}(\text{PIL, B0})}
\newcommand{\longsymbolthree}{\delta\Delta\Phi_{\text{cell}}(\text{PIL, B0})}

\begin{document}

\begin{equation}
\renewcommand{\arraystretch}{1.2}
\setlength{\arraycolsep}{0pt}
\sisetup{separate-uncertainty}
\begin{array}{r >{{}}c<{{}} c >{{}}c<{{}} l}
  \longsymbolone       &<& \longsymboltwo        &<& \longsymbolthree\\
  \SI{0.01(12)}{\volt} &<& \SI{-0.02(10)}{\volt} &<& \SI{0.01(16)}{\volt}
\end{array}
\end{equation}

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .