难以从 TUG India 网站复制 LaTeX 代码

难以从 TUG India 网站复制 LaTeX 代码

我是 LaTeX 新手。我下载了TUG 印度网站。我尝试了pdflatex他们的代码,但没有成功。我给他们写了两次信,但没有收到任何回复。有人能帮我用pdflatex这些文件重现他们美丽的 17 个章节吗?

答案1

如果你查看链接的来源,你会发现一个名为的文件tutor.tex。下载全部将给定的文件放入计算机上的新目录中。然后编译tutor.tex(注意可能会出现错误,代码有点旧)。

第一次运行显示大约 155 个错误,以 开头\theoremstyle

要消除这些错误(但显示 11 页),必须进行一些研究。自文档编写以来,情况似乎已经发生了变化。文件中包含内容的amsthm选项不起作用。mystylesmystyles.thm

因此将文件tutor.tex第 22 行更改为以下内容(添加mystyles.thm到主文件中):

%\usepackage[mystyles]{amsthm} %  <=========== line 22
\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}
\newtheorem{thmsec}{Theorem}[section]
\newtheorem{cor}[thmsec]{Corollary}
\newtheorem{lem}[thmsec]{Lemma}

\theoremstyle{definition}
\newtheorem{dfn}{Definition}[section]

\theoremstyle{remark}
\newtheorem{note}{Note}[section]


\newtheoremstyle{mystyle}{}{}{\slshape}{}{\scshape}{.}{ }{}
\theoremstyle{mystyle}
\newtheorem{mythm}{Theorem}[section]

\newtheoremstyle{mynewstyle}{3pt}{3pt}{\itshape}{}{\sffamily}{:}{\newline}{}
\theoremstyle{mynewstyle}
\newtheorem{mynewthm}{Theorem}[section]


\newtheoremstyle{diffnotenonum}{}{}{\itshape}{}{\bfseries}{.}{ }%
  {#1 (\mdseries #3)}
\theoremstyle{diffnotenonum}
\newtheorem{Cauchy}{Cauchy's Theorem}
\newtheorem{Riemann}{Riemann Mapping Theorem}

\newtheoremstyle{newdiffnotenonum}{}{}{\itshape}{}{\bfseries}{.}{ }%
  {\thmname{#1}\thmnote{( \mdseries #3)}}
\theoremstyle{newdiffnotenonum}
\newtheorem{newRiemann}{Riemann Mapping Theorem}

\newtheoremstyle{citing}{}{}{\itshape}{}{\bfseries}{.}%
  { }{\thmnote{#3}}
\theoremstyle{citing}
\newtheorem{cit}{}

\newtheorem*{numlessthm}{Theorem}

\swapnumbers
\theoremstyle{plain}
\newtheorem{numfirstthm}{Theorem}[section]

现在我只遇到一个可以忍受的错误:

参考书目与 natbib 不兼容

您将收到屏幕版本的结果。如果您想要打印版本,只需print在文件中添加类选项即可tutor.tex

相关内容