Text FormattingChange default font size

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
vdmedragon
Posts: 2
Joined: Thu Dec 23, 2010 9:14 pm

Change default font size

Post by vdmedragon »

I use 12pt foont size for the document but it makes the table does not fit one page any more (even when I use \tiny, \small ... for the tables). It works well if the default font size of the document is 10pt.

I would like to know how I can change the size of font base for the tables, reduce from 12pt to 10pt?

I really need your help. Thanks a lot.
Last edited by vdmedragon on Fri Dec 24, 2010 6:26 pm, edited 1 time in total.

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

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Change default font size

Post by meho_r »

Hi and welcome to the forum.

You can always change font size using \small or \footnotesize of similar commands. I'm not sure what the problem is in your case. This works as expected:

Code: Select all

\documentclass[12pt]{article}

\usepackage{lipsum}% just to generate some dummy text

\begin{document}

\lipsum[1]% dummy text

\begin{table}\centering\tiny

\begin{tabular}{ccc}
Test I & Test II & Test III\\
1 & 2 & 3\\
4 & 5 & 6
\end{tabular}
\caption{A table}

\end{table}

\end{document}
So, please follow instructions written here and build a Minimal Working Example (MWE) which shows the problem clearly.
vdmedragon
Posts: 2
Joined: Thu Dec 23, 2010 9:14 pm

Re: Change default font size

Post by vdmedragon »

Thanks for your help. I managed to handle it yesterday. I use Lyx and my latex skill is not good enough. I used a float table and to reduce the font size, I added a latex command inside the float. Before, I put it outside and it did not work. Put it outside or use commands in the menu, they can reduce the font size but they can not reduce the height of cells.
Post Reply