Skip to content
Snippets Groups Projects
Commit b7e0200a authored by Luigi Scarso's avatar Luigi Scarso
Browse files

manual cleanup (HH)

parent 5dd5584d
Branches
Tags
No related merge requests found
...@@ -45,8 +45,8 @@ instead of a function for clearing the callback. ...@@ -45,8 +45,8 @@ instead of a function for clearing the callback.
For some minor speed gain, you can assign the boolean \type {false} to the For some minor speed gain, you can assign the boolean \type {false} to the
non|-|file related callbacks, doing so will prevent \LUATEX\ from executing non|-|file related callbacks, doing so will prevent \LUATEX\ from executing
whatever it would execute by default (when no callback function is registered at whatever it would execute by default (when no callback function is registered at
all). Be warned: this may cause all sorts of grief unless you know {\em exactly} all). Be warned: this may cause all sorts of grief unless you know \notabene
what you are doing! {exactly} what you are doing!
\startfunctioncall \startfunctioncall
<table> info = <table> info =
......
...@@ -392,8 +392,8 @@ Generally speaking, it is best to keep your chunks small, but beware that all ...@@ -392,8 +392,8 @@ Generally speaking, it is best to keep your chunks small, but beware that all
chunks have to obey proper syntax, like each of them is a small file. For chunks have to obey proper syntax, like each of them is a small file. For
instance, you cannot split a single statement over multiple chunks. instance, you cannot split a single statement over multiple chunks.
In contrast with the normal stand alone \type {mpost} command, there is {\em no} In contrast with the normal stand alone \type {mpost} command, there is
implied \quote{input} at the start of the first chunk. \notabene {no} implied \quote{input} at the start of the first chunk.
\subsection{\type {mp:finish}} \subsection{\type {mp:finish}}
......
...@@ -709,10 +709,10 @@ For example, take the word \type {office}, hyphenated \type {of-fice}, using a ...@@ -709,10 +709,10 @@ For example, take the word \type {office}, hyphenated \type {of-fice}, using a
type ligatures: type ligatures:
\starttabulate[|l|l|] \starttabulate[|l|l|]
\NC Initial: \NC \type {{o}{f}{f}{i}{c}{e}} \NC\NR \NC initial \NC \type {{o}{f}{f}{i}{c}{e}} \NC\NR
\NC After hyphenation: \NC \type {{o}{f}{{-},{},{}}{f}{i}{c}{e}} \NC\NR \NC after hyphenation \NC \type {{o}{f}{{-},{},{}}{f}{i}{c}{e}} \NC\NR
\NC First ligature stage: \NC \type {{o}{{f-},{f},{<ff>}}{i}{c}{e}} \NC\NR \NC first ligature stage \NC \type {{o}{{f-},{f},{<ff>}}{i}{c}{e}} \NC\NR
\NC Final result: \NC \type {{o}{{f-},{<fi>},{<ffi>}}{c}{e}} \NC\NR \NC final result \NC \type {{o}{{f-},{<fi>},{<ffi>}}{c}{e}} \NC\NR
\stoptabulate \stoptabulate
That's bad enough, but let us assume that there is also a hyphenation point That's bad enough, but let us assume that there is also a hyphenation point
...@@ -734,25 +734,25 @@ the top-level discretionary that resulted from the first hyphenation point. ...@@ -734,25 +734,25 @@ the top-level discretionary that resulted from the first hyphenation point.
Here is that nested solution again, in a different representation: Here is that nested solution again, in a different representation:
\starttabulate[|l|l|l|l|] \starttabulate[|l|c|c|c|c|c|c|]
\NC \NC pre \NC post \NC replace \NC \NR \NC \BC pre \BC \BC post \BC \BC replace \BC \NC \NR
\NC topdisc \NC \type {f-}$^1$ \NC sub1 \NC sub2 \NC \NR \NC topdisc \NC \type {f-} \NC (1) \NC \NC sub 1 \NC \NC sub 2 \NC \NR
\NC sub1 \NC \type {f-}$^2$ \NC \type {i}$^3$ \NC \type {<fi>}$^4$ \NC \NR \NC sub 1 \NC \type {f-} \NC (2) \NC \type {i} \NC (3) \NC \type {<fi>} \NC (4) \NC \NR
\NC sub2 \NC \type {<ff>-}$^5$\NC \type {i}$^6$ \NC \type {<ffi>}$^7$ \NC \NR \NC sub 2 \NC \type {<ff>-} \NC (5) \NC \type {i} \NC (6) \NC \type {<ffi>} \NC (7) \NC \NR
\stoptabulate \stoptabulate
When line breaking is choosing its breakpoints, the following fields will When line breaking is choosing its breakpoints, the following fields will
eventually be selected: eventually be selected:
\starttabulate[|l|l|] \starttabulate[|l|c|c|]
\NC \type {of-f-ice} \NC \type {f-}$^1$ \NC \NR \NC \type {of-f-ice} \NC \type {f-} \NC (1) \NC \NR
\NC \NC \type {f-}$^2$ \NC \NR \NC \NC \type {f-} \NC (2) \NC \NR
\NC \NC \type {i}$^3$ \NC \NR \NC \NC \type {i} \NC (3) \NC \NR
\NC \type {of-fice} \NC \type {f-}$^1$ \NC \NR \NC \type {of-fice} \NC \type {f-} \NC (1) \NC \NR
\NC \NC \type {<fi>}$^4$ \NC \NR \NC \NC \type {<fi>} \NC (4) \NC \NR
\NC \type {off-ice} \NC \type {<ff>-}$^5$ \NC \NR \NC \type {off-ice} \NC \type {<ff>-} \NC (5) \NC \NR
\NC \NC \type {i}$^6$ \NC \NR \NC \NC \type {i} \NC (6) \NC \NR
\NC \type {office} \NC \type {<ffi>}$^7$ \NC \NR \NC \type {office} \NC \type {<ffi>} \NC (7) \NC \NR
\stoptabulate \stoptabulate
The current solution in \LUATEX\ is not able to handle nested discretionaries, The current solution in \LUATEX\ is not able to handle nested discretionaries,
...@@ -770,14 +770,14 @@ make the whole stuff fit into just two discretionary nodes. ...@@ -770,14 +770,14 @@ make the whole stuff fit into just two discretionary nodes.
The mapping of the seven list fields to the six fields in this discretionary node The mapping of the seven list fields to the six fields in this discretionary node
pair is as follows: pair is as follows:
\starttabulate[|l|p|] \starttabulate[|l|c|c|]
\BC field \BC description \NC \NR \BC field \BC description \NC \NC \NR
\NC \type {disc1.pre} \NC \type {f-}$^1$ \NC \NR \NC \type {disc1.pre} \NC \type {f-} \NC (1) \NC \NR
\NC \type {disc1.post} \NC \type {<fi>}$^4$ \NC \NR \NC \type {disc1.post} \NC \type {<fi>} \NC (4) \NC \NR
\NC \type {disc1.replace} \NC \type {<ffi>}$^7$ \NC \NR \NC \type {disc1.replace} \NC \type {<ffi>} \NC (7) \NC \NR
\NC \type {disc2.pre} \NC \type {f-}$^2$ \NC \NR \NC \type {disc2.pre} \NC \type {f-} \NC (2) \NC \NR
\NC \type {disc2.post} \NC \type {i}$^{3{,}6}$\NC \NR \NC \type {disc2.post} \NC \type {i} \NC (3,6) \NC \NR
\NC \type {disc2.replace} \NC \type {<ff>-}$^5$\NC \NR \NC \type {disc2.replace} \NC \type {<ff>-} \NC (5) \NC \NR
\stoptabulate \stoptabulate
What is actually generated after ligaturing has been applied is therefore: What is actually generated after ligaturing has been applied is therefore:
......
...@@ -404,7 +404,7 @@ The \type {os} library has a few extra functions and variables: ...@@ -404,7 +404,7 @@ The \type {os} library has a few extra functions and variables:
\startitem \startitem
\type {os.env} is a hash table containing a dump of the variables and \type {os.env} is a hash table containing a dump of the variables and
values in the process environment at the start of the run. It is writeable, values in the process environment at the start of the run. It is writeable,
but the actual environment is {\em not\/} updated automatically. but the actual environment is \notabene {not} updated automatically.
\stopitem \stopitem
\startitem \startitem
...@@ -559,12 +559,17 @@ When Universal Time is needed, you can pass the flag \type {utc} to the engine. ...@@ -559,12 +559,17 @@ When Universal Time is needed, you can pass the flag \type {utc} to the engine.
property also works when the date and time are set by \LUATEX\ itself. It has a property also works when the date and time are set by \LUATEX\ itself. It has a
complementary entry \type {use_utc_time} in the \type {texconfig} table. complementary entry \type {use_utc_time} in the \type {texconfig} table.
{\em To some extend a cleaner solution would be to have a flag that disables all \startnotabene
variable data in one go (like filenames and so) but we just follow the method To some extend a cleaner solution would be to have a flag that disables all
implemented in \PDFTEX\ where primitives are used to influence other properties.} variable data in one go (like filenames and so) but we just follow the method
implemented in \PDFTEX\ where primitives are used to influence other
{\em In \CONTEXT\ we provide the command line argument \type {--nodates} that properties.
does bit more disabling of dates.} \stopnotabene
\startnotabene
In \CONTEXT\ we provide the command line argument \type {--nodates} that does
bit more disabling of dates.
\stopnotabene
\stopchapter \stopchapter
......
...@@ -1704,7 +1704,7 @@ node.set_attribute(<node> n, <number> id, <number> val) ...@@ -1704,7 +1704,7 @@ node.set_attribute(<node> n, <number> id, <number> val)
\stopfunctioncall \stopfunctioncall
Sets the attribute with number \type {id} to the value \type {val}. Duplicate Sets the attribute with number \type {id} to the value \type {val}. Duplicate
assignments are ignored. {\em [needs explanation]} assignments are ignored.
\subsubsection{\type {node.unset_attribute}} \subsubsection{\type {node.unset_attribute}}
......
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
luaorbitfactor := 1 ; luaorbitfactor := 1 ;
picture p ; p := lualogo xsized (3PaperWidth/5) ; picture p ; p := lualogo xsized (3PaperWidth/5) ;
draw p shifted center Page shifted (0,-.5ypart center ulcorner p) ; draw p shifted center Page shifted (0,-.85ypart center ulcorner p) ;
StopPage ; StopPage ;
\stopuseMPgraphic \stopuseMPgraphic
...@@ -354,6 +354,16 @@ ...@@ -354,6 +354,16 @@
[margin=3em, [margin=3em,
width=5em] width=5em]
\definestartstop
[notabene]
[style=slanted]
\definestartstop
[preamble]
[style=normal,
before=\blank,
after=\blank]
% Hans doesn't like the bookmarks opening by default so we comment this: % Hans doesn't like the bookmarks opening by default so we comment this:
% %
% \setupinteractionscreen % \setupinteractionscreen
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
[align=middle, [align=middle,
foregroundcolor=blue, foregroundcolor=blue,
frame=off] frame=off]
{Lua\TeX\\Reference} {Lua\TeX\\Reference Manual}
\definedfont[Bold*default at 18pt] \setupinterlinespace \definedfont[Bold*default at 18pt] \setupinterlinespace
......
No preview for this file type
...@@ -47,7 +47,13 @@ ...@@ -47,7 +47,13 @@
[status=beta, [status=beta,
version=1.06.0] version=1.06.0]
\component luatex-titlepage \startnotmode[*export]
\component luatex-titlepage
\stopnotmode
\startmode[*export]
\component luatex-export-titlepage
\stopmode
\startfrontmatter \startfrontmatter
\component luatex-contents \component luatex-contents
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment