Skip to content

Instantly share code, notes, and snippets.

@AndiH
Last active June 3, 2018 16:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndiH/8b65adbeb77b00c4b970 to your computer and use it in GitHub Desktop.
Save AndiH/8b65adbeb77b00c4b970 to your computer and use it in GitHub Desktop.
Microtype Examples
\documentclass[a4paper,10pt]{article}
\usepackage[bitstream-charter]{mathdesign} % Bitstream Character font
% \usepackage[activate={true,nocompatibility},final,tracking=true,kerning=true,spacing=true,factor=1100]{microtype}
% \usepackage[protrusion=true,expansion=false]{microtype}
% \usepackage[activate={true,nocompatibility},verbose=true]{microtype}
\usepackage[draft=false,kerning=true]{microtype}
\providecommand{\einstein}{The theory which is sketched in the following pages forms the most wide-going generalization conceivable of what is at present known as the \emph{theory of Relativity}; this latter theory I differentiate from the former \emph{Special Relativity theory}, and suppose it to be known. The generalization of the Relativity theory has been made much easier through the form given to the special Relativity theory by Minkowski, which mathematician was the first to recognize clearly the formal equivalence of the space like and time-like co-ordinates, and who made use of it in the building up of the theory. The mathematical apparatus useful for the general relativity theory, lay already complete in the \emph{Absolute Differential Calculus}, which were based on the researches of Gauss, Riemann and Christoffel on the non-Euclidean manifold, and which have been shaped into a system by Ricci and Levi-Civita, and already applied to the problems of theoretical physics. I have in part B of this communication developed in the simplest and clearest manner, all the supposed mathematical auxiliaries, not known to Physicists, which will be useful for our purpose, so that, a study of the mathematical literature is not necessary for an understanding of this paper. Finally in this place I thank my friend Grossmann, by whose help I was not only spared the study of the mathematical literature pertinent to this subject, but who also aided me in the researches on the field equations of gravitation.}
\title{Examples for Microtyping with {\LaTeX} and Bitstream Charter Typeface}
\author{Andreas Herten}
\begin{document}
\maketitle
\tableofcontents
\section{Introduction} % (fold)
\label{sec:introduction}
Following are some examples about the differences the \texttt{microtype} package makes, optimizing the greyness of your document. Illustrated using the Bitstream Charter typeface as available through the \texttt{mathdesign} package.
Shift forward and backward between the next pages and closely watch the characters.
% section introduction (end)
\newpage
\microtypesetup{expansion=false}
\microtypesetup{protrusion=false}
\microtypesetup{kerning=false}
\microtypesetup{disable}
\section{\texttt{microtype} OFF} % (fold)
\label{sec:microtype_off}
\einstein
% section microtype_off (end)
\newpage
\microtypesetup{enable}
\microtypesetup{expansion=true}
\microtypesetup{protrusion=true}
\microtypesetup{kerning=true}
\section{\texttt{microtype} ON} % (fold)
\label{sec:microtype_on}
\einstein
% section microtype_on (end)
\newpage
\microtypesetup{expansion=false}
\section{\texttt{microtype} ON, expansion OFF} % (fold)
\label{sec:microtype_on_expansion_off}
\einstein
% section microtype_on_expansion_off (end)
\newpage
\microtypesetup{expansion=true}
\microtypesetup{protrusion=false}
\section{\texttt{microtype} ON, protrusion OFF} % (fold)
\label{sec:microtype_on_protrusion_off}
\einstein
% section microtype_on_protrusion_off (end)
\newpage
\microtypesetup{protrusion=true}
\microtypesetup{kerning=false}
\section{\texttt{microtype} ON, kerning OFF} % (fold)
\label{sec:microtype_on_kerning_off}
\einstein
% section microtype_on_kerning_off (end)
\end{document}
@yssmcl
Copy link

yssmcl commented Aug 17, 2017

Nice examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment