From e102f277eac2092f912d3f13fd9563171bd54fb9 Mon Sep 17 00:00:00 2001 From: Bastian Rieck Date: Wed, 14 Jul 2021 14:33:37 +0200 Subject: [PATCH] Added brief introduction on how to change fonts --- Sources/Introduction.tex | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/Sources/Introduction.tex b/Sources/Introduction.tex index 82cfadf..03ceb52 100644 --- a/Sources/Introduction.tex +++ b/Sources/Introduction.tex @@ -46,6 +46,41 @@ It is possible to build your document using either \LaTeX|, \XeLaTeX, or \LuaLaTeX. I personally prefer one of the latter two because they make it easier to select proper fonts. +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\section{Making this template \emph{yours}} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +Prior to using this template, the first thing you want to do is probably +a little bit of customisation. You can achieve quick changes in look and +feel by picking your own fonts. With the \verb|fontspec| package loaded +and \XeLaTeX or \LuaLaTeX as your compiler, this is pretty simple: +% +\begin{verbatim} +\setmainfont{Your main font} +\setsansfont{Your sans-serif font} +\setmonofont{Your monospaced font} +\end{verbatim} +% +Make sure to select nice combinations of that are pleasing to +\emph{your} eyes---this is your document and it should reflect your own +style. Make sure to specify font names as they are provided by your +system. For instance, you might want to use the following combination: +% +\begin{verbatim} +\setmainfont{Baskerville} +\setsansfont[Scale=MatchLowercase]{IBM Plex Sans} +\setmonofont[Scale=MatchLowercase]{IBM Plex Mono} +\end{verbatim} +% +If these fonts exist on your system, your normal text will look +{\fontspec{Baskerville}{a little bit different from the other font used +in this example PDF}}, while your sans-serif font {\fontspec[Scale=MatchLowercase]{IBM Plex Sans}will +pair nicely with your} {\fontspec[Scale=MatchLowercase]{IBM Plex Mono}{monospaced font}}. +% +You can also remove the \verb|Scale| directive, but I find that most +fonts pair better if they are adjusted in size a little bit. Experiment +with it until you finds a combination that you enjoy. + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Features} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%