Sujet : Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}
De : scott+ctt (at) *nospam* pakin.org (Scott Pakin)
Groupes : comp.text.texDate : 20. Jul 2024, 01:23:27
Autres entêtes
Message-ID : <34fe0d85-8b87-4aa1-a2e6-b2057064299c@pakin.org>
References : 1
User-Agent : Mozilla Thunderbird
On 7/18/24 23:31, HenHanna wrote:
i want 2 lines to stay together... How do i do it?
This apparently doesn't work.
\mbox{ First Line \
Second Line}
\mbox is for single-line text only. How about using a tabular?
\documentclass{article}
\begin{document}
\begin{tabular}[t]{@{}ll@{}}
First Line \
Second Line
\end{tabular}
\end{document}
-- Scott