我是 LaTeX 的新手。一切都运行良好(大部分),但自从我添加了包后,我遇到了各种奇怪的错误siunitx
。错误日志首先显示表格错误,我能够使用快速提示修复(我认为)入口(谢谢)。现在,剩余的错误源自我的所有图形标题。感觉就像siunitx
是试图解析我的图形标题,但却拒绝了它们的内容。我尝试了与修复表格相同的策略(\sisetup{parse-numbers = false}
),但仍然不起作用。有什么想法吗?
这是我的简单代码(如果有效希尼奇被注释掉):
\documentclass[12pt,letterpaper]{report}
%
% Review cuthesis.sty for more documentation on available options
% for this package.
%\usepackage[1committee,phd,nonsequential]{cuthesis}
\usepackage[3committee,masters,standard,nonsequential]{cuthesis} %Carleton University template
\usepackage{array}
\usepackage{graphicx}
\usepackage{color}
\usepackage{cite}
\usepackage{subfig}
\usepackage{amsmath}
\usepackage{rotating}
\usepackage{setspace}
\usepackage{longtable}
\usepackage[colorlinks=true,pdftex,bookmarks=true,bookmarksnumbered=true,breaklinks=true]{hyperref}
\usepackage{pdfsync}
%\usepackage{ucs}
\usepackage[utf8x]{inputenc}
%\usepackage[T1]{fontenc}
%\usepackage{siunitx} %used for the writing of SI units such as micro
\usepackage{hyperref} %used for pdf properties
%\usepackage[indent,bf]{caption}
\graphicspath{{figures/}}
\onehalfspacing
\title{Sandbox}
\begin{document}
% Define thesis title and author
\title{RD}
\author{FD}
\pastdegrees{B.Eng.}
\dept{Systems and Computer Engineering}
\degreename{Master of Applied Science in Electrical Engineering}
% Specify your Thesis Submission Date
\submitdate{May, 2012} \copyrightyear{2012} \copyrightmonth{May}
% Thesis committee information for the signature page
% Be sure to specify size of committee in cuthesis options.
% Department Chair does not count as a committee member.
% ie: 1committee = department chair (doesn't make sense)
% 2committee = firstcommittee + department chair
% 3committee = firstcommittee + secondcommittee + department chair
% 4committee = firstcommittee + secondcommittee + thirdcommittee + department chair
% Default setting is 1committee
\firstcommittee{Professor MS, Thesis Supervisor}
\secondcommittee{Professor MB, Examiner}
\thirdcommittee{Professor "Name", Thesis Co-supervisor}
% Specify department chair
\departmentchair{Professor HS, Chair,\\Department of Systems and Computer Engineering}
\section{whatever}
la la
\begin{figure}
% Requires \usepackage{graphicx}
%TODO regenerate this graph with matlab
\centering
\includegraphics[width=4in]{OFDMspectrum-single.png}
\caption{Spectrum of a single modulated OFDM subcarrier (truncated).} \label{fig:single}
\end{figure}
\end{document}
答案1
(对于评论来说,这有点太长了。)
如果你努力创建 MWE,问题就可以被隔离到由以下内容组成的文档中:
\documentclass{article}
\usepackage{cuthesis}
\usepackage{calc}
\begin{document}
\begin{figure}
\caption{Demo}
\end{figure}
\end{document}
这计算包是完全标准的,所以这是一个错误卡瑟西斯。
(问题出现在希尼奇加载时计算。