クラスを使用してこの単純なドキュメントをコンパイルしようとしていますabntex2
が、何らかの奇妙な理由で次の 2 つのエラーが発生します。
! Missing number, treated as zero.
<to be read again>
\relax
l.175 \chapter{Capítulo 1}
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
! Illegal unit of measure (pt inserted).
<to be read again>
\relax
l.175 \chapter{Capítulo 1}
Dimensions can be in units of em, ex, in, pt, pc,
cm, mm, dd, cc, nd, nc, bp, or sp; but yours is a new one!
I'll assume that you meant to say pt, for printer's points.
To recover gracefully from this error, it's best to
delete the erroneous units; e.g., type `2' to delete
two letters. (See Chapter 27 of The TeXbook.)
コードは単純に次のようになります:
\documentclass[12pt,oneside,a4paper]{abntex2}
\begin{document}
\chapter{test}
\section{test}
\end{document}
答え1
編集(ギリェルメ・Z・サントス):この問題は報告され修正されたTeX Live 2015 ディストリビューションで、以下の解決策の他に、まだこの問題が発生している場合は、TeX ディストリビューションを更新してみてください。
クラスはパッケージを想定しているようですが、ロードはしていませんcalc
。
これはうまくいく
\documentclass[12pt,oneside,a4paper]{abntex2}
\usepackage{calc}
\begin{document}
\chapter{test}
a
\section{test}
\end{document}