Changing default font sizeAdd tags
3 posts
• Page 1 of 1
Changing default font sizeHello,
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 \fontsize{12}{15}\selectfont but it doesn't work. It seems like this is working only when used after \begin{document}. Thanks, Moshe
Re: Changing default font sizeIn 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:
Re: Changing default font sizeThanks, phi, this is exactly what I needed.
Cheers!
3 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 14 guests |





