![Создание главы пакета abntex2 не работает](https://rvso.com/image/309884/%D0%A1%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5%20%D0%B3%D0%BB%D0%B0%D0%B2%D1%8B%20%D0%BF%D0%B0%D0%BA%D0%B5%D1%82%D0%B0%20abntex2%20%D0%BD%D0%B5%20%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%B0%D0%B5%D1%82.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
РЕДАКТИРОВАТЬ(Гильерме З. Сантос): этот вопрос былсообщено и исправленов дистрибутиве TeX Live 2015, если вы все еще сталкиваетесь с этой проблемой, помимо решения ниже еще одной попыткой является обновление дистрибутива TeX.
Класс, по-видимому, предполагает, но не загружает пакет calc
.
это работает
\documentclass[12pt,oneside,a4paper]{abntex2}
\usepackage{calc}
\begin{document}
\chapter{test}
a
\section{test}
\end{document}