如何将 \usepackage{garamond} 与 Classic Thesis 一起使用?

如何将 \usepackage{garamond} 与 Classic Thesis 一起使用?

我已经为我的论文工作了classicthesis几个星期,我想使用以下包代替 Palatino 字体:\usepackage{garamond}

您当然知道,为了使用它,您必须在正文中写入任何内容之前,在 \begin{document} 之后编写这段代码:\garamond

它适用于使用文章类(甚至是书籍)进行的简单测试,但不适用于 Classicthesis。因此,我的问题如下:我必须把\usepackage{garamond}序言放在哪里?我必须直接更改吗classicthesis.sty

这是我的序言的代码:

% book example for classicthesis.sty
\documentclass[11pt,a4paper,footinclude=true,headinclude=true]{scrbook} % KOMA-Script book
\usepackage[T1]{fontenc}   
\usepackage[applemac]{inputenc}    
\usepackage[frenchb]{babel}
\usepackage{setspace} 
\usepackage{hyperref} 
\usepackage[tight,french]{minitoc}
\usepackage{apacite}
\usepackage{lipsum}
\usepackage[parts,pdfspacing,dottedtoc,eulerchapternumbers]{../classicthesis} % ,manychapters
%\usepackage[osf]{libertine}
\usepackage{ebgaramond}
\FrenchFootnotes
\usepackage{amsthm}
\usepackage{lineno}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\AtBeginDocument{\renewcommand{\thepart}{\Roman{part}}}
\frontmatter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\ptctitle{Table}
\def\mtctitle{Table}
\def\stctitle{Table}
\setlength{\mtcindent}{0pt}
\renewcommand{\mtifont}{\normalsize\scshape\lsstyle}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%modifie la taille des numéros de chapitres%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifthenelse{\boolean{@eulerchapternumbers}}% font for the chapter numbers
    {\newcommand\mychapterNumber{\fontencoding{U}\fontfamily{eur}\fontseries{b}\fontsize{28}{29}\selectfont}}%
    {\newcommand\mychapterNumber{\fontencoding{T1}\fontfamily{pplj}\fontsize{25}{26}\selectfont}}

\ifthenelse{\boolean{@linedheaders}}%
    {%
    \titleformat{\chapter}[block]%
        {\relax}{\titlerule\vspace*{.9\baselineskip}\\\raggedleft{\color{halfgray}\mychapterNumber\thechapter}}{1.2em}%
        {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
    }{%
    \titleformat{\chapter}[block]%
        {\relax}{{\color{halfgray}\mychapterNumber\thechapter}}{1.2em}%
        {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
    }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}

%   \pagestyle{scrheadings}
%   \manualmark
%   \markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}






\pagestyle{scrheadings}




\tableofcontents

答案1

在 TeXLive 2014 中,没有garamond.sty,但是ebgaramond.sty。只需包含它 \usepackage{classicthesis}以“保证”字体更改被激活。

\documentclass[10pt]{book}
\usepackage{classicthesis}

\usepackage{ebgaramond}

\usepackage{blindtext}

\begin{document}
\Large
\chapter{Garamond}%

\blindtext[10]

\end{document}

在此处输入图片描述

在此处输入图片描述

答案2

我已经看过这个garamond包了,但在我看来这不是最好的选择。

还有其他可用选项,特别是为了更好地支持数学。

  1. \usepackage{ebgaramond,newtxmath,ebgaramond-maths}

    在此处输入图片描述

  2. \usepackage{ebgaramond}\usepackage[ugm]{mathdesign}

    在此处输入图片描述

  3. \usepackage{garamondx}(需要安装字体getnonfreefonts

    在此处输入图片描述

来源如下

\documentclass[10pt]{scrbook}
\usepackage[eulerchapternumbers]{classicthesis}

% option 1
%\usepackage{ebgaramond,newtxmath,ebgaramond-maths}

% option 2
%\usepackage{ebgaramond}\usepackage[ugm]{mathdesign}

% option 3
\usepackage{garamondx}

\usepackage{kantlipsum}

\begin{document}
\chapter{Garamond}

We start with a known formula
\[
\int_{0}^{\infty} e^{-x^{2}}\,dx=\frac{\sqrt{\pi}}{2}.
\]
\kant[2]

\end{document}

相关内容