![koma-classes:DIV 为 14.0pt 且使用的 papersize 未定义](https://linux22.com/image/305128/koma-classes%EF%BC%9ADIV%20%E4%B8%BA%2014.0pt%20%E4%B8%94%E4%BD%BF%E7%94%A8%E7%9A%84%20papersize%20%E6%9C%AA%E5%AE%9A%E4%B9%89.png)
当我使用 14pt 的 KOMA-script 文章类时收到以下警告:
/usr/share/texlive/texmf-dist/tex/latex/koma-script/typearea.sty:
Package typearea Warning: DIV for 14.0pt and used papersize
(typearea) not defined!
(typearea) Using DIV=1.
我做错了什么吗?如何解决此警告?
整个例子如下:
\documentclass [fontsize=14pt] {scrartcl}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\begin{document}
Your introduction goes here! Some examples of commonly used commands and
features are listed below, to help you get started. If you have a question,
please use the help menu (``?'') on the top bar to search for help or ask
us a question.
\end{document}
答案1
只需让它计算一个 DIV 值并告诉它一个纸张大小:
\documentclass [fontsize=14pt, paper=a4, pagesize, DIV=calc] {scrartcl}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\begin{document}
Your introduction goes here! Some examples of commonly used commands and
features are listed below, to help you get started. If you have a question,
please use the help menu (``?'') on the top bar to search for help or ask
us a question.
\end{document}
如果您不喜欢计算出的值,您可以告诉typearea
使用哪个值:DIV=12
例如。
你应该只utf8x
使用utf8
真的不够。