LyX ⇒ Title on 2 lines
Title on 2 lines
I'd like to use the "Title" environnment to write my title on 2 lines.
To do so, I write the first title, then press alt+return and write the following title. But when I look at the pdf, the first title is invisible.
Thanks for your help.
PS: I don't want to use the "Subtitle" environnment
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Title on 2 lines
Edit: I looked at the LaTeX code generated by Lyx. A title in LaTeX is specified with the \title{} command, and typeset by putting \maketitle in the document where the title should appear. When you hit Alt + Enter you start a new \title{}, instead of keeping in the same. Only the last instance of \title will be called by \maketitle.
What happens with Alt + Enter:
Code: Select all
\documentclass{article}
\begin{document}
\title{First line of title}
\title{Second line of title}\maketitle
\end{document}
Code: Select all
\documentclass{article}
\begin{document}
\title{First line of title \\
Second line of title}\maketitle
\end{document}