Text FormattingText size changes after a large title

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
notnek
Posts: 11
Joined: Mon Dec 07, 2009 5:09 pm

Text size changes after a large title

Post by notnek »

Code: Select all

\newpage\noindent
\Large{\textbf{Non-crossing partitions}}
\vskip 1.5cm \noindent 
A partition...
In my document, the text beginning, 'A partition' is as large as the title even though I ended \large after the title.

I don't think this was happening before and I'm really confused.

Can someone help?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Text size changes after a large title

Post by gmedina »

Hi,

\Large and their relatives are not commands with arguments.

To keep their scope local, use the grouping mechanism; i.e., instead of

Code: Select all

\Large{\textbf{Non-crossing partitions}}
use

Code: Select all

{\Large\textbf{Non-crossing partitions}}
or

Code: Select all

{\Large\bfseries Non-crossing partitions}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply