【问题标题】:Why would LaTeX ignore the font size in the documentclass [closed]为什么 LaTeX 会忽略文档类中的字体大小 [关闭]
【发布时间】:2010-04-15 09:34:06
【问题描述】:

我有一个 LaTeX 文件。我正在尝试减小字体大小(这与我在此处LaTeX - Changing the font size for a document, but in the preamble, not the document class? 的另一个问题有关)。

LaTeX 文件是从另一个程序生成的。我已经编辑了它以开始

\documentclass[4pt,a4paper,english]{report}

即我正在尝试使文本非常小。但是它不起作用。我将 4pt 更改为任何内容,字体大小相同。

在其上运行 pdflatex 时,我会打印出这条消息。

LaTeX Warning: Unused global option(s):
    [4pt].

这可以解释为什么错误消息是

这里会发生什么?如何让它使用documentclass 定义中的字体大小?

【问题讨论】:

  • 有点跑题了,如果你有时间,可以看看 xelatex,它提供了更出色的字体处理能力。

标签: text latex formatting text-formatting


【解决方案1】:

你只能使用

10pt|11pt|12pt

在默认documentclass

我认为您必须重新定义主要文本命令以支持较小(不可读)的字体大小

【讨论】:

    【解决方案2】:

    没有为文档类article 定义选项4pt,正如已经提到的。所以你的 4pt 根本无法被 LaTeX 识别。

    但是,您可以使用extsizes 包,它允许更多尺寸选项:8 到 12、14、17 和 20pt。但是不支持 4pt。存在其他允许非标准默认尺寸的软件包,列在同一页面上。

    【讨论】:

    • 正是我想要的。谢谢
    【解决方案3】:

    使用\documentclass[10pt,a4paper,english]{article},然后在\begin{document} 之后指定\tiny

    【讨论】:

      猜你喜欢
      • 2013-11-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-08-10
      • 2018-12-22
      • 2011-10-24
      • 1970-01-01
      相关资源
      最近更新 更多