summaryrefslogtreecommitdiff
path: root/doc/luaotfload-latex.tex
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-02-26 07:08:04 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2014-02-26 07:08:04 +0100
commit07d7f65c89e51d356145560dc6acfaded011398e (patch)
treed61978d72d544851e0ee4f331934828db60183d2 /doc/luaotfload-latex.tex
parenta7d9c930f9f0c688a2530bd23e59f0cd830fc9d6 (diff)
downloadluaotfload-07d7f65c89e51d356145560dc6acfaded011398e.tar.gz
[doc] move description and figure environment to more abstract macros
Diffstat (limited to 'doc/luaotfload-latex.tex')
-rw-r--r--doc/luaotfload-latex.tex29
1 files changed, 23 insertions, 6 deletions
diff --git a/doc/luaotfload-latex.tex b/doc/luaotfload-latex.tex
index 58c8793..0e86b83 100644
--- a/doc/luaotfload-latex.tex
+++ b/doc/luaotfload-latex.tex
@@ -248,9 +248,10 @@
}
}
-\definelist [definitions]{\normalitem {\fileent {\first}}}
-\definelist [filelist]{\normalitem {\fileent {\first}}\space--\hskip 1em}
-\definelist [functionlist]{\normalitem {\luafunction {\first}}\hfill\break}
+\definelist [descriptions]{\normalitem {\textbf \first}\hfill\break}
+\definelist [definitions]{\normalitem {\fileent {\first}}}
+\definelist [filelist]{\normalitem {\fileent {\first}}\space--\hskip 1em}
+\definelist [functionlist]{\normalitem {\luafunction {\first}}\hfill\break}
\def \beginenumeration {\begin {enumerate}}
\def \endenumeration {\end {enumerate}}
@@ -293,9 +294,11 @@
%% figure floats
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\def \beginsyntaxfloat #1{%% the request syntax diagram
+%% syntax definition
+\def \beginsyntaxfloat #1#2{%% #1:label #2:caption
\begin {figure} [b]
- \def \syntaxcaption {#1}%
+ \edef \syntaxlabel {#1}%
+ \def \syntaxcaption {#2}%
\setlength\grammarparsep{12pt plus 2pt minus 2pt}%
\setlength\grammarindent{5cm}%
\begingroup
@@ -307,10 +310,24 @@
\end {grammar}
\endgroup
\caption \syntaxcaption
- \label{font-syntax}
+ \label \syntaxlabel
\end {figure}
}
+%% figures, e.g. the file graph
+\def \beginfigurefloat #1#2{%% #1:label #2:caption
+ \begingroup
+ \begin {figure} [b]
+ \edef \figurelabel {#1}%
+ \caption {#2}%
+}
+
+\def \endfigurefloat {%
+ \label \figurelabel
+ \end {figure}
+ \endgroup
+}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% hyperlinks
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%