LaTeX Books


LaTeX Beginners Guide

Limited discount 50%
coupon code tDRet6Y

click here to read the whole story

LaTeX users online

In total there are 24 users online :: 0 registered, 0 hidden and 24 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 24 guests

Changing default font size

LaTeX Forum: General

Add tags LaTeX specific issues not fitting into one of the other forums of this category.

Postby midan on Sat Dec 20th, 2008

I would like to change the default font size of a latex file to, e.g., 12pt, in the preamable, and not within the class options. Specifically, I am using Ipe to generate drawings to be later included in my LaTeX document. Ipe generates text using a temporary latex file that starts with \documentclass{article}. I have no control over the options, hence cannot state \documentclass[12pt]{article}, which I would normally do. I can add preamable commands, but that's it.
So the question is: what would be an alternative to the [12pt] option of the article class. Maybe a package with a default options to specify the font size? I tried
but it doesn't work. It seems like this is working only when used after \begin{document}.
Posts: 5
Joined: Thu Aug 14th, 2008

Postby phi on Sat Dec 20th, 2008

In the standard document classes, the font size selection works as follows: The last digit of the default font size (0, 1 or 2) is saved in the command \@ptsize, then the file size1\@ptsize.clo is read, which changes some parameters. So you should be able to simulate the behavior by adding the following to the preamble:
Code: Select all  •  Open in writeLaTeX
Posts: 578
Joined: Tue Oct 21st, 2008

Postby midan on Sun Dec 21st, 2008

Thanks, phi, this is exactly what I needed.
Posts: 5
Joined: Thu Aug 14th, 2008

Return to General

LaTeX users online

Users browsing this forum: No registered users and 24 guests