summaryrefslogtreecommitdiff
path: root/doc/luaotfload-latex.tex
diff options
context:
space:
mode:
Diffstat (limited to 'doc/luaotfload-latex.tex')
-rw-r--r--doc/luaotfload-latex.tex7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/luaotfload-latex.tex b/doc/luaotfload-latex.tex
index c886462..34c494d 100644
--- a/doc/luaotfload-latex.tex
+++ b/doc/luaotfload-latex.tex
@@ -34,7 +34,7 @@
\makeatletter
-\usepackage {metalogo,multicol,mdwlist,fancyvrb,xspace}
+\usepackage {metalogo,multicol,fancyvrb,xspace}
\usepackage [x11names] {xcolor}
\def \primarycolor {DodgerBlue4} %%-> rgb 16 78 139 | #104e8b
@@ -244,9 +244,14 @@
\directlua {
local texprint = tex.print
+ local stringsub = string.sub
+ local backslash = string.byte (0x5c)
document = document or { }
document.printlines = function (buffer)
for _, line in next, string.explode (buffer, "\noexpand\n") do
+ if stringsub (line, 1, 1) == " " then
+ line = backslash .. line
+ end
texprint (-1, line)
texprint (-1, "")
end