未使用的全局选项警告

未使用的全局选项警告

我收到一个警告:

未使用的全局选项:[11pt,a4paper]

我一直在使用的代码:

\documentclass[11pt,a4paper,polish,thesis]{dcsbook}    
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{indentfirst}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{3}

我查看了论坛,似乎 11pt 和 a4paper 都是有效的选项。我该如何修复它?

@Edit 下一条消息是

(thesis-template-latex.aux) (C:\...\Miktex 2.9\tex\latex\lm\t1lmr.fd")

thesis-template-latex.aux的内容:

\relax 
\catcode `"\active 
\select@language{polish}
\@writefile{toc}{\select@language{polish}}
\@writefile{lof}{\select@language{polish}}
\@writefile{lot}{\select@language{polish}}
\@writefile{toc}{\contentsline {chapter}{\numberline {1}Wst\IeC {\k e}p}{3}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\@writefile{toc}{\contentsline {section}{\numberline {1.1}Cel i zakres pracy}{3}}
\citation{ruby1}
\citation{rails1}
\@writefile{toc}{\contentsline {chapter}{\numberline {2}U\IeC {\.z}yte narz\IeC {\k e}dzia}{5}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\@writefile{toc}{\contentsline {section}{\numberline {2.1}Ruby}{5}}
\@writefile{toc}{\contentsline {section}{\numberline {2.2}Ruby on Rails}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.1}Model-View-Controller}{6}}
\@writefile{lof}{\contentsline {figure}{\numberline {2.1}{\ignorespaces Schematyczna reprezentacja wzorca model-view-controller.\relax }}{7}}
\@writefile{toc}{\contentsline {section}{\numberline {2.3}Bootstrap}{7}}
\citation{test1}
\citation{ruby3}
\citation{rails4}
\@writefile{toc}{\contentsline {chapter}{\numberline {3}Test Driven Development}{9}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\@writefile{toc}{\contentsline {chapter}{\numberline {4}Deployment aplikacji}{13}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\@writefile{toc}{\contentsline {chapter}{\numberline {5}Opis relacji w bazie danych}{15}}
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\@writefile{lof}{\contentsline {figure}{\numberline {5.1}{\ignorespaces Schemat relacji w bazie danych\relax }}{16}}
\bibcite{ruby1}{1}
\bibcite{ruby2}{2}
\bibcite{ruby3}{3}
\bibcite{rails1}{4}
\bibcite{rails2}{5}
\bibcite{rails3}{6}
\bibcite{rails4}{7}
\bibcite{test1}{8}
\bibcite{automa1}{9}
\bibcite{automa2}{10}
\bibcite{automa3}{11}
\@writefile{toc}{\contentsline {chapter}{Bibliografia}{17}}
\ttl@finishall

答案1

你没说,但我认为课程是

http://www.cs.put.poznan.pl/csobaniec/software/latex/dcsgroup-classes.html

这有两个\ProcessOptions命令,一个是错误,另一个是虚假消息的原因。

要删除它们需要重新排列类代码以确保和之间没有\RequirePackage线。\DeclareOption\ProcessOptions

另一方面,据我所知,除了第二个\ProcessOptions令人困惑的 LaTeX 内部关于哪些选项已被处理之外,它正在按预期工作,所以忽略错误是足够安全的,尽管你应该向课程作者报告。

答案2

(上面的引述是完整的错误消息吗?请查看您的日志文件。它应该准确地告诉您哪个文件在抱怨。)

我不知道dcsbook您正在使用的 -class,但是如果您收到该错误消息,则似乎这些选项并未真正在该类中定义。

dcsbook尝试用普通的book或者有点欧洲风格的兄弟替换scrbook,错误信息就会消失。

如果您必须使用dcsbook,则删除选项11pt, a4paper,以消除错误消息。

但也许,您必须向我们提供更多信息?

相关内容