LaTeX - 更改文档的字体大小,但在序言中,而不是文档类? [英] LaTeX - Changing the font size for a document, but in the preamble, not the document class?
问题描述
documentclass
部分。不过,我从另一个程序生成LaTeX文件,它是设置文档类,我不能改变。但是我可以在序言中加入一些东西。是否有改变序言中字体的大小,而不需要触及documentclass声明。
你可以使用 \fontsize {size} {skip}
命令,其中size是你想要的字体大小,skip是行之间的距离(乘以baselineskip)。
为使新的字体大小生效,您需要使用 \selectfont
。
类似的问题已经在这里问:如何设置毫米的LaTeX字体大小?
I have a LaTeX document. I want to change the font size of all the text, to make it smaller.
Normally I would just change the documentclass
part. However I am generating LaTeX files from another programme, and it is setting the documentclass, I can't change that. However I can put things in the preamble.
Is there anyway to change the font size in the preamble, without touching the documentclass declaration.
You can use the \fontsize{size}{skip}
command, where size is your desired fontsize, and skip is the distance between lines (multiplied by baselineskip).
For the new fontsize to take effect, you need to follow this command with \selectfont
.
A similar question has been asked here: how to set LaTeX font size in millimeter?
这篇关于LaTeX - 更改文档的字体大小,但在序言中,而不是文档类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!