summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/luatexref-env.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luatexref-env.tex')
-rw-r--r--Master/texmf-dist/doc/luatex/luatexref-env.tex43
1 files changed, 39 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/luatex/luatexref-env.tex b/Master/texmf-dist/doc/luatex/luatexref-env.tex
index 69ddd7496ca..a7c9ba6bcc9 100644
--- a/Master/texmf-dist/doc/luatex/luatexref-env.tex
+++ b/Master/texmf-dist/doc/luatex/luatexref-env.tex
@@ -2,13 +2,37 @@
\startenvironment luatexref-env
+% something rests this, but i hav eno time not to see where
+
+\unprotect \bgroup
+
+ \ifx\normalsuber\undefined \def\normalsuber{_} \fi
+ \ifx\normalsuper\undefined \def\normalsuper{^} \fi
+
+ \catcode`_=\active
+ \catcode`^=\active
+
+ \gdef\nonknuthmode
+ {\appendtoks\let_\normalsuber\let^\normalsuper\to\everymathematics
+ \mathcode`_="8000
+ \mathcode`^="8000
+ \catcode`_=\@@other
+ \catcode`^=\@@other
+ }% \let\nonknuthmode\relax}
+
+ \gdef\donknuthmode
+ {\catcode`_=\@@subscript
+ \catcode`^=\@@superscript}
+
+\egroup \protect
+
\usemodule[abr-02]
% \tex : tex command
% \lua : native lua code
% \luatex : lua lib, function, value defined in luatex
-\catcode`\_=12 % we will make a nice attribute for this kind of break stuff
+\nonknuthmode
\setuptolerance[stretch,tolerant]
@@ -191,7 +215,7 @@
\startstandardmakeup
\switchtobodyfont[mainfacemedium]
- \definedfont[Bold at .08\paperheight] \setupinterlinespace
+ \definedfont[Bold at \the\dimexpr.08\paperheight\relax] \setupinterlinespace
\setlayer[page]{\useMPgraphic{luapage}}
@@ -302,11 +326,22 @@
\fi
-\setupinteraction[state=start]
-\placebookmarks[chapter,section,subsection]
+\setupinteraction
+ [state=start,
+ color=,
+ contrastcolor=]
+
+\placebookmarks
+ [chapter,section,subsection]
+
+\setuplist
+ [chapter,section,subsection]
+ [interaction=all]
% Hans doesn't like the bookmarks opening by default
% \setupinteractionscreen[option=bookmark]
+\appendtoks\let\luatex\firstofoneargument\to\simplifiedcommands
+
\stopenvironment