summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/base/luatex-style.tex
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2016-04-14 09:27:03 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2016-04-14 09:27:03 +0000
commita8020de0fdcffefc08a0e49d1495d0ac21a0189f (patch)
treeabea46bcbdbd99136cced7d0127225164c920292 /Master/texmf-dist/doc/luatex/base/luatex-style.tex
parent1ff3dd32a94afec40e90dda8e2c14368e4f3dbe2 (diff)
updated LuaTeX manual.
git-svn-id: svn://tug.org/texlive/trunk@40500 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex/base/luatex-style.tex')
-rw-r--r--Master/texmf-dist/doc/luatex/base/luatex-style.tex29
1 files changed, 21 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/luatex/base/luatex-style.tex b/Master/texmf-dist/doc/luatex/base/luatex-style.tex
index 1b0912c93b6..feca120eddb 100644
--- a/Master/texmf-dist/doc/luatex/base/luatex-style.tex
+++ b/Master/texmf-dist/doc/luatex/base/luatex-style.tex
@@ -37,20 +37,28 @@
function document.functions.showfields(s)
local t = string.split(s,',')
- local r = { }
- for _, a in pairs(node.fields(t[1],t[2])) do
- if not skipped[a] then
- table.insert(r,'\\type{'.. a .. '}')
+ local f = node.fields(t[1],t[2])
+ if f then
+ local d = false
+ for i=1,#f do
+ local fi = f[i]
+ if skipped[fi] then
+ -- okay
+ elseif d then
+ context(', {\tttf %s}', fi)
+ else
+ context('{\tttf %s}', fi)
+ d = true
+ end
end
end
- tex.sprint(table.concat(r, ', '))
end
function document.functions.showid(s)
local t = string.split(s,',')
- tex.sprint('\\type{'.. node.id(t[1]) .. '}')
+ context('{tttf %s}',node.id(t[1]))
if t[2] then
- tex.sprint(', \\type{'.. node.subtype(t[2]) .. '}')
+ context(', {tttf %s}',node.subtype(t[2]))
end
end
@@ -327,13 +335,18 @@
\setuplist
[chapter,section,subsection,subsubsection]
[interaction=all,
- width=6em]
+ width=3em]
\setuplist
[chapter]
[style=bold,
color=keptcolor]
+\setuplist
+ [subsection,subsubsection]
+ [margin=3em,
+ width=5em]
+
% Hans doesn't like the bookmarks opening by default so we comment this:
%
% \setupinteractionscreen