在我的计算机(Linux Mint 18)全新安装后,我安装了 TeX Live、Texmaker 和所有必要的软件包(与之前的 PC 一样)。但是当我编译文档时,出现以下错误:
! Undefined control sequence.
问题在于\ang{}
例如,\ang{180}
给我 180180 而不是 180°
我已经像以前一样将siunitx
包裹 包含在内\usepackage{siunitx}
。那会是什么呢?
这里有一个给我带来问题的最小代码:
\documentclass[12pt]{book}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}
\usepackage{gensymb}
\usepackage{float}
\usepackage{tikz,pgfplots}
\usepackage{tkz-euclide}
\usepackage{mathtools}
\usetikzlibrary{intersections}
\usepackage{amsmath,amssymb}
\usepackage[makeroom]{cancel}
\usepackage{mathtools}
\usepackage{mdframed}
\usepackage{siunitx}
\usepackage{tkz-euclide}
\usepackage{comment}
\usetikzlibrary{angles,positioning,quotes,decorations.markings}
\usepackage[italian]{babel}
\usetikzlibrary{angles,quotes}
\usetkzobj{all}
\begin{document}
\chapter{Mychapter}
\label{chap:Mychapter}
Some text
\section{Il triangolo}
\label{sec:il triangolo}
\textbf{Caratteristica del triangolo:} La somma degli angoli interni corrisponde sempre a \ang{180}.
\end{document}
这是错误信息:
! Undefined control sequence.
\@@_number_in_sign_replace:N ...ign_replace_aux:N
#1\@@_number_in_sign_repla...
l.34 ...oli interni corrisponde sempre a \ang{180}
.
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
[1
] (./MWE.aux) )