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.pdfDate : 24. Jul 2024, 15: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.