views:

5528

answers:

2

hi,

I need to set the font size in millimeters in my LaTeX document. how can I do that?

thank you!

+12  A: 

Are you using Type 1 fonts (that is, infinitely scalable fonts)? If not, you'll need to do something like \usepackage{lmodern} (that selects my preferred fonts, the Latin Modern version of Computer Modern). Then just enter a command like

\fontsize{8mm}{9mm}\selectfont

and the following text will be in a font 8 mm high on a 9 mm baseline. If you need to set the size of more than a small amount of text in this way, you will probably have to go into the document class definition -- good luck; I stay as far away from those as I possibly can.

kquinn
To be more specific, the sizing parameters (which adjust when you type \small, \large, etc.) are defined for the standard classes in size{10,11,12}.clo. Make a new one of them and hack away...
Will Robertson
A: 

Hi

Try \setlength{\textwidth}{Wmm} \setlength{\textheight}{Hmm} where W is text width in mm and H is text height in mm.

cheers

Andriyev
I don't think this answers the question. Or did I misread it?
dmckee
dmckee is right, this doesn't answer the question. this answer shows how to set the size of the page text area, and I want to know how to set the size of the font character.
cd1