Text FormattingOne Document: appendix with smaller font size - possible?

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
hoembi
Posts: 2
Joined: Mon Aug 09, 2010 10:20 pm

One Document: appendix with smaller font size - possible?

Post by hoembi »

Hi guys,

I am currently writing on a bachelor thesis and have the following problem:
My document has font size 12. I want the appendix to be much smaller - say 10pt instead of 12, because otherwise it would just grow immensly big.

Is there any possibility to do such a thing, i.e. having another font-size in the appendix?

greetings hoembi

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

Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

One Document: appendix with smaller font size - possible?

Post by Stefan Kottwitz »

Hi hoembi,

welcome to the board!

It's not the best, to change the base font size within the document. You could redefine \normalsize.

A quick way could be both redefining and switching, let's say to small:

Code: Select all

\let\normalsize\small
\appendix
\small
But one should redefine \large, \small, \footnotesize etc. accordingly if the appendix uses different sizes.

Or, put the appendix in a separate document with a different base font size.

Stefan
LaTeX.org admin
hoembi
Posts: 2
Joined: Mon Aug 09, 2010 10:20 pm

Re: One Document: appendix with smaller font size - possible

Post by hoembi »

Thanks for this fast answer.

I tried your hints but then I realized that this cannot work, because my Programm Code is in lstlisting environment (to grant the exact illustration of the code).

So what I need to do is to define a new lstlisting (because in the document itself I also use the lstlisting) and make sure only the lstlisting in the Appendix has the smaller fontsize.
But I have absolutely no clue how to do so....

Maybe someone knows how this can be achieved.

thx in advance
hoembi
User avatar
Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

One Document: appendix with smaller font size - possible?

Post by Stefan Kottwitz »

Try

Code: Select all

\lstset{basicstyle=\small}
or \tiny or other font size commands before the appendix.

Stefan
LaTeX.org admin
Post Reply