From 717e95884408a83aaf6c7f34fd38b94b2fb83bed Mon Sep 17 00:00:00 2001 From: Context Git Mirror Bot Date: Sat, 19 Dec 2015 15:15:06 +0100 Subject: 2015-12-19 14:45:00 --- doc/context/documents/general/manuals/luatex.pdf | Bin 990446 -> 993218 bytes doc/context/scripts/mkiv/mtx-bibtex.html | 55 +++++++++++++++++++++ doc/context/scripts/mkiv/mtx-bibtex.man | 33 +++++++++++++ doc/context/scripts/mkiv/mtx-bibtex.xml | 28 +++++++++++ .../sources/general/manuals/luatex/luatex-math.tex | 4 ++ .../manuals/luatex/luatex-modifications.tex | 2 +- .../general/manuals/luatex/luatex-nodes.tex | 29 ++--------- 7 files changed, 126 insertions(+), 25 deletions(-) create mode 100644 doc/context/scripts/mkiv/mtx-bibtex.html create mode 100644 doc/context/scripts/mkiv/mtx-bibtex.man create mode 100644 doc/context/scripts/mkiv/mtx-bibtex.xml (limited to 'doc') diff --git a/doc/context/documents/general/manuals/luatex.pdf b/doc/context/documents/general/manuals/luatex.pdf index 5ddde1596..523cb3dbd 100644 Binary files a/doc/context/documents/general/manuals/luatex.pdf and b/doc/context/documents/general/manuals/luatex.pdf differ diff --git a/doc/context/scripts/mkiv/mtx-bibtex.html b/doc/context/scripts/mkiv/mtx-bibtex.html new file mode 100644 index 000000000..61a679716 --- /dev/null +++ b/doc/context/scripts/mkiv/mtx-bibtex.html @@ -0,0 +1,55 @@ + + + + + + + + + + + bibtex helpers + + + + + +
+
bibtex helpers
+
+
+
+
wiki: http://contextgarden.net | mail: ntg-context@ntg.nl | website: http://www.pragma-ade.nl
+
+
+
+ +
+
+

Command line options

+ + + + + + +
flagvaluedescription
--toxmlconvert bibtex database(s) to xml
--toluaconvert bibtex database(s) to lua
--searchseatch bibtex database(s)
+
+

Example

+mtxrun --script bibtex --tolua bibl-001.bib +
mtxrun --script bibtex --tolua --simple bibl-001.bib +
mtxrun --script bibtex --toxml bibl-001.bib bibl-002.bib bibl-003.bib biblio.xml +
mtxrun --script bibtex --search --list --pattern=match(author:foo) bar.bib +

