在我的 tex 文件中,= 没有出现。
\RequirePackage[l2tabu]{nag}
\makeatletter
\renewcommand*\cleardoublepage{\clearpage\if@twoside
\ifodd\c@page \hbox{}\newpage\if@twocolumn\hbox{}%
\newpage\fi\fi\fi}
\makeatother
\documentclass[a4paper,12pt,openany,leqno,footinclude=true]{memoir}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{lineno}
\usepackage{multicol}
\usepackage{blindtext}
\RequirePackage{graphicx}
\usepackage{enumitem}
\setlist[itemize]{leftmargin=*}
%\usepackage{amsmath,fontspec}
\usepackage{subfig}
\usepackage{amsfonts}
\usepackage{algorithm,algorithmic}
\usepackage{enumitem}
\usepackage{eqparbox}
\setlist[itemize]{leftmargin=*}
\def\cftchapteraftersnum{.}
\makeatletter
\def\@copyrightspace{\relax}
\makeatother
\settrimmedsize{297mm}{210mm}{*}
\setlength{\trimtop}{0pt}
\setlength{\trimedge}{\stockwidth}
\addtolength{\trimedge}{-\paperwidth}
\settypeblocksize{634pt}{448.13pt}{*}
\setulmargins{4 cm}{*}{*}
\setlrmargins{*}{*}{1.5}
\setmarginnotes{17pt}{51pt}{\onelineskip}
\setheadfoot{\onelineskip}{2\onelineskip}
\setheaderspaces{*}{2\onelineskip}{*}
\setlrmargins{*}{*}{1}
\checkandfixthelayout
\pagestyle {plain}
\usepackage{fouriernc}
\usepackage[T1]{fontenc}
\aliaspagestyle{part}{empty}
\OnehalfSpacing
\newcommand{\clearemptydoublepage}{\newpage{\thispagestyle{empty}\cleardoublepage}}
\usepackage{import}
\usepackage{underscore}
% Add other packages needed for chapters here. For example:
\usepackage{lipsum} %Needed to create dummy text
\usepackage{amsfonts} %Calls Amer. Math. Soc. (AMS) fonts
\usepackage[centertags]{amsmath} %Writes maths centred down
\usepackage{stmaryrd} %New AMS symbols
\usepackage{amssymb} %Calls AMS symbols
\usepackage{amsthm} %Calls AMS theorem environment
\usepackage{newlfont} %Helpful package for fonts and symbols
\usepackage{layouts} %Layout diagrams
\usepackage{graphicx} %Calls figure environment
\usepackage{longtable,rotating} %Long tab environments including rotation.
\usepackage[applemac]{inputenc} %Needed to encode non-english characters
%directly for mac
\usepackage{colortbl} %Makes coloured tables
\usepackage{wasysym} %More math symbols
\usepackage{mathrsfs} %Even more math symbols
\usepackage{float} %Helps to place figures, tables, etc.
\usepackage{verbatim} %Permits pre-formated text insertion
\usepackage{upgreek } %Calls other kind of greek alphabet
\usepackage{latexsym} %Extra symbols
\usepackage[square,numbers,
sort&compress]{natbib} %Calls bibliography commands
\usepackage{url} %Supports url commands
\usepackage{etex} %eTeXÕs extended support for counters
\usepackage{fixltx2e} %Eliminates some in felicities of the
%original LaTeX kernel
\usepackage[spanish,english]{babel} %For languages characters and hyphenation
\usepackage{color} %Creates coloured text and background
\usepackage[colorlinks=true,
allcolors=black]{hyperref} %Creates hyperlinks in cross references
\usepackage{memhfixc} %Must be used on memoir document
%class after hyperref
\usepackage{enumerate} %For enumeration counter
\usepackage{footnote} %For footnotes
\usepackage{microtype} %Makes pdf look better.
\usepackage{rotfloat} %For rotating and float environments as tables,
%figures, etc.
\usepackage{alltt} %LaTeX commands are not disabled in
%verbatim-like environment
\usepackage[version=0.96]{pgf} %PGF/TikZ is a tandem of languages for producing vector graphics from a
\usepackage{tikz} %geometric/algebraic description.
\usetikzlibrary{arrows,shapes,snakes,
automata,backgrounds,
petri,topaths} %To use diverse features from tikz
%
\usepackage{mathptmx}% http://ctan.org/pkg/mathptmx
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\usepackage{tocloft}%
\newcommand{\cftchapaftersnum}{.}
\begin{document}
% -----------------------------------------------------------Pages
\let\cleardoublepage\clearpage
\input{frontmatter/title}
\end{document}
以上为序言。
考虑放入 title.tex:
\[dupthresh = D\cdot[1+log(n)]\]
= 未出现。
一个简单的例子如下:
\documentclass{article}
\usepackage{fouriernc}
\usepackage{mathptmx}
\begin{document}
$a=b$
\end{document}
答案1
具体错误是,文档加载了两个不兼容的数学模式重新定义,fouriernc
但mathptmx
更一般的是,序言加载多种的很多文件被打包了三四次,而且由于已经很广泛的memoir
类被用作基础,所以大多数文件都是不需要的。它还加载了newlfont
、etex
,fixltx2e
这些文件不应与当前版本一起使用。(newlfont
应该只用于处理 1993 年 latex2e 发布之前的文档)。序言也定义了\cleardoublepage
两次,定义不同,并指定了\usepackage[applemac]{inputenc}
哪种编码不太可能是现代文本编辑器使用的编码,即使在 Mac 上也是如此。
我的建议是将文档更改为开始
\documentclass{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
然后仅在需要时添加更多包。