简体   繁体   English

如何设置以毫米为单位的LaTeX字体大小?

[英]how to set LaTeX font size in millimeter?

I need to set the font size in millimeters in my LaTeX document. 我需要在LaTeX文档中设置以毫米为单位的字体大小。 how can I do that? 我怎样才能做到这一点?

thank you! 谢谢!

Are you using Type 1 fonts (that is, infinitely scalable fonts)? 您使用的是Type 1字体(即无限可缩放字体)吗? If not, you'll need to do something like \\usepackage{lmodern} (that selects my preferred fonts, the Latin Modern version of Computer Modern). 如果没有,你需要做一些像\\usepackage{lmodern} (选择我喜欢的字体,拉丁现代版的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. 以下文字将是9毫米基线上8毫米高的字体。 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. 我尽可能地远离那些。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM