| 1 |
% !TEX TS-program = lualatex |
| 2 |
\documentclass{scrartcl} |
| 3 |
\setkomafont{disposition}{\bfseries} |
| 4 |
\KOMAoptions{fontsize=12pt} |
| 5 |
\usepackage[letterpaper]{geometry} |
| 6 |
\usepackage{addliga} |
| 7 |
\usepackage{fontspec} |
| 8 |
\setmainfont[Numbers={OldStyle}]{Domitian} |
| 9 |
\setmonofont[Scale=1.05]{CMU Typewriter Text Variable Width} |
| 10 |
\usepackage[protrusion=true,expansion=true]{microtype} |
| 11 |
\usepackage{realscripts} |
| 12 |
\usepackage[main=english,,latin.classical,nil]{babel} |
| 13 |
\newcommand{\laterm}[1]{\foreignlanguage{latin}{\textit{#1}}} |
| 14 |
\deffootnote[1.5em]{1.5em}{1em}{\makebox[1.5em][l]{\thefootnotemark.}} |
| 15 |
\usepackage[pdfusetitle,pdfa,hidelinks]{hyperref}\hypersetup{pdfencoding=unicode} |
| 16 |
\usepackage{hologo} |
| 17 |
\title{\normalfont\texttt{addliga}\\\large (version 1.0)} |
| 18 |
%\date{} |
| 19 |
\author{Daniel~Benjamin Miller\\\large(\texttt{[email protected]})} |
| 20 |
\begin{document} |
| 21 |
\maketitle |
| 22 |
The \texttt{fontspec}\footnote{\url{https://ctan.org/pkg/fontspec}} package enables use of OpenType and TrueType fonts in \hologo{LuaLaTeX} and \hologo{XeLaTeX}. Though legacy TrueType fonts often include at least a partial set of ligatures, these, unlike those of OpenType fonts, are not accessible through \texttt{fontspec}'s usual mechanisms. The \texttt{addliga} package is designed to allow easy use of basic TrueType font ligatures in \hologo{LuaLaTeX} by adding an OpenType \texttt{liga} lookup table to the loaded font. (\laterm{Nota bene}: not all fonts will contain ligature support; \texttt{addliga} only adds support for existing ligatures.) The ligatures supported are ff, fi, ffi, fl and ffl. This package has been contributed to the public domain. |
| 23 |
\section*{Basic Usage} |
| 24 |
\begin{verbatim} |
| 25 |
\documentclass{…} |
| 26 |
\usepackage{addliga} |
| 27 |
\usepackage{fontspec} |
| 28 |
\setmainfont{…} |
| 29 |
\begin{document} |
| 30 |
… |
| 31 |
\end{document} |
| 32 |
\end{verbatim} |
| 33 |
\end{document} |