pdfLaTeX +回忆录类编译错误
我正在写论文,正在使用 KOMA-Script。该文档编译得很好。我昨天偶然发现了 memoir
类,并考虑尝试一下,所以在这里我尝试使用此类而不是 KOMA-Script 进行编译。 第一次编译就OK了。在第二次编译时,该文档不会构建
(./fourier/fourier.tex [98]
! Undefined control sequence.
<argument> ... C\protect \noexpand \protect \bond
\protect \noexpand \protec...
l.1 \chapter
{Homogénéisation numérique par transformée de Fourier rapide}
?
它显然没有连接到超链接(顺便说一句,我正在使用memhfixc),因为我已经注释掉了这个。这是我的文件的序言,有什么想法吗?
%\documentclass[draft, 11pt, a4paper, chapterprefix]{scrreprt}
\documentclass[draft, 11pt, a4paper]{memoir}
\usepackage[authoryear, round]{natbib}
\usepackage[french]{babel}
\usepackage[latin1]{inputenc}
\usepackage{pdfsync}
\usepackage[version=3]{mhchem}
\usepackage{pgf}
\usepackage{microtype}
\usepackage{txfonts} % Polices times
\usepackage[notref, notcite]{showkeys}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[bvec]{sbmacros}
\usepackage{micromechanics}
\usepackage{pgfcad}
%\usepackage[breaklinks=true]{hyperref}
%\usepackage{memhfixc} % Pour assurer la compatibilité entre memoir et hyperref
%\newcommand{\url}[1]{\texttt{#1}}
% Options KOMA-Script
% \addtokomafont{caption}{\small}
% \pagestyle{headings}
I'm in the middle of writing my thesis, and was using KOMA-Script. The document compiles just fine. I stumbled upon the memoir
class yesterday, and was thinking of giving it a try, so here I am trying to compile with this class instead of KOMA-Script.
First compilation is OK. On second compilation, the document would not build
(./fourier/fourier.tex [98]
! Undefined control sequence.
<argument> ... C\protect \noexpand \protect \bond
\protect \noexpand \protec...
l.1 \chapter
{Homogénéisation numérique par transformée de Fourier rapide}
?
It has apparently not connected to hyperlink (btw, I'm using memhfixc
), since I've commented this one out. Here is the preamble of my document, any thoughts?
%\documentclass[draft, 11pt, a4paper, chapterprefix]{scrreprt}
\documentclass[draft, 11pt, a4paper]{memoir}
\usepackage[authoryear, round]{natbib}
\usepackage[french]{babel}
\usepackage[latin1]{inputenc}
\usepackage{pdfsync}
\usepackage[version=3]{mhchem}
\usepackage{pgf}
\usepackage{microtype}
\usepackage{txfonts} % Polices times
\usepackage[notref, notcite]{showkeys}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[bvec]{sbmacros}
\usepackage{micromechanics}
\usepackage{pgfcad}
%\usepackage[breaklinks=true]{hyperref}
%\usepackage{memhfixc} % Pour assurer la compatibilité entre memoir et hyperref
%\newcommand{\url}[1]{\texttt{#1}}
% Options KOMA-Script
% \addtokomafont{caption}{\small}
% \pagestyle{headings}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于那些可能感兴趣的人,我找到了答案。当我意识到当我使用 KOMA-Script
scrbook
类而不是 KOMA-Scriptscrreprt
类时出现完全相同的问题时,我开始产生严重的怀疑......并且我最终发现
mhchem
包与这些包有某种冲突。由于我并没有太多使用这个包,所以我完全摆脱了它,现在使用memoir
,没问题。I found the answer, for those who might be interested. I started to have serious doubts when I realized that the exact same problem occured when I used the KOMA-Script
scrbook
class instead of the KOMA-Scriptscrreprt
class...And I finally found that the
mhchem
package somehow conflicts with those packages. Since I didn't use this package much anyway, I got completely rid of it, and am now usingmemoir
, no problem.