![abntex2 패키지 장 생성이 작동하지 않습니다](https://rvso.com/image/309884/abntex2%20%ED%8C%A8%ED%82%A4%EC%A7%80%20%EC%9E%A5%20%EC%83%9D%EC%84%B1%EC%9D%B4%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4.png)
클래스를 사용하여 이 간단한 문서를 컴파일하려고 하는데 abntex2
이상한 이유로 다음 두 가지 오류가 발생합니다.
! 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
편집하다(Guilherme Z. Santos): 이 문제는보고 및 수정TeX Live 2015 배포판에서 아래 해결 방법 외에 이 문제가 계속 발생하는 경우 TeX 배포판을 업데이트해 보는 또 다른 시도가 있습니다.
클래스는 패키지를 가정하지만 로드하지는 않는 것 같습니다 calc
.
이게 효과가 있어
\documentclass[12pt,oneside,a4paper]{abntex2}
\usepackage{calc}
\begin{document}
\chapter{test}
a
\section{test}
\end{document}