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

Liste des GroupesRevenir à lang 
Sujet : Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}
De : no_email (at) *nospam* invalid.invalid (Antonio Marques)
Groupes : sci.lang comp.text.tex de.comp.text.pdf de.comp.text.tex comp.text.pdf
Date : 24. Jul 2024, 16:02:03
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v7r1gr$1p3a6$1@dont-email.me>
References : 1 2
User-Agent : NewsTap/5.5 (iPhone/iPod Touch)
Peter Flynn <peter@silmaril.ie> wrote:
On 19/07/2024 06: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}
 
That's because \ is for prematurely ending a line, not for combining them.
 
It's also used (differently) in tabular setting to signal the end of a row.
 
Can you explain what you want to do, with a worked example?
"want 2 lines to stay together" doesn't give enough information.
 

It's very difficult to get information out of the OP, but from what I've
seen elsewhere the main issue was widow / orphan control.

(That would indicate that anything focusing on those specific two lines is
wrong from the start, as layout should work automatically before needing to
be manual.)

Not having touched latex for 20 years now, I have no idea where to look,
but I'm reasonably sure it shouldn't be difficult.


Date Sujet#  Auteur
19 Jul 24 * (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}11HenHanna
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}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}1Athel Cornish-Bowden
25 Jul 24  `* Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}2HenHanna
25 Jul 24   `- Re: (LaTeX) This doesn't work -- \mbox{ First Line \\ Second Line}1Ulrich D i e z

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal