summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/luatex/luatex-preamble.tex
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-04-19 17:37:21 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2018-04-19 17:37:21 +0200
commitd817aef76ab8b606c02bd0636661b634b43a68a6 (patch)
treeb222d7a356ebe7f1f2267f6aa4f4e424a4d6d88c /doc/context/sources/general/manuals/luatex/luatex-preamble.tex
parentd57683f5f67d6651f7b3353ff347ae57a409e0d4 (diff)
downloadcontext-d817aef76ab8b606c02bd0636661b634b43a68a6.tar.gz
2018-04-19 16:02:00
Diffstat (limited to 'doc/context/sources/general/manuals/luatex/luatex-preamble.tex')
-rw-r--r--doc/context/sources/general/manuals/luatex/luatex-preamble.tex27
1 files changed, 26 insertions, 1 deletions
diff --git a/doc/context/sources/general/manuals/luatex/luatex-preamble.tex b/doc/context/sources/general/manuals/luatex/luatex-preamble.tex
index 036dd49fc..98837e98d 100644
--- a/doc/context/sources/general/manuals/luatex/luatex-preamble.tex
+++ b/doc/context/sources/general/manuals/luatex/luatex-preamble.tex
@@ -6,6 +6,10 @@
\startchapter[reference=preamble,title={Preamble}]
+\topicindex{nodes}
+\topicindex{boxes}
+\topicindex[lua]{\LUA}
+
This is a reference manual, not a tutorial. This means that we discuss changes
relative to traditonal \TEX\ and also present new functionality. As a consequence
we will refer to concepts that we assume to be known or that might be explained
@@ -22,7 +26,8 @@ want to peek in \quotation {The \ETEX\ manual} and documentation about \PDFTEX.
But \unknown\ if you're here because of \LUA, then all you need to know is that
you can call it from within a run. The macro package that you use probably will
-provide a few wrapper mechanisms but the basic command that does the job is:
+provide a few wrapper mechanisms but the basic \lpr {directlua} command that
+does the job is:
\starttyping
\directlua{tex.print("Hi there")}
@@ -78,6 +83,26 @@ pages, including images, and so on. You should be aware of the fact that when yo
hook in your own code to manipulate lists, this can interfere with the macro
package that you use.
+When you read about nodes in the following chapters it's good to keep in mind their
+commands that relate to then. here are a few:
+
+\starttabulate[|l|l|p|]
+\DB command \BC node \BC explanation \NC \NR
+\TB
+\NC \prm {hbox} \NC \nod {hlist} \NC horizontal box \NC \NR
+\NC \prm {vbox} \NC \nod {vlist} \NC vertical box with the baseline at the bottom \NC \NR
+\NC \prm {vtop} \NC \nod {vlist} \NC vertical box with the baseline at the top \NC \NR
+\NC \prm {hskip} \NC \nod {glue} \NC horizontal skip with optional stretch and shrink \NC \NR
+\NC \prm {vskip} \NC \nod {glue} \NC vertical skip with optional stretch and shrink \NC \NR
+\NC \prm {kern} \NC \nod {kern} \NC horizontal or vertical fixed skip \NC \NR
+\NC \prm {discretionary} \NC \nod {disc} \NC hyphenation point (pre, post, replace) \NC \NR
+\NC \prm {char} \NC \nod {glyph} \NC a character \NC \NR
+\NC \prm {hrule} \NC \nod {rule} \NC a horizontal rule \NC \NR
+\NC \prm {vrule} \NC \nod {rule} \NC a vertical rule \NC \NR
+\NC \prm {textdir} \NC \nod {dir} \NC a change in text direction \NC \NR
+\LL
+\stoptabulate
+
For now this should be enough to enable you to understand the next chapters.
\stopchapter