diff options
author | Karl Berry <karl@freefriends.org> | 2018-04-03 21:38:18 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-04-03 21:38:18 +0000 |
commit | 3fb0ad9f253c3ebf81ce763d3f6ddb3f9d9f4191 (patch) | |
tree | 41cb948bdec6398d9a899bde276f561b42364f25 /Master/texmf-dist/doc/context/sources | |
parent | 10bc59082551160a5434cb4c7fcfdc7816bb647d (diff) |
context (3apr18)
git-svn-id: svn://tug.org/texlive/trunk@47272 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/context/sources')
6 files changed, 77 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/context/sources/general/manuals/hybrid/hybrid-grouping.tex b/Master/texmf-dist/doc/context/sources/general/manuals/hybrid/hybrid-grouping.tex index 44018e74633..c95186c990d 100644 --- a/Master/texmf-dist/doc/context/sources/general/manuals/hybrid/hybrid-grouping.tex +++ b/Master/texmf-dist/doc/context/sources/general/manuals/hybrid/hybrid-grouping.tex @@ -25,7 +25,7 @@ keywords=, author=Hans Hagen, address=PRAGMA ADE\\Ridderstraat 27\\8061GH Hasselt NL, - email=pragma@wxs.nl] + email=pragma@xs4all.nl] % % we use a buffer as abstract themselves are buffers and % inside macros we loose line endings and such diff --git a/Master/texmf-dist/doc/context/sources/general/manuals/hybrid/hybrid-parbuilder.tex b/Master/texmf-dist/doc/context/sources/general/manuals/hybrid/hybrid-parbuilder.tex index 06519b2fb91..cceac6d55e0 100644 --- a/Master/texmf-dist/doc/context/sources/general/manuals/hybrid/hybrid-parbuilder.tex +++ b/Master/texmf-dist/doc/context/sources/general/manuals/hybrid/hybrid-parbuilder.tex @@ -28,7 +28,7 @@ keywords=, author=Hans Hagen, address=PRAGMA ADE\\Ridderstraat 27\\8061GH Hasselt NL, - email=pragma@wxs.nl] + email=pragma@xs4all.nl] % % we use a buffer as abstract themselves are buffers and % inside macros we loose line endings and such diff --git a/Master/texmf-dist/doc/context/sources/general/manuals/languages/languages-sorting.tex b/Master/texmf-dist/doc/context/sources/general/manuals/languages/languages-sorting.tex index ce24f385c87..956866e5d81 100644 --- a/Master/texmf-dist/doc/context/sources/general/manuals/languages/languages-sorting.tex +++ b/Master/texmf-dist/doc/context/sources/general/manuals/languages/languages-sorting.tex @@ -230,6 +230,72 @@ This three entry index\jindex{ぱあ}\jindex{ぱー}\jindex{ぱぁ} should be so % ぱー $\prec$ ぱぁ $\prec$ ぱあ +\startsection[title=Special usage] + +The following example demonstrates how you can trick the sorter into doing other +things: \footnote {The \type {replacementlist} helper is the result of a request +by John Grasty on the mailing list.} + +\startbuffer +\startluacode + local list = { + -- old testament + "Genesis", "Exodus", "Leviticus", "Numbers", "Deuteronomy", "Joshua", + "Judges", "Ruth", "1 Samuel", "2 Samuel", "1 Kings", "2 Kings", + "1 Chronicles", "2 Chronicles", "Ezra", "Nehemiah", "Esther", "Job", + "Psalms", "Proverbs", "Ecclesiastes", "Canticles", "Isaiah", "Jeremiah", + "Lamentations", "Ezekiel", "Daniel", "Hosea", "Joel", "Amos", "Obadiah", + "Jonah", "Micah", "Nahum", "Habakkuk", "Zephaniah", "Haggai", + "Zechariah", "Malachi", + -- new testament + "Matthew", "Mark", "Luke", "John", "Acts", "Romans", "1 Corinthians", + "2 Corinthians", "Galatians", "Ephesians", "Philippians", "Colossians", + "1 Thessalonians", "2 Thessalonians", "1 Timothy", "2 Timothy", "Titus", + "Philemon", "Hebrews", "James", "1 Peter", "2 Peter", "1 John", "2 John", + "3 John", "Jude", "Revelation", + } + + sorters.definitions["bible"] = { + replacements = sorters.replacementlist(list), + } +\stopluacode + +\defineregister + [booksort] + [language=bible, + n=3, + criterium=text, + indicator=no] +\stopbuffer + +\typebuffer \getbuffer + +We use this as follows: + +\startbuffer +One \booksort{Genesis+5.2} +Two \booksort{Exodus+2} +Three \booksort{Genesis+45} +Four \booksort{Philemon+2} +Five \booksort{John+45} +Six \booksort{1 John 1+45} +Seven \booksort{2 John 2+45} + +\placeregister + [booksort] + [language=bible] +\stopbuffer + +\typebuffer + +which gives: + +\getbuffer + +\stoptext + +\stopsection + \stopchapter \stopcomponent diff --git a/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex-enhancements.tex b/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex-enhancements.tex index d1da33878e0..e0119bf7e98 100644 --- a/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex-enhancements.tex +++ b/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex-enhancements.tex @@ -384,7 +384,7 @@ is easier to keep the code in a separate file and load it using \LUA's \directlua { dofile('mysetups.lua') } \stoptyping -\subsection{\type {\luafunction}} +\subsection{\type {\luafunction} and \type {\luafunctioncall}} The \type {\directlua} commands involves tokenization of its argument (after picking up an optional name or number specification). The tokenlist is then @@ -417,6 +417,9 @@ in the following example the number \type {8} gets typeset. } \stoptyping +The \type {\luafunctioncall} primitive does the same but is unexpandable, for instance +in an \type {\edef}. + \section {Alignments} \subsection{\tex {alignmark}} diff --git a/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex.tex b/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex.tex index 1d6f16f6a95..3025788bfe5 100644 --- a/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex.tex +++ b/Master/texmf-dist/doc/context/sources/general/manuals/luatex/luatex.tex @@ -2,6 +2,10 @@ % \disabledirectives[vspacing.synchronizepage] +% wsl /data/context/runcontext.sh --global --path=/mnt/c/data/develop/context/manuals/mkiv/external/luatex luatex.tex +% +% same runtime as regular context or linux + % author : Hans Hagen with Taco Hoekwater, Luigi Scarso & Hartmut Henkel % copyright : PRAGMA ADE & ConTeXt Development Team % license : Creative Commons Attribution ShareAlike 4.0 International diff --git a/Master/texmf-dist/doc/context/sources/general/manuals/xml/xml-mkiv.tex b/Master/texmf-dist/doc/context/sources/general/manuals/xml/xml-mkiv.tex index 0f9c74662c9..8550badecb3 100644 --- a/Master/texmf-dist/doc/context/sources/general/manuals/xml/xml-mkiv.tex +++ b/Master/texmf-dist/doc/context/sources/general/manuals/xml/xml-mkiv.tex @@ -2347,7 +2347,7 @@ status information, using for instance: \stopxmlcmd \startxmlcmd {\cmdbasicsetup{xmlinfo}} - typeset the name if the element given by \cmdinternal {cd:node} + typeset the name in the element given by \cmdinternal {cd:node} \stopxmlcmd \startxmlcmd {\cmdbasicsetup{xmlpath}} |