[Tex/LaTex] Headings with Trajan font

fonts

I intend to use the Trajan fonts for the headings of the chapters only (hence, not the section headings etc.) of my thesis. I am using a template provided by a previous student, and this is the section concerning the chapter headings:

%% Check for fancychap flag and change chapter default if true
\ifthenelse{\boolean{fancychapflag}}{%
  \titleformat{\chapter}[display]%
    {\huge\normalfont\defaultfont\filleft\onehalfspacing%
    \titlerule[1pt]%
    \vspace{1pt}%
    \titlerule}%
    {%
    \vspace{1ex}%
    \chaptertitlename \space \thechapter}%
    {0.5ex}%
    {\bfseries\Huge}%
    [\vspace{1ex}%
    \titlerule]%
    %% Control the spacing of the numbered chapters.
    \titlespacing*{\chapter}{0pt}{0pt}{30pt}
    \titleformat{name=\chapter,numberless}[display]%
    {\huge\normalfont\defaultfont\filcenter}%
    %% Move the title to the top of the page
    {\vspace{-6ex}}%
    {0pt}%
    {\titlerule\huge}%
    [\vspace{\parskip}%
    \titlerule]
    %% Control the spacing of the un-numbered chapters.
    \titlespacing*{name=\chapter,numberless}{0pt}{0pt}{30pt}%
    }%
  {%% Fix chapter spacing to one and a half
    \titleformat{\chapter}[display]%
    {\huge\normalfont\defaultfont\bfseries\onehalfspacing}%
    {\chaptertitlename\ \thechapter}%
    {20pt}%
    {\Huge}%
  }

where:

\newcommand{\defaultfont}{\ifthenelse{\boolean{sansflag}}{\sffamily}{}}

From a previous post, I now know that I need to use \trjnfamily instead of \deaultfont. However, I would like to modify the Trajan font (which comes only in capital letters) as follows:

  • Use a slightly smaller font for non-capital letters and having Trajan recognize them as such (i.e. when you use Trajan with a small letter, it typically never shows anything).
  • Use slightly larger letters for actual capitals.

This is as shown here, for instance:
https://www.fonts.com/font/adobe/trajan/regular

My question is whether I can do this in the class file for the document, or whether I need to buy new fonts, such as Trajan Regular.

Thanks for the help!

Best Answer

It sounds to me like what you really want is to make use of the Opentype font named Trajan Pro. If that's the case, you should look into using LuaLaTeX and the fontspec package. You could use the sectsty package and its \chapterfont macro to change the font used in chapter-level headers.

enter image description here

% !TeX program = lualatex
\documentclass{report} 
\usepackage{fontspec,booktabs}
\setmainfont{TexGyre Termes}  % just for this example
\newfontfamily{\trajan}[BoldFont=Trajan Pro Bold]{Trajan Pro}

\newcommand\hw{Hello World} % handy short-cut macro

\usepackage{sectsty}
\chapterfont{\centering\trajan} % "\centering" is optional!

\renewcommand\chaptername{Episode} % just for fun...
\renewcommand\thechapter{\Roman{chapter}}
\setcounter{chapter}{3}

\begin{document} 

\chapter{A New Hope}

\centering
\begin{tabular}{@{}lcc@{}}
\toprule 
 & non-bold & \bfseries bold \\
\midrule
Regular Times Roman     & \hw & \bfseries\hw \\
Small-caps Times Roman  & \scshape \hw & \scshape\bfseries \hw \\
Trajan Pro              & \trajan \hw & \trajan\bfseries \hw \\
\bottomrule
\end{tabular}
\end{document}
Related Question