From d0d63530acf762f080e8c6255949398a918bf0bc Mon Sep 17 00:00:00 2001
From: Philipp Gesang <phg42.2a@gmail.com>
Date: Sun, 30 Mar 2014 11:54:45 +0200
Subject: [doc] workaround for inline code in tables

---
 doc/luaotfload-main.tex | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

(limited to 'doc/luaotfload-main.tex')

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
-- 
cgit v1.2.3

