Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
luatex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeXLive
luatex
Commits
fa4c9597
Commit
fa4c9597
authored
5 years ago
by
Luigi Scarso
Browse files
Options
Downloads
Patches
Plain Diff
sync with experimental revision 7323.
parent
0bea8c54
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
manual/luatex-nodes.tex
+2
-2
2 additions, 2 deletions
manual/luatex-nodes.tex
manual/luatex-tex.tex
+12
-8
12 additions, 8 deletions
manual/luatex-tex.tex
manual/luatex.pdf
+0
-0
0 additions, 0 deletions
manual/luatex.pdf
manual/luatex.tex
+7
-0
7 additions, 0 deletions
manual/luatex.tex
with
21 additions
and
10 deletions
manual/luatex-nodes.tex
+
2
−
2
View file @
fa4c9597
...
...
@@ -1935,8 +1935,8 @@ character protrusion is active, this node can be skipped.
\libindex
{
setglue
}
You can set the properties of a glue in one go.
If you pass no
values
or
not valid numbers, the glue will become a zero glue
.
You can set the
five
properties of a glue in one go.
Non|
-
|numeric
values
are
equivalent to zero and reset a property
.
\startfunctioncall
node.setglue
(
<node> n
)
...
...
This diff is collapsed.
Click to expand it.
manual/luatex-tex.tex
+
12
−
8
View file @
fa4c9597
...
...
@@ -689,13 +689,14 @@ We have similar setters for \type {count}, \type {dimen}, \type {muskip}, and
\type
{
toks
}
. Counters and dimen are represented by numbers, skips and muskips by
nodes, and toks by strings.
Again the glue variants are not using the
\nod
{
glue
-
spec
}
userdata nodes. The
Again the glue variants are not using the
\nod
{
glue
_
spec
}
userdata nodes. The
\type
{
setglue
}
function accepts upto 5 arguments: width, stretch, shrink,
stretch order and shrink order and the
\type
{
getglue
}
function reports them,
unless the second argument is
\type
{
false
}
in which care only the width is
returned.
stretch order and shrink order. If you pass no values or if a value is not a
number the corresponding property will become a zero. The
\type
{
getglue
}
function reports all properties, unless the second argument is
\type
{
false
}
in
which care only the width is returned.
Here is an example usi
g
n a threesome:
Here is an example usin
g
a threesome:
\startfunctioncall
local d = tex.getdimen("foo")
...
...
@@ -725,7 +726,7 @@ are special because they have to deal with more properties.
As with the general
\type
{
get
}
and
\type
{
set
}
function discussed before, for
the skip registers
\type
{
getskip
}
returns a node and
\type
{
getglue
}
returns
numbers, while
\type
{
setskip
}
accepts a node and
\type
{
setglue
}
expects upto
5
numbers, while
\type
{
setskip
}
accepts a node and
\type
{
setglue
}
expects upto
five
numbers. Again, when you pass
\type
{
false
}
as second argument to
\type
{
getglue
}
you only get the width returned. The same is true for the
\type
{
mu
}
variants
\type
{
getmuskip
}
,
\type
{
setmuskip
}
,
\type
{
getmuskip
}
and
\type
{
setmuskip
}
.
...
...
@@ -737,7 +738,7 @@ tex.scantoks(0,3,"$e=mc^2$")
tex.scantoks("global",0,"
$
\int\limits
^
1
_
2
$
")
\stopfunctioncall
In the function
-
based interface, it is possible to define values globally by
In the function
|-|
based interface, it is possible to define values globally by
using the string
\type
{
global
}
as the first function argument.
\stopsubsection
...
...
@@ -1614,7 +1615,10 @@ primitives \quote{\tex{ }}, \quote{\tex {/}} and \quote{\type {-}} are defined.
\startluacode
function document.showprimitives
(
tag
)
for k, v in table.sortedpairs
(
tex.extraprimitives
(
tag
))
do
local t
=
tex.extraprimitives
(
tag
)
table.sort
(
t
)
for i
=
1
,#t do
local v
=
t
[
i
]
if v ~
=
' ' and v ~
=
"
/
" and v ~
=
"
-
" then
context.type
(
v
)
context.space
()
...
...
This diff is collapsed.
Click to expand it.
manual/luatex.pdf
+
0
−
0
View file @
fa4c9597
No preview for this file type
This diff is collapsed.
Click to expand it.
manual/luatex.tex
+
7
−
0
View file @
fa4c9597
...
...
@@ -23,6 +23,13 @@
% comment : Some (parts of) chapters might have been published in TugBoat, the NTG Maps, the
% ConTeXt Group journal or otherwise. Thanks to the editors for corrections. Also
% thanks to users for testing, feedback and corrections.
%
% comment : Of course specific distribution can add to the manual, but that is of course not
% our responsibility. The official (latest) version of this manual is part of the
% ConTeXt distribution, including a pdf file that is produced with the current
% version of ConTeXt. So, in case of doubt use that one as reference. Some of the
% improvements in the LuaMetaTeX manual that apply to LuaTeX might get retrofitted
% in LuaTeX manual in due time.
% \tex vs \type vs \syntax vs. \luatex
% \em \it \/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment