From 71e25ce02f3fe47617c703eda770fec64efa17d1 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 6 May 2013 12:25:40 +0200 Subject: [doc] improve layout --- luaotfload.dtx | 35 +++++++++++++++++++++++++++++------ 1 file 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 % % ::= \{ {\sc all_characters} - `]' \} ; % -% ::= `/', (`I' | `B' | `BI' | `IB') ; +% ::= `/', (`I' | `B' | `BI' | `IB' | `S=', \{ {\sc digit} \} ) ; % % ::= `(', \{ {\sc digit} \}, `)' ; % -- cgit v1.2.3 From 05011d3760a98b5b651413454de3ec0dd7f21470 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 6 May 2013 13:01:21 +0200 Subject: [doc] add auxlib to file graph --- filegraph.dot | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/filegraph.dot b/filegraph.dot index d69937b..36e5764 100644 --- a/filegraph.dot +++ b/filegraph.dot @@ -139,9 +139,10 @@ strict digraph luaotfload_files { //looks weird with circo ... label = < - - - + + + +
Luaotfload Libraries
luaotfload-lib-dir.lua luaotfload-features.lua
luaotfload-override.lua luaotfload-loaders.lua
luaotfload-database.lua luaotfload-color.lua
luaotfload-lib-dir.lua luaotfload-features.lua
luaotfload-override.lua luaotfload-loaders.lua
luaotfload-database.lua luaotfload-color.lua
luaotfload-auxiliary.lua
>, ] -- cgit v1.2.3 From a3c17b60fb1f72c72e7a1d8093d345c4c056f22f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 6 May 2013 13:05:13 +0200 Subject: [doc] add auxlib to list of files --- luaotfload.dtx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/luaotfload.dtx b/luaotfload.dtx index 89490ca..8d17f53 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -1140,6 +1140,9 @@ and the derived files % (\abbrev{pfa}, \abbrev{pfb}). % \ouritem {luaotfload-database.lua} font names database. % \ouritem {luaotfload-colors.lua} color handling. +% \ouritem {luaotfload-auxiliary.lua} access to internal functionality +% for package authors +% (proposals for additions welcome). % \end{itemize} % % \begin{figure}[b] -- cgit v1.2.3 From 6c8c07e695d19dd73223f4c83aa78137e3c7791e Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 6 May 2013 13:06:18 +0200 Subject: update luaotfload.lua as included in dtx * default to cached name resolver (testing) * install less verbose file resolver --- luaotfload.dtx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/luaotfload.dtx b/luaotfload.dtx index 8d17f53..f11f466 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -1219,7 +1219,8 @@ local luaotfload = luaotfload config = config or { } config.luaotfload = config.luaotfload or { } -config.luaotfload.resolver = config.luaotfload.resolver or "normal" +------.luaotfload.resolver = config.luaotfload.resolver or "normal" +config.luaotfload.resolver = config.luaotfload.resolver or "cached" config.luaotfload.definer = config.luaotfload.definer or "patch" config.luaotfload.loglevel = config.luaotfload.loglevel or 1 config.luaotfload.color_callback = config.luaotfload.color_callback or "pre_linebreak_filter" @@ -1232,7 +1233,7 @@ luaotfload.module = { description = "OpenType layout system.", author = "Elie Roux & Hans Hagen", copyright = "Elie Roux", - license = "CC0" + license = "GPL v2.0" } local luatexbase = luatexbase @@ -1419,7 +1420,7 @@ local pop_namespaces = function (normalglobal, isolate) local _G = _G local mode = "non-destructive" if isolate then mode = "destructive" end - log("pop namespace from font loader -- "..mode) + log("pop namespace from font loader -- " .. mode) for k, v in next, _G do if not normalglobal[k] then context_environment[k] = v @@ -1606,8 +1607,8 @@ formats.ofm = "type1" % % \begin{macrocode} request_resolvers.file = function (specification) - --local found = fonts.names.crude_file_lookup(specification.name) - local found = fonts.names.crude_file_lookup_verbose(specification.name) + local found = fonts.names.crude_file_lookup(specification.name) + --local found = fonts.names.crude_file_lookup_verbose(specification.name) specification.name = found[1] --if format then specification.forced = format end end -- cgit v1.2.3