WinEdt 与 TeXMaker 的兼容性问题

WinEdt 与 TeXMaker 的兼容性问题

我在 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(它是后者的一个特别有用的扩展)

相关内容