Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}

Liste des GroupesRevenir à ct tex 
Sujet : Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}
De : scott+ctt (at) *nospam* pakin.org (Scott Pakin)
Groupes : comp.text.tex
Date : 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

Date Sujet#  Auteur
19 Jul 24 * (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}13HenHanna
19 Jul 24 +- Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}1Ulrich D i e z
20 Jul 24 +* Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}2Scott Pakin
20 Jul 24 i`- Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}1HenHanna
20 Jul 24 +* Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}3Jeff Barnett
20 Jul 24 i`* Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}2Axel Berger
20 Jul 24 i `- Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}1Ulrich D i e z
24 Jul 24 +* Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}2Peter Flynn
24 Jul 24 i`- Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}1Antonio Marques
25 Jul 24 `* Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}4Eberhard W Lisse
25 Jul 24  `* Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}3HenHanna
25 Jul 24   `* Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}2Ulrich D i e z
19 Aug 24    `- Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}1Scott Pakin

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal