summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-03-30 11:54:45 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-03-30 11:54:45 +0200
commitd0d63530acf762f080e8c6255949398a918bf0bc (patch)
tree46c7b938a55ac8f8bd7500e23ada735b0a049854 /doc
parent0e84e53f47e859ff8d4617747a9075947e79c017 (diff)
downloadluaotfload-d0d63530acf762f080e8c6255949398a918bf0bc.tar.gz
[doc] workaround for inline code in tables
Diffstat (limited to 'doc')
-rw-r--r--doc/luaotfload-latex.tex6
-rw-r--r--doc/luaotfload-main.tex15
2 files changed, 11 insertions, 10 deletions
diff --git a/doc/luaotfload-latex.tex b/doc/luaotfload-latex.tex
index 409adcf..c886462 100644
--- a/doc/luaotfload-latex.tex
+++ b/doc/luaotfload-latex.tex
@@ -208,12 +208,10 @@
\usepackage {listings}
\lstset {
basicstyle=\ttfamily,
- escapechar=Ö,
}
-\def \inlinecode #1{%
- \lstinline {#1}%
-}
+%\let \inlinecode \lstinline
+\protected \def \inlinecode {\lstinline}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% codelistings; this sucks hard since we lack access to buffers
diff --git a/doc/luaotfload-main.tex b/doc/luaotfload-main.tex
index 5b033c0..5e7c1bc 100644
--- a/doc/luaotfload-main.tex
+++ b/doc/luaotfload-main.tex
@@ -757,12 +757,15 @@ Currently (2014) there are three of them:
Applies legacy \TEX ligatures:
\unless \ifcontextmkiv
+ %% Using braced arg syntax with inline code appears to be
+ %% impossible within Latex tables -- just ignore the weird
+ %% exclamation points below.
\begintabulate [rlrl]
- \beginrow `` \newcell \inlinecode {``} \newcell '' \newcell \inlinecode {''} \endrow
- \beginrow ` \newcell \inlinecode {`} \newcell ' \newcell \inlinecode {'} \endrow
- \beginrow " \newcell \inlinecode {"} \newcell -- \newcell \inlinecode {--} \endrow
- \beginrow --- \newcell \inlinecode {---} \newcell !` \newcell \inlinecode {!`} \endrow
- \beginrow ?` \newcell \inlinecode {?`} \newcell \newcell \endrow
+ \beginrow `` \newcell {\inlinecode !``! } \newcell '' \newcell {\inlinecode !''!} \endrow
+ \beginrow ` \newcell {\inlinecode !`! } \newcell ' \newcell {\inlinecode !'! } \endrow
+ \beginrow " \newcell {\inlinecode !"! } \newcell -- \newcell {\inlinecode !--!} \endrow
+ \beginrow --- \newcell {\inlinecode !---!} \newcell !` \newcell {\inlinecode ?!`?} \endrow
+ \beginrow ?` \newcell {\inlinecode !?`! } \newcell \newcell \endrow
\endtabulate
\else
%% XXX find a way to wrap these in the tabulate environment
@@ -911,7 +914,7 @@ directories.
\begincentered
\begintabulate [lp{.5\textwidth}]
\beginrow
- Windows \newcell \inlinecode {\% WINDIR\%\\ Fonts}
+ Windows \newcell \inlinecode !\% WINDIR\%\\ Fonts!
\endrow
\beginrow
Linux \newcell \fileent{/usr/local/etc/fonts/fonts.conf} and\hfill\break