diff options
author | Hans Hagen <pragma@wxs.nl> | 2021-09-13 10:02:31 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2021-09-13 10:02:31 +0200 |
commit | a8c525cd14d77b94662021671ef8eb62d5a7fe50 (patch) | |
tree | de834dfbe0fbdf277ca206d59896cacc4f9840c9 /doc/context/sources/general/manuals/lowlevel/lowlevel-expansion.tex | |
parent | 0b177b615d126b85d1399fba3cc55bb0d3ddfbba (diff) | |
download | context-a8c525cd14d77b94662021671ef8eb62d5a7fe50.tar.gz |
2021-09-13 09:40:00
Diffstat (limited to 'doc/context/sources/general/manuals/lowlevel/lowlevel-expansion.tex')
-rw-r--r-- | doc/context/sources/general/manuals/lowlevel/lowlevel-expansion.tex | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/context/sources/general/manuals/lowlevel/lowlevel-expansion.tex b/doc/context/sources/general/manuals/lowlevel/lowlevel-expansion.tex index 98f533859..6e9134914 100644 --- a/doc/context/sources/general/manuals/lowlevel/lowlevel-expansion.tex +++ b/doc/context/sources/general/manuals/lowlevel/lowlevel-expansion.tex @@ -11,7 +11,7 @@ [title=expansion, color=middleyellow] -\startsection[title=Preamble] +\startsectionlevel[title=Preamble] This short manual demonstrates a couple of properties of the macro language. It is not an in|-|depth philosophical expose about macro languages, tokens, @@ -23,9 +23,9 @@ book does and although there is no way to avoid the word \quote {token} I will d my best to not complicate matters by too much token speak. Examples show best what we mean. -\stopsection +\stopsectionlevel -\startsection[title={\TEX\ primitives}] +\startsectionlevel[title={\TEX\ primitives}] The \TEX\ language provides quite some commands and those built in are called primitives. User defined commands are called macros. A macro is a shortcut to a @@ -316,9 +316,9 @@ The first one gives \inlinebuffer[a], while the second gives \inlinebuffer[b]. % \afterassignment % \aftergroup -\stopsection +\stopsectionlevel -\startsection[title={\ETEX\ primitives}] +\startsectionlevel[title={\ETEX\ primitives}] In this engine a couple of extensions were added and later on \PDFTEX\ added some more. We only discuss a few that relate to expansion. There is however a pitfall @@ -439,9 +439,9 @@ letters. The next snippet shows these catcodes: The result is \quotation {\tt\inlinebuffer}: two characters are marked as \quote {letter} and two fall in the \quote {other} category. -\stopsection +\stopsectionlevel -\startsection[title={\LUATEX\ primitives}] +\startsectionlevel[title={\LUATEX\ primitives}] This engine adds a little to the expansion repertoire. First of all it offers a way to extend token lists registers: @@ -484,9 +484,9 @@ or token lists, simply because in the process \TEX\ has to create tokens lists too, but sometimes they're just more convenient to use. In \CONTEXT\ we actually do benefit from these. -\stopsection +\stopsectionlevel -\startsection[title={\LUAMETATEX\ primitives}] +\startsectionlevel[title={\LUAMETATEX\ primitives}] We already saw that macro's can be defined protected which means that @@ -999,9 +999,9 @@ performance or bloating the source. % tex.runlocal : function|number(register)|string(macro)|userdata(token) + expand + grouped % mplib.expandtex : mpx + kind + string|userdata + [string|true|table|userdata|number]* -\stopsection +\stopsectionlevel -\startsection[title=Dirty tricks] +\startsectionlevel[title=Dirty tricks] When I was updating this manual Hans vd Meer and I had some discussions about expansion and tokenization related issues when combining of \XML\ processing with @@ -1116,7 +1116,7 @@ so that we can do: A companion macro of this is \type {\wipetoken} but for that one you need to look into the source. -\stopsection +\stopsectionlevel \stopdocument |