I am trying to out my boundary conditions in curly brackets but have got errors
1,520
Solution 1
the first column in numcases
is in math node, the socond in "text" mode. consequently all$
in the first column should be removed:
\documentclass{article}
\usepackage{amsmath,cases}
\begin{document}
\begin{numcases}{}
T(r_{0})=T_{0} & \\
T\xrightarrow{}0 & for $r\rightarrow\infty $
\end{numcases}
\end{document}
Solution 2
JUst to point the same result can be obtained with empheq
(which loads mathtools
, hence amsmath
), with more control on the layout:
\documentclass{article}
\usepackage{empheq}
\begin{document}
\begin{empheq}[left = \empheqlbrace]{alignat = 2}
& T(r_{0})=T_{0}, & \\
& T\xrightarrow{}0 &\quad & \text{for } r \rightarrow \infty
\end{empheq}
\bigskip
or even :
\setcounter{equation}{0}
\begin{subequations}
\begin{empheq}[left = \empheqlbrace]{alignat = 2}
& T(r_{0})=T_{0}, & \\
& T\xrightarrow{}0 &\quad & \text{for } r \rightarrow \infty
\end{empheq}
\end{subequations}
\end{document}
Related videos on Youtube
Author by
K-Q
PhD Student in Analysis and its Applications. I will be considering highly volatile materials and preventing accidental explosions.
Updated on February 20, 2020Comments
-
K-Q over 3 years
I am currently conducting research on the solar wind and need to include boundary conditions in my paper. I have used the following:
\usepackage{amsmath,cases} \begin{numcases}{} $ T(r_{0})=T_{0} $ & \\ $ T\xrightarrow{}0 $ & \text{for $r\xrightarrow{}\infty $} \end{numcases}
Which produces what I would like but I get errors for these lines, shown in the image. I am unsure how to correct these, any advice would be welcome.
-
egreg over 5 yearsWelcome to TeX.SX! Rather than a picture, it's better to show a minimal example starting from
\documentclass
up to\end{document}
.
-
-
Zarko over 5 years@barbarabeeton, ups, i wasn't precise. hopefully now is better :-)