
我已經在 TeXMaker 中寫了一篇手稿,我的顧問要求使用 LaTeX 檔案進行編輯。他有WinEdt(我不確定是哪個版本)。他無法編譯和運行我的 LateX 檔案。我不知道他有什麼嘗試或沒有嘗試過。
問題的根源可能是什麼?這兩個程式之間是否存在一些已知的相容性問題?據我所知,問題可能出在軟體包上,但我不知道是哪些軟體包。
這是我的序言:
\documentclass[12pt]{article}
\usepackage{float}
\usepackage{multirow}
\usepackage{verbatim}
\usepackage{cite}
\usepackage{multicol}
\usepackage{resizegather}
\usepackage[dvipsnames,svgnames,table]{xcolor}
\usepackage{mathrsfs}
\usepackage{graphicx}
\usepackage{epstopdf}
\DeclareGraphicsExtensions{.pdf,.png,.jpg}
\usepackage{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fancyhdr}
\usepackage{titlesec}
\usepackage{caption}
\usepackage{abstract}
\usepackage{epsfig}
\usepackage{breqn}
\usepackage{amsthm}
\usepackage[colorlinks=true, linkcolor=blue, citecolor=blue,urlcolor=blue,breaklinks=true]{hyperref}
\usepackage[margin=1in]{geometry}
\usepackage{authblk}
標題、作者、單位
\floatplacement{figure}{H}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{claim}[theorem]{Claim}
\newtheorem{lemma}[theorem]{Lemma}
\numberwithin{equation}{section}
\numberwithin{theorem}{subsection}
\renewcommand{\qedsymbol}{$\blacksquare$}
\renewcommand{\abstractnamefont}{\normalfont\bfseries}
\renewcommand{\abstracttextfont}{\normalfont\small\itshape}
\def\mathclap#1{\text{\hbox to 0pt{\hss$\mathsurround=0pt#1$\hss}}}
\setcounter{MaxMatrixCols}{48}
\begin{document}
稿
\end{document}
謝謝。
答案1
先驗是 WinEdt 和 TeXmaker 之間唯一不相容的地方,由於 utf8 編碼,它來自舊版本的 WinEdt ($<7$)。如果是這樣,您的顧問應將 WinEdt 更新至最新版本 (9)。
但是,他/她可能沒有在他的系統上安裝您載入的所有軟體包。此外,眾所周知,它breqn
可能與其他數學包發生衝突。
除了註釋之外,無需定義,\mathclap
因為它已經定義了mathtools
您應該加載的位置amsmath
(這是後者的特別有用的擴展)