> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/latex/zh-cn/latex-cuo-wu/32-unused-global-option-s.md).

# 未使用的全局选项

当类的全局选项之一使用不正确时，会出现此错误。LaTeX 中的大多数类文件都会带有不同的选项，例如 **`10pt`** 字体大小，或者 **`a5paper`**。这些会插入到以下内容中的方括号里 **`\documentclass[options]{class}`** 在文档开头。如果你错误地指定这些选项，你将生成一条看起来像这样的错误信息：

main.tex

未使用的全局选项

## 常见原因

**使用该类不提供的字体选项：**

大多数标准的 LaTeX 类只接受 **`10pt`**, **`11pt`** 或 **`12pt`** 字体选项。如果你写了类似这样的字体选项 **`\documentclass[13pt]{article}`** ，你将产生一个 *未使用的全局选项* 错误，因为 **`13pt`** 字体大小不是一个有效选项。

某些类，例如 **`scrbook`** 能够接受任意字体大小作为选项。这使用户可以写出如下选项 **`\documentclass[fontsize=16pt]{scrbook}`**。每当使用新类时，你都应始终查看该类文档中可用的字体选项。

若要获得更丰富的字体大小选项，可以考虑使用 [**`extsizes`**](http://ctan.org/pkg/extsizes) 宏包。该宏包提供了如下类： **`extarticle`**, **`extreport`**, **`extbook`** 和 **`extletter`**。这些类允许使用以下字体选项： **`8pt`**, **`9pt`**, **`10pt`**, **`11pt`**, **`12pt`**, **`14pt`**, **`17pt`** 或 **`20pt`**.

如果你想进一步了解 LaTeX 中不同的字体大小，请查看我们的 [文档](/latex/zh-cn/zi-ti/01-font-sizes-families-and-styles.md).

**使用类未指定的选项：**

该错误信息的另一个常见原因是使用了类未指定的选项。一个例子是写 **`\documentclass[doublesided]{Thesis}`** 当尝试为 **`Thesis`** 类使用双面页面格式时。这是一个错误，因为 **`Thesis`** 该类将此选项命名为 **`twosided`**。因此，要使用双面页面格式，你必须写 **`\documentclass[twosided]{Thesis}`**.

这类选项会因类而异。因此，检查类文件以及随附的任何文档都很重要。这样你就能知道该类可用哪些选项。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/latex/zh-cn/latex-cuo-wu/32-unused-global-option-s.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