+
+ + diff --git a/doc/context/scripts/mkiv/mtx-bibtex.man b/doc/context/scripts/mkiv/mtx-bibtex.man new file mode 100644 index 000000000..ddd3cfbc5 --- /dev/null +++ b/doc/context/scripts/mkiv/mtx-bibtex.man @@ -0,0 +1,33 @@ +.TH "mtx-bibtex" "1" "01-01-2015" "version 1.00" "bibtex helpers" +.SH NAME +.B mtx-bibtex +.SH SYNOPSIS +.B mtxrun --script bibtex [ +.I OPTIONS ... +.B ] [ +.I FILENAMES +.B ] +.SH DESCRIPTION +.B bibtex helpers +.SH OPTIONS +.TP +.B --toxml +convert bibtex database(s) to xml +.TP +.B --tolua +convert bibtex database(s) to lua +.TP +.B --search +seatch bibtex database(s) +.SH AUTHOR +More information about ConTeXt and the tools that come with it can be found at: + + +.B "maillist:" +ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context + +.B "webpage:" +http://www.pragma-ade.nl / http://tex.aanhet.net + +.B "wiki:" +http://contextgarden.net diff --git a/doc/context/scripts/mkiv/mtx-bibtex.xml b/doc/context/scripts/mkiv/mtx-bibtex.xml new file mode 100644 index 000000000..5c28b946a --- /dev/null +++ b/doc/context/scripts/mkiv/mtx-bibtex.xml @@ -0,0 +1,28 @@ + + + + mtx-bibtex + bibtex helpers + 1.00 + + + + + convert bibtex database(s) to xml + convert bibtex database(s) to lua + seatch bibtex database(s) + + + + + + Example + + mtxrun --script bibtex --tolua bibl-001.bib + mtxrun --script bibtex --tolua --simple bibl-001.bib + mtxrun --script bibtex --toxml bibl-001.bib bibl-002.bib bibl-003.bib biblio.xml + mtxrun --script bibtex --search --list --pattern=match(author:foo) bar.bib + + + + diff --git a/doc/context/sources/general/manuals/luatex/luatex-math.tex b/doc/context/sources/general/manuals/luatex/luatex-math.tex index 0fcf0e52f..5447835db 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-math.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-math.tex @@ -88,6 +88,10 @@ Unaltered: \NC \type {\radical} \NC 0--7FFFFFF \NC \NR \stoptabulate +For practical reasons \type {\mathchardef} will silently accept values larger +that \type {0x8000} and interpret it as \type {\Umathcharnumdef}. This is needed +to satisfy older macro packages. + New primitives that are compatible with \XETEX: \starttabulate[|l|l|l|l|] diff --git a/doc/context/sources/general/manuals/luatex/luatex-modifications.tex b/doc/context/sources/general/manuals/luatex/luatex-modifications.tex index 0fbd16dc7..7818ea5b4 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-modifications.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-modifications.tex @@ -586,7 +586,7 @@ the defaults; these are: \starttyping \pdfcompresslevel 9 \pdfobjcompresslevel 1 -\pdfdecimaldigits 3 +\pdfdecimaldigits 4 \pdfgamma 1000 \pdfimageresolution 71 \pdfimageapplygamma 0 diff --git a/doc/context/sources/general/manuals/luatex/luatex-nodes.tex b/doc/context/sources/general/manuals/luatex/luatex-nodes.tex index f9d240689..ad0a74b30 100644 --- a/doc/context/sources/general/manuals/luatex/luatex-nodes.tex +++ b/doc/context/sources/general/manuals/luatex/luatex-nodes.tex @@ -1156,7 +1156,7 @@ if next then end \stoptyping -There are several such function based accessors now: +If performance matters you can use an function instead: \starttabulate[|T|p|] \NC getnext \NC parsing nodelist always involves this one \NC \NR @@ -1166,7 +1166,8 @@ There are several such function based accessors now: \NC getsubtype \NC consulted less but also a topper \NC \NR \NC getfont \NC used a lot in otf handling (glyph nodes are consulted a lot) \NC \NR \NC getchar \NC idem and also in other places \NC \NR -\NC getdisc \NC returns the \type {pre}, \type {post} an d\type {replace} fields \NC \NR +\NC getdisc \NC returns the \type {pre}, \type {post} and \type {replace} fields and + optionally when true is passed also the tail fields. \NC \NR \NC getlist \NC we often parse nested lists so this is a convenient one too (only works for hlist and vlist!) \NC \NR \NC getleader \NC comparable to list, seldom used in \TEX\ (but needs frequent consulting @@ -1175,28 +1176,8 @@ There are several such function based accessors now: often shared so a specific getter makes no sense then) \NC \NR \stoptabulate -Some have setter counterparts: - -There are several such function based accessors now: - -\starttabulate[|T|p|] -\NC setnext \NC assigns a value to the next field \NC \NR -\NC setprev \NC assigns a value to the prev field \NC \NR -\NC setboth \NC assigns a value to the prev and next field \NC \NR -\NC setlink \NC links two noded \NC \NR -\NC setchar \NC sets the character field \NC \NR -\NC setdisc \NC sets the \type {pre}, \type {post} and \type {replace} fields and optionally the - \type {subtype} and \type {penalty} fields \NC \NR \NC \NR -\NC getfont \NC used a lot in otf handling (glyph nodes are consulted a lot) \NC \NR -\NC getchar \NC idem and also in other places \NC \NR -\NC getdisc \NC returns the \type {pre}, \type {post} an d\type {replace} fields \NC \NR -\NC getlist \NC we often parse nested lists so this is a convenient one too - (only works for hlist and vlist!) \NC \NR -\NC getleader \NC comparable to list, seldom used in \TEX\ (but needs frequent consulting - like lists; leaders could have been made a dedicated node type) \NC \NR -\NC getfield \NC generic getter, sufficient for the rest (other field names are - often shared so a specific getter makes no sense then) \NC \NR -\stoptabulate +The direct variants also have setters, where the discretionary setter takes three +(optional) arguments plus an optional fourth indicating the subtype. It doesn't make sense to add more. Profiling demonstrated that these fields can get accesses way more times than other fields. Even in complex documents, many -- cgit v1.2.3