[Tex/LaTex] Section headers in Century Gothic, text in Garamond

fontssectioning

I'm trying to comply with the following graphical profile in a LaTeX2e document. Ideally, I'd like to specify all these things in a package, which I can then import to instantly comply with the specifications.

Header 0 (document title): Century Gothic Bold, 20 pt, caps
Header 1: Century Gothic Bold, 16 pt
Header 2: Century Gothic, 14 pt
Header 3: Century Gothic Italic, 12 pt
Text: Garamond, 10 pt
Captions: Garamond Italic, 12 pt

I've been looking around to find a way to use the Century Gothic font in LaTeX, but found nothing useful. The only examples I've found require XeTeX, which I don't know and would like to avoid having to learn just for this.

How do I implement these specifications using LaTeX2e?

(Importing more packages is of course completely OK, as long as they are publicly available.)

Best Answer

Assuming you have these fonts installed on your system, by far the easiest way to do this is with XeLaTeX. There is very little to learn about XeLaTeX; it's just regular LaTeX with one package (fontspec) which allows you to load any font on your system. The rest of the problem simply reduces to using a few regular packages to specify the various element formats.

% !TEX TS-program = XeLaTeX      Must use XeLaTeX to compile
% !TEX encoding = UTF-8 Unicode  File must be encoded at UTF-8
\documentclass[10pt]{article}
\usepackage{fontspec}
\usepackage{titlesec}
\usepackage{titling}
\usepackage{caption}
% commands from fontspec
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{Garamond}
\newfontfamily\headingfont{Century Gothic}
% commands from titlesec
\titleformat*{\section}{\headingfont\fontsize{16}{18}\selectfont\bfseries}
\titleformat*{\subsection}{\headingfont\fontsize{14}{16}\selectfont}
\titleformat*{\subsubsection}{\headingfont\itshape}
% commands from titling
\pretitle{\begin{center}\headingfont\fontsize{20}{24}\selectfont\bfseries\MakeUppercase}
\posttitle{\par\end{center}\vskip 0.5em}
% commands from caption
\DeclareCaptionFormat{plain}{\fontsize{12}{14}\selectfont\itshape#1#2#3\par}
% regular make title commands
\title{A title}
\author{An author}

\begin{document}
\maketitle
\section{A section}
Some text.
\begin{figure}[h]
A figure.
\caption{A figure caption}
\end{figure}

\subsection{A subsection}
Some more text.
\subsubsection{A subsubsection}
Some more text.

\end{document}

I'll leave putting this into a package as an exercise. (See the clsguide docmentation for all the basics.) I've also added semi-arbitrary values in the second argument of the \fontsize commands; you should adjust them to what you require.

output of code