koma-classes:DIV 为 14.0pt 且使用的 papersize 未定义

koma-classes:DIV 为 14.0pt 且使用的 papersize 未定义

当我使用 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真的不够。

相关内容