我正在创作 Andre Miede 经典论文模板的衍生作品(http://www.miede.de/index.php?page=classicthesis)我所做的就是将斯洛伐克语选项添加到文档类中,如下所示:
\documentclass[twoside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,% letterpaper a4paper
footinclude=true,cleardoublepage=empty,abstractoff, % <--- obsolete, remove (todo)
BCOR=5mm,paper=a4,fontsize=11pt,%11pt,a4paper,%
ngerman,american,slovak%
]{scrreprt}
这是我尝试编译源文件时收到的错误消息的摘录:
Package natbib Warning: Citation `knuth:1974' on page xi undefined on input lin
e 11.
Package natbib Warning: Citation `knuth:1974' on page xi undefined on input lin
e 11.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\eulervm\uzeur.fd")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\microtype\mt-eur.cfg")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\eulervm\uzeus.fd")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\microtype\mt-eus.cfg")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\eulervm\uzeuex.fd")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\psnfss\ot1zplm.fd")
Overfull \hbox (2.84056pt too wide) in paragraph at lines 27--36
[]\T1/pplj/m/n/10.95 Regarding the ty-pog-raphy and ot-her help, many thanks go
to Marco
) [11] [12] (FrontBackmatter/Contents.tex (ChinesePoets.toc) [13]
(ChinesePoets.lof) (ChinesePoets.lot) (ChinesePoets.lol) [14]) [1] [2]
(Chapters/Chapter01.tex
Kapitola 1.
! Missing $ inserted.
<inserted text>
$
l.7 Master'
s
?
这是源文件 Chapter01.tex 的相关部分:
\begin{enumerate}
\item Provide students with an easy-to-use template for their
Master's
or PhD thesis. (Though it might also be used by other types of
authors
for reports, books, etc.)
\item Provide a classic, high-quality typographic style that is
inspired by \citeauthor{bringhurst:2002}'s ``\emph{The Elements of
Typographic Style}'' \citep{bringhurst:2002}.
\marginpar{\myTitle \myVersion}
\end{enumerate}
看起来 LaTex 编译器对撇号字符 ' 有问题。为什么会这样?请简单解释一下,因为我一生中大部分时间都在使用 Word 和 OpenOffice Writer 等工具。我对 TeX 系统的经验很少。最近刚读完 LaTeX 系统的入门书。
PS:该问题可以在这个简单的文档中重现:
\documentclass[ twoside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,% letterpaper a4paper
footinclude=true,cleardoublepage=empty,abstractoff, % <--- obsolete, remove (todo)
BCOR=5mm,paper=a4,fontsize=11pt,%11pt,a4paper,%
ngerman,american,slovak%
]{scrreprt}
%********************************************************************
% Note: Make all your adjustments in here
%*******************************************************
\input{classicthesis-config}
%********************************************************************
% Hyphenation
%*******************************************************
%\hyphenation{put special hyphenation here}
% ********************************************************************
% GO!GO!GO! MOVE IT!
%*******************************************************
\begin{document}
\frenchspacing
\raggedbottom
%\renewcommand*{\bibname}{new name}
%\setbibpreamble{}
\pagenumbering{roman}
\pagestyle{plain}
%********************************************************************
% Frontmatter
%*******************************************************
%************************************************
\chapter{Introduction}\label{ch:introduction}
%************************************************
This bundle for \LaTeX\ has two goals:
\begin{enumerate}
\item Provide students with an easy-to-use template for their
Master's
or PhD thesis. (Though it might also be used by other types of
authors
for reports, books, etc.)
\item Provide a classic, high-quality typographic style that is
inspired by \citeauthor{bringhurst:2002}'s ``\emph{The Elements of
Typographic Style}'' \citep{bringhurst:2002}.
\marginpar{\myTitle \myVersion}
\end{enumerate}
\end{document}
答案1
Classicthesis 确实很乱,模板 bundlelle 提供的配置文件也是如此。简单的建议,不要使用它。
classicthesis
解决该问题的简单方法是在加载配置文件之前加载包。
在减少与所述问题无关的所有内容之后,我们得到以下结果。
\documentclass[slovak]{scrreprt}
\usepackage{babel}
\usepackage{eulervm}
\begin{document}
Master's
\end{document}
的 slovak 选项babel
似乎会出现奇怪的情况。
设置字体后加载 babel,一切正常。