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
6bac97ee
Commit
6bac97ee
authored
7 years ago
by
Luigi Scarso
Browse files
Options
Downloads
Patches
Plain Diff
example added for hyphenationbounds
[[Split portion of a mixed commit.]]
parent
e43fef67
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
manual/luatex-languages.tex
+59
-0
59 additions, 0 deletions
manual/luatex-languages.tex
manual/luatex-math.tex
+1
-3
1 addition, 3 deletions
manual/luatex-math.tex
manual/luatex.pdf
+0
-0
0 additions, 0 deletions
manual/luatex.pdf
with
60 additions
and
3 deletions
manual/luatex-languages.tex
+
59
−
0
View file @
6bac97ee
...
...
@@ -263,6 +263,65 @@ The word end is determined as follows:
\NC
adjust
\NC
when hyphenationbounds 2 or 3
\NC
\NR
\stoptabulate
\in
{
Figures
}
[hb:1] upto
\in
[hb:5]
show some examples. In all cases we set the min
values to 1 and make sure that the words hyphenate at each character.
\hyphenation
{
o-n-e t-w-o
}
\def\SomeTest
#1#2
%
{
\lefthyphenmin
\plusone
\righthyphenmin
\plusone
\parindent
\zeropoint
\everypar
\emptytoks
\dontcomplain
\hbox
to 2cm
{
%
\vtop
{
%
\hsize
1pt
\hyphenationbounds
#1
#2
\par
}}}
\startplacefigure
[reference=hb:1,title={\type{one}}]
\startcombination
[4*1]
{
\SomeTest
{
0
}{
one
}}
{
\type
{
0
}}
{
\SomeTest
{
1
}{
one
}}
{
\type
{
1
}}
{
\SomeTest
{
2
}{
one
}}
{
\type
{
2
}}
{
\SomeTest
{
3
}{
one
}}
{
\type
{
3
}}
\stopcombination
\stopplacefigure
\startplacefigure
[reference=hb:2,title={\type{one\null two}}]
\startcombination
[4*1]
{
\SomeTest
{
0
}{
one
\null
two
}}
{
\type
{
0
}}
{
\SomeTest
{
1
}{
one
\null
two
}}
{
\type
{
1
}}
{
\SomeTest
{
2
}{
one
\null
two
}}
{
\type
{
2
}}
{
\SomeTest
{
3
}{
one
\null
two
}}
{
\type
{
3
}}
\stopcombination
\stopplacefigure
\startplacefigure
[reference=hb:3,title={\type{\null one\null two}}]
\startcombination
[4*1]
{
\SomeTest
{
0
}{
\null
one
\null
two
}}
{
\type
{
0
}}
{
\SomeTest
{
1
}{
\null
one
\null
two
}}
{
\type
{
1
}}
{
\SomeTest
{
2
}{
\null
one
\null
two
}}
{
\type
{
2
}}
{
\SomeTest
{
3
}{
\null
one
\null
two
}}
{
\type
{
3
}}
\stopcombination
\stopplacefigure
\startplacefigure
[reference=hb:4,title={\type{one\null two\null}}]
\startcombination
[4*1]
{
\SomeTest
{
0
}{
one
\null
two
\null
}}
{
\type
{
0
}}
{
\SomeTest
{
1
}{
one
\null
two
\null
}}
{
\type
{
1
}}
{
\SomeTest
{
2
}{
one
\null
two
\null
}}
{
\type
{
2
}}
{
\SomeTest
{
3
}{
one
\null
two
\null
}}
{
\type
{
3
}}
\stopcombination
\stopplacefigure
\startplacefigure
[reference=hb:5,title={\type{\null one\null two\null}}]
\startcombination
[4*1]
{
\SomeTest
{
0
}{
\null
one
\null
two
\null
}}
{
\type
{
0
}}
{
\SomeTest
{
1
}{
\null
one
\null
two
\null
}}
{
\type
{
1
}}
{
\SomeTest
{
2
}{
\null
one
\null
two
\null
}}
{
\type
{
2
}}
{
\SomeTest
{
3
}{
\null
one
\null
two
\null
}}
{
\type
{
3
}}
\stopcombination
\stopplacefigure
% (Future versions of \LUATEX\ might provide more granularity.)
In traditional
\TEX\
ligature building and hyphenation are interwoven with the
...
...
This diff is collapsed.
Click to expand it.
manual/luatex-math.tex
+
1
−
3
View file @
6bac97ee
...
...
@@ -1091,8 +1091,6 @@ with zero being the default behaviour.
\def\OneLiner
#
1
#
2
%
{
\NC
#
1
% \NC \ruledhbox{\mathsurroundmode#1\relax\hsize 100pt x$x$x}
% \NC \ruledhbox{\mathsurroundmode#1\relax\hsize 100pt x $x$ x}
\NC
\dontleavehmode\inframed
[
align
=
normal,offset
=
0
pt,frame
=
off
]
{
\mathsurroundmode
#
1
\relax\hsize
100
pt x
$
x
$
x
}
\NC
\dontleavehmode\inframed
[
align
=
normal,offset
=
0
pt,frame
=
off
]
{
\mathsurroundmode
#
1
\relax\hsize
100
pt x
$
x
$
x
}
\NC
#
2
...
...
@@ -1124,7 +1122,7 @@ with zero being the default behaviour.
Method six omits the surround glue when there is
(
x
)
spacing glue present while
method seven does the opposite, the glue is only applied when there is
(
x
)
space
glue present too. Anything more fanc
e
, like checking the begining or end of a
glue present too. Anything more fanc
y
, like checking the begining or end of a
paragraph
(
or edges of a box
)
would not be robust anyway. If you want that you
can write a callback that runs over a list and analyzes a paragraph. Actually, in
that case you could also inject glue
(
or set the properties of a math node
)
...
...
This diff is collapsed.
Click to expand it.
manual/luatex.pdf
+
0
−
0
View file @
6bac97ee
No preview for this file type
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