> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-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://overleaf-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.
