summaryrefslogtreecommitdiff
path: root/luaotfload.dtx
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-06 12:25:40 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-06 12:25:40 +0200
commit71e25ce02f3fe47617c703eda770fec64efa17d1 (patch)
tree5c45e2a4120ef7a9412ecaa0090a0c70eaa0851d /luaotfload.dtx
parent8c013800865dbd0c3cdea6312d664fcf2bc61bed (diff)
downloadluaotfload-71e25ce02f3fe47617c703eda770fec64efa17d1.tar.gz
[doc] improve layout
Diffstat (limited to 'luaotfload.dtx')
-rw-r--r--luaotfload.dtx35
1 files changed, 29 insertions, 6 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 7e737b8..89490ca 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -131,11 +131,13 @@ and the derived files
pdfkeywords={luatex, lualatex, unicode, opentype}
]{hyperref}
\usepackage{fontspec}
-%usepackage{unicode-math}%% broken
+\usepackage{unicode-math}
\setmainfont[
- Numbers=OldStyle,
- Ligatures=TeX,
- %SlantedFont={Linux Libertine Italic},
+ Numbers = OldStyle,
+ Ligatures = TeX,
+ BoldFont = {Linux Libertine Bold},
+ ItalicFont = {Linux Libertine Italic},
+ SlantedFont = {Linux Libertine Italic},
]{Linux Libertine O}
\setmonofont[Ligatures=TeX,Scale=MatchLowercase]{Liberation Mono}
%setsansfont[Ligatures=TeX]{Linux Biolinum O}
@@ -176,6 +178,27 @@ and the derived files
\usepackage{syntax}%% bnf for font request syntax
+\usepackage{titlesec}
+
+\def\movecountertomargin#1{\llap{\rmfamily\upshape#1\hskip2em}}
+\def\zeropoint{0pt}
+\titleformat \part
+ {\normalsize\rmfamily\bfseries}
+ {\movecountertomargin\thepart} \zeropoint {}
+\titleformat \section
+ {\normalsize\rmfamily\scshape}%% no \word; life is full of disappointments
+ {\movecountertomargin\thesection} \zeropoint {}
+\titleformat \subsection
+ {\small\rmfamily\itshape}
+ {\movecountertomargin\thesubsection} \zeropoint {}
+
+\usepackage{tocloft}
+\renewcommand \cftpartfont {\rmfamily\upshape}
+\renewcommand \cftsecfont {\rmfamily\upshape}
+\renewcommand \cftsubsecfont {\rmfamily\upshape}
+\setlength \cftbeforepartskip {1ex}
+\setlength \cftbeforesecskip {1ex}
+
\VerbatimFootnotes
\begin{document}
\DocInput{luaotfload.dtx}%
@@ -206,7 +229,7 @@ and the derived files
% \title{The \identifier{luaotfload} package}
% \date{2013/05/05 v2.2}
% \author{Elie Roux · Khaled Hosny · Philipp Gesang\\
-% Home: https://github.com/lualatex/luaotfload\\
+% Home: \url{https://github.com/lualatex/luaotfload}\\
% Support: \email{lualatex-dev@tug.org}}
%
% \maketitle
@@ -309,7 +332,7 @@ and the derived files
%
% <path lookup> ::= \{ {\sc all_characters} - `]' \} ;
%
-% <modifier> ::= `/', (`I' | `B' | `BI' | `IB') ;
+% <modifier> ::= `/', (`I' | `B' | `BI' | `IB' | `S=', \{ {\sc digit} \} ) ;
%
% <subfont no> ::= `(', \{ {\sc digit} \}, `)' ;
%