Skip to content

Commit

Permalink
Added “torture” test for math fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
HolgerGerhardt committed Aug 10, 2019
1 parent 6a429dd commit 4fe1a1f
Show file tree
Hide file tree
Showing 46 changed files with 488 additions and 9,396 deletions.
20 changes: 20 additions & 0 deletions 0_0_Preamble/Preamble_Fonts_Charter_FiraSans.tex
Expand Up @@ -80,6 +80,26 @@
\let \savermbfseries \bfdefault
% <==

% mathdesign provides upright Greek letters as \alphaup, \Betaup, etc. while other packages
% (e.g., unicode-math) call these \upalpha, \upBeta, etc. We make also the latter available.
% ==>
\makeatletter
\@for\@tempa:=%
alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,%
omicron,pi,rho,sigma,varsigma,tau,upsilon,phi,chi,psi,omega,digamma,%
Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,%
Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,Digamma%
\do{%
\expandafter\let\csname up\@tempa\expandafter\endcsname\csname\@tempa up\endcsname%
}%
\makeatother
% <==

% Provide a \nequiv symbol
\ifx\nequiv\undefined
\newcommand{\nequiv}{\not\equiv}
\fi

% Use Bitstream Charter as the text font
% ==>
\usepackage[scaled=.96, lining, sups]{XCharter} % option ``sups'' not working properly with subimport
Expand Down
3 changes: 3 additions & 0 deletions 0_0_Preamble/Preamble_Sansserif_math.tex
Expand Up @@ -386,6 +386,7 @@
\do{%
\expandafter\let\csname\@tempa\expandafter\endcsname\csname\@tempa LGR\endcsname%
\expandafter\let\csname\@tempa up\expandafter\endcsname\csname\@tempa upLGR\endcsname%
\expandafter\let\csname up\@tempa\expandafter\endcsname\csname\@tempa upLGR\endcsname%
}%
%\renewcommand{\pm}{\pmsf}%
%\renewcommand{\times}{\timessf}%
Expand All @@ -404,6 +405,7 @@
\do{%
\expandafter\let\csname\@tempa\expandafter\endcsname\csname\@tempa orig\endcsname%
\expandafter\let\csname\@tempa up\expandafter\endcsname\csname\@tempa uporig\endcsname%
\expandafter\let\csname up\@tempa\expandafter\endcsname\csname\@tempa uporig\endcsname%
}%
%\renewcommand{\pm}{\oldpm}%
%\renewcommand{\times}{\oldtimes}%
Expand All @@ -422,6 +424,7 @@
% \do{%
% \expandafter\let\csname\@tempa\expandafter\endcsname\csname\@tempa LGR\endcsname%
% \expandafter\let\csname\@tempa up\expandafter\endcsname\csname\@tempa upLGR\endcsname%
% \expandafter\let\csname up\@tempa\expandafter\endcsname\csname\@tempa upLGR\endcsname%
% }%
% %\renewcommand{\pm}{\pmsf}%
% %\renewcommand{\times}{\timessf}%
Expand Down
4 changes: 2 additions & 2 deletions 0_Introduction_Dissertation/Introduction.tex
Expand Up @@ -16,15 +16,15 @@
Let us cite some publications: \cite{Andersen2008, Andreoni2012, Balakrishnan2016, Koszegi2013}. With the options set for BibLaTeX in the preamble, citations in the body text are automatically sorted chronologically---irrespective of the order of the ``citekeys'' in your input. Of course, entries are sorted alphabetically by author surname in the list of references.

\begin{table}[t!!!]
\caption{Characters contained in the serif font: \savermdefaultfortext}
\caption{Characters Contained in the Serif Font: \savermdefaultfortext}
\rmfamily
\makeatletter
\xfonttable{\f@encoding}{\f@family}{\f@series}{\f@shape}
\makeatother
\end{table}

\begin{table}[t!!!]
\caption{Characters contained in the sans-serif font: \savesffamily}
\caption{Characters Contained in the Sans-Serif Font: \savesffamily}
\sffamily
\makeatletter
\xfonttable{\f@encoding}{\f@family}{\f@series}{\f@shape}
Expand Down
4 changes: 2 additions & 2 deletions 1_Example_Content/4_Discussion/Font_Scores.tex
Expand Up @@ -4,7 +4,7 @@


\begin{table}[t]
\caption{Points awarded in our typeface competition---basic formatting}
\caption{Points Awarded in Our Typeface Competition---Basic Formatting}
\label{tab:basic_formatting}
\begin{tabular}{@{}lccccc@{}}
\toprule
Expand All @@ -25,7 +25,7 @@
\end{table}

\begin{table}[b]
\caption{Points awarded in our typeface competition---more sophisticated formatting}
\caption{Points Awarded in Our Typeface Competition---More Sophisticated Formatting}
\label{tab:advanced_formatting}
\sisetup{table-column-width = 0.13\textwidth}
% <{\qquad} @{\extracolsep{\fill}}
Expand Down
19 changes: 14 additions & 5 deletions 1_Example_Content/Presentation.tex
Expand Up @@ -140,7 +140,7 @@ \section{Introduction}
The \texttt{block} environment. The \texttt{block} environment. The \texttt{block} environment. The \texttt{block} environment. The \texttt{block} environment. \insertblocktitle
\end{block}%

\begin{exampleblock}{An~Exemplary Example}
\begin{exampleblock}{An~exemplary example}
I~am the \texttt{exampleblock} environment. Use me for examples. I~am really exemplary.
\end{exampleblock}

Expand All @@ -157,7 +157,7 @@ \section{Introduction}
The \texttt{definition} environment. Upright.
\end{definition}

\begin{theorem}[Theorem's Name]
\begin{theorem}[Theorem's mame]
The \texttt{theorem} environment. Italic.
\end{theorem}%

Expand Down Expand Up @@ -282,7 +282,7 @@ \section{Study Design}
\def\rmd{\mathup{d}}
Only variables are set in italics according to \caps{ISO} style---hence, we use upright ``$\rmd$,'' ``$\mathup{e}$,'' and ``$\mathup{\pi}$'' (\texttt{\textbackslash mathup\{d\}}, \texttt{\textbackslash mathup\{e\}}, and \texttt{\textbackslash mathup\{\textbackslash pi\}}, respectively).

\begin{theorem}[Simplest form of the \emph{Central Limit Theorem}]
\begin{theorem}[simplest form of the \emph{Central Limit Theorem}]
\ifnum \serifbodyfont=0
\sffamily
\fi
Expand Down Expand Up @@ -412,7 +412,6 @@ \section{Results}
\end{frame}



\section{Discussion}


Expand Down Expand Up @@ -477,7 +476,7 @@ \section{Discussion}
\end{frame}


\begin{frame}[allowframebreaks]{\titleprefix: Testing the \texttt{allowframebreaks} option}
\begin{frame}[allowframebreaks]{\titleprefix: Testing the \texttt{allowframebreaks} Option}

\renewcommand{\blindmarkup}[1]{\emph{#1}}

Expand All @@ -493,6 +492,16 @@ \section{Discussion}
\end{frame}


\section{Math ``Torture'' Test}


\begin{frame}[allowframebreaks]{\insertsection}

\input{2_Math_Tests/mathtest_TeXbook_beamer}

\end{frame}




%%%%%%%%%%%%%%%%%%
Expand Down

0 comments on commit 4fe1a1f

Please sign in to comment.