diff options
35 files changed, 611 insertions, 474 deletions
diff --git a/doc/context/scripts/mkii/ctxtools.xml b/doc/context/scripts/mkii/ctxtools.xml index 9586270ce..8f51cd93a 100644 --- a/doc/context/scripts/mkii/ctxtools.xml +++ b/doc/context/scripts/mkii/ctxtools.xml @@ -28,6 +28,4 @@ </subcategory> </category> </flags> - </category> - </flags> </application> diff --git a/doc/context/scripts/mkii/pdftools.xml b/doc/context/scripts/mkii/pdftools.xml index 3b903ff4c..292ef4f88 100644 --- a/doc/context/scripts/mkii/pdftools.xml +++ b/doc/context/scripts/mkii/pdftools.xml @@ -19,6 +19,4 @@ </subcategory> </category> </flags> - </category> - </flags> </application> diff --git a/doc/context/scripts/mkii/pstopdf.xml b/doc/context/scripts/mkii/pstopdf.xml index f3a63c0e2..d7a7de0ae 100644 --- a/doc/context/scripts/mkii/pstopdf.xml +++ b/doc/context/scripts/mkii/pstopdf.xml @@ -13,6 +13,4 @@ </subcategory> </category> </flags> - </category> - </flags> </application> diff --git a/doc/context/scripts/mkii/rlxtools.xml b/doc/context/scripts/mkii/rlxtools.xml index b89671fdc..8a221eccf 100644 --- a/doc/context/scripts/mkii/rlxtools.xml +++ b/doc/context/scripts/mkii/rlxtools.xml @@ -13,6 +13,4 @@ </subcategory> </category> </flags> - </category> - </flags> </application> diff --git a/doc/context/scripts/mkii/texexec.xml b/doc/context/scripts/mkii/texexec.xml index c3cb6127b..8f85a4f25 100644 --- a/doc/context/scripts/mkii/texexec.xml +++ b/doc/context/scripts/mkii/texexec.xml @@ -27,6 +27,4 @@ </subcategory> </category> </flags> - </category> - </flags> </application> diff --git a/doc/context/scripts/mkii/texmfstart.html b/doc/context/scripts/mkii/texmfstart.html new file mode 100644 index 000000000..534e95671 --- /dev/null +++ b/doc/context/scripts/mkii/texmfstart.html @@ -0,0 +1,94 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + + + + + +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + <head> + <title>texmfstart 7.0.0</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <style type="text/css"> + body { color: #FFFFFF; background-color: #808080; font-family: optima, verdana, futura, "lucida sans", arial, geneva, helvetica, sans; font-size: 12px; line-height: 18px; } a:link, a:active, a:visited { color: #FFFFFF; } a.dir-view:link, a.dir-view:active, a.dir-view:visited { color: #FFFFFF; text-decoration: underline; } .valid { color: #00FF00; } .invalid { color: #FF0000; } button, .commonlink, .smallbutton { font-weight: bold; font-size: 12px; text-decoration: none; color: #000000; border-color: #7F7F7F; border-style: solid; border-width: .125ex; background-color: #FFFFFF; padding: .5ex; } .smallbutton { width: 1em; } a.commonlink:link, a.commonlink:active, a.commonlink:visited, a.smalllink:link, a.smalllink:active, a.smalllink:visited { font-weight: bold; font-size: 12px; text-decoration: none; color: #000000; } h1, .title { font-style: normal; font-weight: normal; font-size: 18px; line-height: 18px; margin-bottom: 20px; } h2, .subtitle { font-style: normal; font-weight: normal; font-size: 12px; margin-top: 18px; margin-bottom: 18px; } table { line-height: 18px; font-size: 12px; margin: 0; } th { font-weight: bold; text-align: left; padding-bottom: 6px; } .tc { font-weight: bold; text-align: left; } p, li { max-width: 60em; } .empty-line { margin-top: 4px; } .more-room { margin-right: 1.5em; } .much-more-room { margin-right: 3em; } #main { position: absolute; left: 10%; top: 10%; right: 10%; bottom: 10%; z-index: 2; width: 80%; height: 80%; padding: 0%; margin: 0%; overflow: auto; border-style: none; border-width: 0; background-color: #3F3F3F; } #main-settings { margin: 12px; x_max-width: 60em; line-height: 18px; font-size: 12px; } #left { position: absolute; top : 10%; left: 0%; bottom: 0%; right: 90%; z-index: 1; width: 10%; height: 90%; padding: 0%; margin: 0%; font-size: 16px; border-style: none; border-width: 0; background-color: #4F6F6F; } #right { position: absolute; top : 0%; left: 90%; bottom: 10%; right: 0%; z-index: 1; width: 10%; height: 90%; padding: 0%; margin: 0%; font-size: 16px; border-style: none; border-width: 0; background-color: #4F6F6F; _margin-left: -15px; } #bottom { position: absolute; left: 10%; right: 0%; top: 90%; bottom: 0%; z-index: 1; width: 90%; height: 10%; padding: 0%; margin: 0%; font-size: 16px; border-style: none; border-width: 0; background-color: #6F6F8F; } #top { position: absolute; left: 0%; right: 10%; top: 0%; bottom: 90%; z-index: 1; width: 90%; height: 10%; padding: 0%; margin: 0%; font-size: 16px; border-style: none; border-width: 0; background-color: #6F6F8F; } #top-one { position: absolute; bottom: 50%; width: 100%; buggedheight: 100%; } #top-two { position: relative; margin-bottom: -9px; margin-left: 12px; margin-right: 12px; line-height: 18px; text-align: right; vertical-align: middle; } #bottom-one { position: absolute; bottom: 50%; width: 100%; buggedheight: 100%; } #bottom-two { position: relative; margin-bottom: -9px; margin-left: 12px; margin-right: 12px; line-height: 18px; text-align: left; vertical-align: middle; } #left-one { position: absolute; width: 100%; buggedheight: 100%; } #left-two { position: relative; margin-top: 12px; line-height: 18px; text-align: center; vertical-align: top; } #right-one { display: table; height: 100%; width: 100%; } #right-two { display: table-row; height: 100%; width: 100%; } #right-three { display: table-cell; width: 100%; vertical-align: bottom; _position: absolute; _top: 100%; } #right-four { text-align: center; margin-bottom: 2ex; _position: relative; _top: -100%; } #more-top { position: absolute; top: 0%; left: 90%; bottom: 90%; right: 0%; z-index: 3; width: 10%; height: 10%; padding: 0%; margin: 0%; border-style: none; border-width: 0; } #more-top-settings { text-align: center; } #more-right-settings { margin-right: 12px; margin-left: 12px; line-height: 18px; font-size: 10px; text-align: center; } #right-safari { _display: table; width: 100%; height: 100%; } + </style> + <style type="text/css"> + </style> + </head> + <body> + <div id="top"> <div id="top-one"> + <div id="top-two">texmfstart 7.0.0 </div> + </div> + </div> + <div id="bottom"> <div id="bottom-one"> + <div id="bottom-two">wiki: http://contextgarden.net | mail: ntg-context@ntg.nl | website: http://www.pragma-ade.nl</div> + </div> + </div> + <div id="left"></div> + <div id="right"></div> + <div id="main"> + <div id='main-settings'> + <h1>Command line options</h1> +<table> + <tr><th style="width: 10em">flag</th><th style="width: 8em">value</th><th>description</th></tr> + <tr><th/><td/><td/></tr> + <tr><th>--script</th><td></td><td>run an mtx script (lua prefered method) (--noquotes), no script gives list</td></tr> + <tr><th>--execute</th><td></td><td>run a script or program (texmfstart method) (--noquotes)</td></tr> + <tr><th>--resolve</th><td></td><td>resolve prefixed arguments</td></tr> + <tr><th>--ctxlua</th><td></td><td>run internally (using preloaded libs)</td></tr> + <tr><th>--internal</th><td></td><td>run script using built in libraries (same as --ctxlua)</td></tr> + <tr><th>--locate</th><td></td><td>locate given filename in database (default) or system (--first --all --detail)</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--autotree</th><td></td><td>use texmf tree cf. env texmfstart_tree or texmfstarttree</td></tr> + <tr><th>--tree</th><td>pathtotree</td><td>use given texmf tree (default file: setuptex.tmf)</td></tr> + <tr><th>--environment</th><td>name</td><td>use given (tmf) environment file</td></tr> + <tr><th>--path</th><td>runpath</td><td>go to given path before execution</td></tr> + <tr><th>--ifchanged</th><td>filename</td><td>only execute when given file has changed (md checksum)</td></tr> + <tr><th>--iftouched</th><td>old,new</td><td>only execute when given file has changed (time stamp)</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--makestubs</th><td></td><td>create stubs for (context related) scripts</td></tr> + <tr><th>--removestubs</th><td></td><td>remove stubs (context related) scripts</td></tr> + <tr><th>--stubpath</th><td>binpath</td><td>paths where stubs wil be written</td></tr> + <tr><th>--windows</th><td></td><td>create windows (mswin) stubs</td></tr> + <tr><th>--unix</th><td></td><td>create unix (linux) stubs</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--verbose</th><td></td><td>give a bit more info</td></tr> + <tr><th>--trackers</th><td>list</td><td>enable given trackers</td></tr> + <tr><th>--progname</th><td>str</td><td>format or backend</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--edit</th><td></td><td>launch editor with found file</td></tr> + <tr><th>--launch</th><td></td><td>launch files like manuals, assumes os support (--all)</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--timedrun</th><td></td><td>run a script and time its run</td></tr> + <tr><th>--autogenerate</th><td></td><td>regenerate databases if needed (handy when used to run context in an editor)</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--usekpse</th><td></td><td>use kpse as fallback (when no mkiv and cache installed, often slower)</td></tr> + <tr><th>--forcekpse</th><td></td><td>force using kpse (handy when no mkiv and cache installed but less functionality)</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--prefixes</th><td></td><td>show supported prefixes</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--generate</th><td></td><td>generate file database</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--variables</th><td></td><td>show configuration variables</td></tr> + <tr><th>--configurations</th><td></td><td>show configuration order</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--directives</th><td></td><td>show (known) directives</td></tr> + <tr><th>--trackers</th><td></td><td>show (known) trackers</td></tr> + <tr><th>--experiments</th><td></td><td>show (known) experiments</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--expand-braces</th><td></td><td>expand complex variable</td></tr> + <tr><th>--expand-path</th><td></td><td>expand variable (resolve paths)</td></tr> + <tr><th>--expand-var</th><td></td><td>expand variable (resolve references)</td></tr> + <tr><th>--show-path</th><td></td><td>show path expansion of ...</td></tr> + <tr><th>--var-value</th><td></td><td>report value of variable</td></tr> + <tr><th>--find-file</th><td></td><td>report file location</td></tr> + <tr><th>--find-path</th><td></td><td>report path of file</td></tr> + <tr><th/><td/><td/></tr> + <tr><th>--pattern</th><td>string</td><td>filter variables</td></tr> + </table> +<br/> + </div> + </div> + </body> + </html> diff --git a/doc/context/scripts/mkii/texmfstart.man b/doc/context/scripts/mkii/texmfstart.man new file mode 100644 index 000000000..212097ff1 --- /dev/null +++ b/doc/context/scripts/mkii/texmfstart.man @@ -0,0 +1,147 @@ +.TH "mtxrun" "1" "01-01-2013" "version 1.31" "ConTeXt TDS Runner Tool" +.SH NAME +.B mtxrun +.SH SYNOPSIS +.B mtxrun [ +.I OPTIONS ... +.B ] [ +.I FILENAMES +.B ] +.SH DESCRIPTION +.B ConTeXt TDS Runner Tool +.SH OPTIONS +.TP +.B --script +run an mtx script (lua prefered method) (--noquotes), no script gives list +.TP +.B --execute +run a script or program (texmfstart method) (--noquotes) +.TP +.B --resolve +resolve prefixed arguments +.TP +.B --ctxlua +run internally (using preloaded libs) +.TP +.B --internal +run script using built in libraries (same as --ctxlua) +.TP +.B --locate +locate given filename in database (default) or system (--first --all --detail) +.TP +.B --autotree +use texmf tree cf. env texmfstart_tree or texmfstarttree +.TP +.B --tree=pathtotree +use given texmf tree (default file: setuptex.tmf) +.TP +.B --environment=name +use given (tmf) environment file +.TP +.B --path=runpath +go to given path before execution +.TP +.B --ifchanged=filename +only execute when given file has changed (md checksum) +.TP +.B --iftouched=old,new +only execute when given file has changed (time stamp) +.TP +.B --makestubs +create stubs for (context related) scripts +.TP +.B --removestubs +remove stubs (context related) scripts +.TP +.B --stubpath=binpath +paths where stubs wil be written +.TP +.B --windows +create windows (mswin) stubs +.TP +.B --unix +create unix (linux) stubs +.TP +.B --verbose +give a bit more info +.TP +.B --trackers=list +enable given trackers +.TP +.B --progname=str +format or backend +.TP +.B --edit +launch editor with found file +.TP +.B --launch +launch files like manuals, assumes os support (--all) +.TP +.B --timedrun +run a script and time its run +.TP +.B --autogenerate +regenerate databases if needed (handy when used to run context in an editor) +.TP +.B --usekpse +use kpse as fallback (when no mkiv and cache installed, often slower) +.TP +.B --forcekpse +force using kpse (handy when no mkiv and cache installed but less functionality) +.TP +.B --prefixes +show supported prefixes +.TP +.B --generate +generate file database +.TP +.B --variables +show configuration variables +.TP +.B --configurations +show configuration order +.TP +.B --directives +show (known) directives +.TP +.B --trackers +show (known) trackers +.TP +.B --experiments +show (known) experiments +.TP +.B --expand-braces +expand complex variable +.TP +.B --expand-path +expand variable (resolve paths) +.TP +.B --expand-var +expand variable (resolve references) +.TP +.B --show-path +show path expansion of ... +.TP +.B --var-value +report value of variable +.TP +.B --find-file +report file location +.TP +.B --find-path +report path of file +.TP +.B --pattern=string +filter variables +.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/mkii/texmfstart.xml b/doc/context/scripts/mkii/texmfstart.xml new file mode 100644 index 000000000..249a9bb54 --- /dev/null +++ b/doc/context/scripts/mkii/texmfstart.xml @@ -0,0 +1,78 @@ +<?xml version="1.0"?><application> + <metadata> + <entry name="name">mtxrun</entry> + <entry name="detail">ConTeXt TDS Runner Tool</entry> + <entry name="version">1.31</entry> + </metadata> + <flags> + <category name="basic"> + <subcategory> + <flag name="script"><short>run an mtx script (lua prefered method) (<ref name="noquotes"/>), no script gives list</short></flag> + <flag name="execute"><short>run a script or program (texmfstart method) (<ref name="noquotes"/>)</short></flag> + <flag name="resolve"><short>resolve prefixed arguments</short></flag> + <flag name="ctxlua"><short>run internally (using preloaded libs)</short></flag> + <flag name="internal"><short>run script using built in libraries (same as <ref name="ctxlua"/>)</short></flag> + <flag name="locate"><short>locate given filename in database (default) or system (<ref name="first"/> <ref name="all"/> <ref name="detail"/>)</short></flag> + </subcategory> + <subcategory> + <flag name="autotree"><short>use texmf tree cf. env texmfstart_tree or texmfstarttree</short></flag> + <flag name="tree" value="pathtotree"><short>use given texmf tree (default file: setuptex.tmf)</short></flag> + <flag name="environment" value="name"><short>use given (tmf) environment file</short></flag> + <flag name="path" value="runpath"><short>go to given path before execution</short></flag> + <flag name="ifchanged" value="filename"><short>only execute when given file has changed (md checksum)</short></flag> + <flag name="iftouched" value="old,new"><short>only execute when given file has changed (time stamp)</short></flag> + </subcategory> + <subcategory> + <flag name="makestubs"><short>create stubs for (context related) scripts</short></flag> + <flag name="removestubs"><short>remove stubs (context related) scripts</short></flag> + <flag name="stubpath" value="binpath"><short>paths where stubs wil be written</short></flag> + <flag name="windows"><short>create windows (mswin) stubs</short></flag> + <flag name="unix"><short>create unix (linux) stubs</short></flag> + </subcategory> + <subcategory> + <flag name="verbose"><short>give a bit more info</short></flag> + <flag name="trackers" value="list"><short>enable given trackers</short></flag> + <flag name="progname" value="str"><short>format or backend</short></flag> + </subcategory> + <subcategory> + <flag name="edit"><short>launch editor with found file</short></flag> + <flag name="launch"><short>launch files like manuals, assumes os support (<ref name="all"/>)</short></flag> + </subcategory> + <subcategory> + <flag name="timedrun"><short>run a script and time its run</short></flag> + <flag name="autogenerate"><short>regenerate databases if needed (handy when used to run context in an editor)</short></flag> + </subcategory> + <subcategory> + <flag name="usekpse"><short>use kpse as fallback (when no mkiv and cache installed, often slower)</short></flag> + <flag name="forcekpse"><short>force using kpse (handy when no mkiv and cache installed but less functionality)</short></flag> + </subcategory> + <subcategory> + <flag name="prefixes"><short>show supported prefixes</short></flag> + </subcategory> + <subcategory> + <flag name="generate"><short>generate file database</short></flag> + </subcategory> + <subcategory> + <flag name="variables"><short>show configuration variables</short></flag> + <flag name="configurations"><short>show configuration order</short></flag> + </subcategory> + <subcategory> + <flag name="directives"><short>show (known) directives</short></flag> + <flag name="trackers"><short>show (known) trackers</short></flag> + <flag name="experiments"><short>show (known) experiments</short></flag> + </subcategory> + <subcategory> + <flag name="expand-braces"><short>expand complex variable</short></flag> + <flag name="expand-path"><short>expand variable (resolve paths)</short></flag> + <flag name="expand-var"><short>expand variable (resolve references)</short></flag> + <flag name="show-path"><short>show path expansion of ...</short></flag> + <flag name="var-value"><short>report value of variable</short></flag> + <flag name="find-file"><short>report file location</short></flag> + <flag name="find-path"><short>report path of file</short></flag> + </subcategory> + <subcategory> + <flag name="pattern" value="string"><short>filter variables</short></flag> + </subcategory> + </category> + </flags> +</application>
\ No newline at end of file diff --git a/doc/context/scripts/mkii/textools.xml b/doc/context/scripts/mkii/textools.xml index b8c085cc0..963c4a3a4 100644 --- a/doc/context/scripts/mkii/textools.xml +++ b/doc/context/scripts/mkii/textools.xml @@ -27,6 +27,4 @@ </subcategory> </category> </flags> - </category> - </flags> </application> diff --git a/doc/context/scripts/mkii/texutil.xml b/doc/context/scripts/mkii/texutil.xml index 0687f8a64..fde9abd58 100644 --- a/doc/context/scripts/mkii/texutil.xml +++ b/doc/context/scripts/mkii/texutil.xml @@ -18,6 +18,4 @@ </subcategory> </category> </flags> - </category> - </flags> </application>
\ No newline at end of file diff --git a/doc/context/scripts/mkiv/luatools.html b/doc/context/scripts/mkiv/luatools.html new file mode 100644 index 000000000..6cb869a2b --- /dev/null +++ b/doc/context/scripts/mkiv/luatools.html @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + + + + + +<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> + <head> + <title>luatools 1.35</title> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> + <style type="text/css"> + body { color: #FFFFFF; background-color: #808080; font-family: optima, verdana, futura, "lucida sans", arial, geneva, helvetica, sans; font-size: 12px; line-height: 18px; } a:link, a:active, a:visited { color: #FFFFFF; } a.dir-view:link, a.dir-view:active, a.dir-view:visited { color: #FFFFFF; text-decoration: underline; } .valid { color: #00FF00; } .invalid { color: #FF0000; } button, .commonlink, .smallbutton { font-weight: bold; font-size: 12px; text-decoration: none; color: #000000; border-color: #7F7F7F; border-style: solid; border-width: .125ex; background-color: #FFFFFF; padding: .5ex; } .smallbutton { width: 1em; } a.commonlink:link, a.commonlink:active, a.commonlink:visited, a.smalllink:link, a.smalllink:active, a.smalllink:visited { font-weight: bold; font-size: 12px; text-decoration: none; color: #000000; } h1, .title { font-style: normal; font-weight: normal; font-size: 18px; line-height: 18px; margin-bottom: 20px; } h2, .subtitle { font-style: normal; font-weight: normal; font-size: 12px; margin-top: 18px; margin-bottom: 18px; } table { line-height: 18px; font-size: 12px; margin: 0; } th { font-weight: bold; text-align: left; padding-bottom: 6px; } .tc { font-weight: bold; text-align: left; } p, li { max-width: 60em; } .empty-line { margin-top: 4px; } .more-room { margin-right: 1.5em; } .much-more-room { margin-right: 3em; } #main { position: absolute; left: 10%; top: 10%; right: 10%; bottom: 10%; z-index: 2; width: 80%; height: 80%; padding: 0%; margin: 0%; overflow: auto; border-style: none; border-width: 0; background-color: #3F3F3F; } #main-settings { margin: 12px; x_max-width: 60em; line-height: 18px; font-size: 12px; } #left { position: absolute; top : 10%; left: 0%; bottom: 0%; right: 90%; z-index: 1; width: 10%; height: 90%; padding: 0%; margin: 0%; font-size: 16px; border-style: none; border-width: 0; background-color: #4F6F6F; } #right { position: absolute; top : 0%; left: 90%; bottom: 10%; right: 0%; z-index: 1; width: 10%; height: 90%; padding: 0%; margin: 0%; font-size: 16px; border-style: none; border-width: 0; background-color: #4F6F6F; _margin-left: -15px; } #bottom { position: absolute; left: 10%; right: 0%; top: 90%; bottom: 0%; z-index: 1; width: 90%; height: 10%; padding: 0%; margin: 0%; font-size: 16px; border-style: none; border-width: 0; background-color: #6F6F8F; } #top { position: absolute; left: 0%; right: 10%; top: 0%; bottom: 90%; z-index: 1; width: 90%; height: 10%; padding: 0%; margin: 0%; font-size: 16px; border-style: none; border-width: 0; background-color: #6F6F8F; } #top-one { position: absolute; bottom: 50%; width: 100%; buggedheight: 100%; } #top-two { position: relative; margin-bottom: -9px; margin-left: 12px; margin-right: 12px; line-height: 18px; text-align: right; vertical-align: middle; } #bottom-one { position: absolute; bottom: 50%; width: 100%; buggedheight: 100%; } #bottom-two { position: relative; margin-bottom: -9px; margin-left: 12px; margin-right: 12px; line-height: 18px; text-align: left; vertical-align: middle; } #left-one { position: absolute; width: 100%; buggedheight: 100%; } #left-two { position: relative; margin-top: 12px; line-height: 18px; text-align: center; vertical-align: top; } #right-one { display: table; height: 100%; width: 100%; } #right-two { display: table-row; height: 100%; width: 100%; } #right-three { display: table-cell; width: 100%; vertical-align: bottom; _position: absolute; _top: 100%; } #right-four { text-align: center; margin-bottom: 2ex; _position: relative; _top: -100%; } #more-top { position: absolute; top: 0%; left: 90%; bottom: 90%; right: 0%; z-index: 3; width: 10%; height: 10%; padding: 0%; margin: 0%; border-style: none; border-width: 0; } #more-top-settings { text-align: center; } #more-right-settings { margin-right: 12px; margin-left: 12px; line-height: 18px; font-size: 10px; text-align: center; } #right-safari { _display: table; width: 100%; height: 100%; } + </style> + <style type="text/css"> + </style> + </head> + <body> + <div id="top"> <div id="top-one"> + <div id="top-two">luatools 1.35 </div> + </div> + </div> + <div id="bottom"> <div id="bottom-one"> + <div id="bottom-two">wiki: http://contextgarden.net | mail: ntg-context@ntg.nl | website: http://www.pragma-ade.nl</div> + </div> + </div> + <div id="left"></div> + <div id="right"></div> + <div id="main"> + <div id='main-settings'> + <h1>Command line options</h1> +<table> + <tr><th style="width: 10em">flag</th><th style="width: 8em">value</th><th>description</th></tr> + <tr><th/><td/><td/></tr> + <tr><th>--generate</th><td></td><td>generate file database</td></tr> + <tr><th>--variables</th><td></td><td>show configuration variables</td></tr> + <tr><th>--configurations</th><td></td><td>show configuration order</td></tr> + <tr><th>--expand-braces</th><td></td><td>expand complex variable</td></tr> + <tr><th>--expand-path</th><td></td><td>expand variable (resolve paths)</td></tr> + <tr><th>--expand-var</th><td></td><td>expand variable (resolve references)</td></tr> + <tr><th>--show-path</th><td></td><td>show path expansion of ...</td></tr> + <tr><th>--var-value</th><td></td><td>report value of variable</td></tr> + <tr><th>--find-file</th><td></td><td>report file location</td></tr> + <tr><th>--find-path</th><td></td><td>report path of file</td></tr> + <tr><th>--make</th><td></td><td>[or --ini] make luatex format</td></tr> + <tr><th>--run</th><td></td><td>[or --fmt] run luatex format</td></tr> + <tr><th>--compile</th><td></td><td>assemble and compile lua inifile</td></tr> + <tr><th>--verbose</th><td></td><td>give a bit more info</td></tr> + <tr><th>--all</th><td></td><td>show all found files</td></tr> + <tr><th>--format</th><td>str</td><td>filter cf format specification (default 'tex', use 'any' for any match)</td></tr> + <tr><th>--pattern</th><td>str</td><td>filter variables</td></tr> + <tr><th>--trackers</th><td>list</td><td>enable given trackers</td></tr> + </table> +<br/> + </div> + </div> + </body> + </html> diff --git a/doc/context/scripts/mkiv/luatools.man b/doc/context/scripts/mkiv/luatools.man new file mode 100644 index 000000000..145e9f608 --- /dev/null +++ b/doc/context/scripts/mkiv/luatools.man @@ -0,0 +1,78 @@ +.TH "luatools" "1" "01-01-2013" "version 1.35" "ConTeXt TDS Management Tool (aka luatools)" +.SH NAME +.B luatools +.SH SYNOPSIS +.B luatools [ +.I OPTIONS ... +.B ] [ +.I FILENAMES +.B ] +.SH DESCRIPTION +.B ConTeXt TDS Management Tool (aka luatools) +.SH OPTIONS +.TP +.B --generate +generate file database +.TP +.B --variables +show configuration variables +.TP +.B --configurations +show configuration order +.TP +.B --expand-braces +expand complex variable +.TP +.B --expand-path +expand variable (resolve paths) +.TP +.B --expand-var +expand variable (resolve references) +.TP +.B --show-path +show path expansion of ... +.TP +.B --var-value +report value of variable +.TP +.B --find-file +report file location +.TP +.B --find-path +report path of file +.TP +.B --make +[or --ini] make luatex format +.TP +.B --run +[or --fmt] run luatex format +.TP +.B --compile +assemble and compile lua inifile +.TP +.B --verbose +give a bit more info +.TP +.B --all +show all found files +.TP +.B --format=str +filter cf format specification (default 'tex', use 'any' for any match) +.TP +.B --pattern=str +filter variables +.TP +.B --trackers=list +enable given trackers +.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/luatools.xml b/doc/context/scripts/mkiv/luatools.xml new file mode 100644 index 000000000..34460fffe --- /dev/null +++ b/doc/context/scripts/mkiv/luatools.xml @@ -0,0 +1,31 @@ +<?xml version="1.0"?><application> + <metadata> + <entry name="name">luatools</entry> + <entry name="detail">ConTeXt TDS Management Tool (aka luatools)</entry> + <entry name="version">1.35</entry> + </metadata> + <flags> + <category name="basic"> + <subcategory> + <flag name="generate"><short>generate file database</short></flag> + <flag name="variables"><short>show configuration variables</short></flag> + <flag name="configurations"><short>show configuration order</short></flag> + <flag name="expand-braces"><short>expand complex variable</short></flag> + <flag name="expand-path"><short>expand variable (resolve paths)</short></flag> + <flag name="expand-var"><short>expand variable (resolve references)</short></flag> + <flag name="show-path"><short>show path expansion of ...</short></flag> + <flag name="var-value"><short>report value of variable</short></flag> + <flag name="find-file"><short>report file location</short></flag> + <flag name="find-path"><short>report path of file</short></flag> + <flag name="make"><short>[or <ref name="ini"/>] make luatex format</short></flag> + <flag name="run"><short>[or <ref name="fmt"/>] run luatex format</short></flag> + <flag name="compile"><short>assemble and compile lua inifile</short></flag> + <flag name="verbose"><short>give a bit more info</short></flag> + <flag name="all"><short>show all found files</short></flag> + <flag name="format" value="str"><short>filter cf format specification (default 'tex', use 'any' for any match)</short></flag> + <flag name="pattern" value="str"><short>filter variables</short></flag> + <flag name="trackers" value="list"><short>enable given trackers</short></flag> + </subcategory> + </category> + </flags> +</application>
\ No newline at end of file diff --git a/doc/context/scripts/mkiv/mtx-base.html b/doc/context/scripts/mkiv/mtx-base.html index 97ac24a7a..2d97a2811 100644 --- a/doc/context/scripts/mkiv/mtx-base.html +++ b/doc/context/scripts/mkiv/mtx-base.html @@ -44,7 +44,7 @@ <tr><th>--find-file</th><td></td><td>report file location</td></tr> <tr><th>--find-path</th><td></td><td>report path of file</td></tr> <tr><th>--make</th><td></td><td>[or --ini] make luatex format</td></tr> - <tr><th>--run</th><td></td><td>[or --fmt run luatex format</td></tr> + <tr><th>--run</th><td></td><td>[or --fmt] run luatex format</td></tr> <tr><th>--compile</th><td></td><td>assemble and compile lua inifile</td></tr> <tr><th>--verbose</th><td></td><td>give a bit more info</td></tr> <tr><th>--all</th><td></td><td>show all found files</td></tr> diff --git a/doc/context/scripts/mkiv/mtx-base.man b/doc/context/scripts/mkiv/mtx-base.man index 372cc4ccf..6c72dcb07 100644 --- a/doc/context/scripts/mkiv/mtx-base.man +++ b/doc/context/scripts/mkiv/mtx-base.man @@ -45,7 +45,7 @@ report path of file [or --ini] make luatex format .TP .B --run -[or --fmt run luatex format +[or --fmt] run luatex format .TP .B --compile assemble and compile lua inifile diff --git a/doc/context/scripts/mkiv/mtx-base.xml b/doc/context/scripts/mkiv/mtx-base.xml index 7efaac7e1..de15b0188 100644 --- a/doc/context/scripts/mkiv/mtx-base.xml +++ b/doc/context/scripts/mkiv/mtx-base.xml @@ -18,8 +18,8 @@ <flag name="var-value"><short>report value of variable</short></flag> <flag name="find-file"><short>report file location</short></flag> <flag name="find-path"><short>report path of file</short></flag> - <flag name="make"><short>[or <ref name="ini]"/> make luatex format</short></flag> - <flag name="run"><short>[or <ref name="fmt"]"/> run luatex format</short></flag> + <flag name="make"><short>[or <ref name="ini"/>] make luatex format</short></flag> + <flag name="run"><short>[or <ref name="fmt"/>] run luatex format</short></flag> <flag name="compile"><short>assemble and compile lua inifile</short></flag> <flag name="verbose"><short>give a bit more info</short></flag> <flag name="all"><short>show all found files</short></flag> diff --git a/scripts/context/lua/mtx-base.lua b/scripts/context/lua/mtx-base.lua index e8bf991f4..bd6749717 100644 --- a/scripts/context/lua/mtx-base.lua +++ b/scripts/context/lua/mtx-base.lua @@ -27,8 +27,8 @@ local helpinfo = [[ <flag name="var-value"><short>report value of variable</short></flag> <flag name="find-file"><short>report file location</short></flag> <flag name="find-path"><short>report path of file</short></flag> - <flag name="make"><short>[or <ref name="ini]"/> make luatex format</short></flag> - <flag name="run"><short>[or <ref name="fmt"]"/> run luatex format</short></flag> + <flag name="make"><short>[or <ref name="ini"/>] make luatex format</short></flag> + <flag name="run"><short>[or <ref name="fmt"/>] run luatex format</short></flag> <flag name="compile"><short>assemble and compile lua inifile</short></flag> <flag name="verbose"><short>give a bit more info</short></flag> <flag name="all"><short>show all found files</short></flag> diff --git a/scripts/context/lua/mtx-mkii-help.lua b/scripts/context/lua/mtx-mkii-help.lua deleted file mode 100644 index e43f47bf0..000000000 --- a/scripts/context/lua/mtx-mkii-help.lua +++ /dev/null @@ -1,376 +0,0 @@ -local helpinfo = [[ -<?xml version="1.0"?> -<application> - <metadata> - <entry name="name">texexec</entry> - <entry name="detail">TeXExec</entry> - <entry name="version">6.2.1</entry> - </metadata> - <flags> - <category name="basic"> - <subcategory> - <flag name="make"><short>make formats</short></flag> - <flag name="check"><short>check versions</short></flag> - <flag name="process"><short>process file</short></flag> - <flag name="mptex"><short>process mp file</short></flag> - <flag name="mpxtex"><short>process mpx file</short></flag> - <flag name="mpgraphic"><short>process mp file to stand-alone graphics</short></flag> - <flag name="mpstatic"><short>process mp/ctx file to stand-alone graphics</short></flag> - <flag name="listing"><short>list of file content</short></flag> - <flag name="figures"><short>generate overview of figures</short></flag> - <flag name="modules"><short>generate module documentation</short></flag> - <flag name="pdfarrange"><short>impose pages (booklets)</short></flag> - <flag name="pdfselect"><short>select pages from file(s)</short></flag> - <flag name="pdfcopy"><short>copy pages from file(s)</short></flag> - <flag name="pdftrim"><short>trim pages from file(s)</short></flag> - <flag name="pdfcombine"><short>combine multiple pages</short></flag> - <flag name="pdfsplit"><short>split file in pages</short></flag> - </subcategory> - </category> - </flags> - </category> - </flags> -</application> -]] - - -local texexec = logs.application { - name = "texexec", - banner = "TeXExec 6.2.1", - helpinfo = helpinfo, -} - -local helpinfo = [[ -<?xml version="1.0"?> -<application> - <metadata> - <entry name="name">texutil</entry> - <entry name="detail">TeXUtil</entry> - <entry name="version">9.1.0</entry> - </metadata> - <flags> - <category name="basic"> - <subcategory> - <flag name="references"><short>convert tui file into tuo file</short></flag> - <flag name="figures"><short>generate figure dimensions file</short></flag> - <flag name="logfile"><short>filter essential log messages</short></flag> - <flag name="purgefiles"><short>remove most temporary files</short></flag> - <flag name="purgeallfiles"><short>remove all temporary files</short></flag> - <flag name="documentation"><short>generate documentation file from source</short></flag> - <flag name="analyzefile"><short>analyze pdf file</short></flag> - </subcategory> - </category> - </flags> - </category> - </flags> -</application>]] - -local texutil = logs.application { - name = "texutil", - banner = "TeXUtil 9.1.0", - helpinfo = helpinfo, -} - -local helpinfo = [[ -<?xml version="1.0"?> -<application> - <metadata> - <entry name="name">ctxtools</entry> - <entry name="detail">CtxTools</entry> - <entry name="version">1.3.5</entry> - </metadata> - <flags> - <category name="basic"> - <subcategory> - <flag name="touchcontextfile"><short>update context version</short></flag> - <flag name="contextversion"><short>report context version</short></flag> - <flag name="jeditinterface"><short>generate jedit syntax files [<ref name="pipe]"/></short></flag> - <flag name="bbeditinterface"><short>generate bbedit syntax files [<ref name="pipe]"/></short></flag> - <flag name="sciteinterface"><short>generate scite syntax files [<ref name="pipe]"/></short></flag> - <flag name="rawinterface"><short>generate raw syntax files [<ref name="pipe]"/></short></flag> - <flag name="translateinterface"><short>generate interface files (xml) [nl de ..]</short></flag> - <flag name="purgefiles"><short>remove temporary files [<ref name="all"/> <ref name="recurse]"/> [basename]</short></flag> - <flag name="documentation generate documentation [--type" value="]"><short>[filename]</short></flag> - <flag name="filterpages'"><short>) # no help, hidden temporary feature</short></flag> - <flag name="dpxmapfiles"><short>convert pdftex mapfiles to dvipdfmx [<ref name="force]"/> [texmfroot]</short></flag> - <flag name="listentities"><short>create doctype entity definition from enco-uc.tex</short></flag> - <flag name="brandfiles"><short>add context copyright notice [<ref name="force]"/></short></flag> - <flag name="platformize"><short>replace line-endings [<ref name="recurse"/> <ref name="force]"/> [pattern]</short></flag> - <flag name="dependencies analyze depedencies within context [--save --compact --filter" value="[macros|filenames] ]"><short>[filename]</short></flag> - <flag name="updatecontext"><short>download latest version and remake formats [<ref name="proxy]"/></short></flag> - <flag name="disarmutfbom"><short>remove utf bom [<ref name="force]"/></short></flag> - </subcategory> - </category> - </flags> - </category> - </flags> -</application> -]] - -local ctxtools = logs.application { - name = "ctxtools", - banner = "CtxTools 1.3.5", - helpinfo = helpinfo, -} - -local helpinfo = [[ -<?xml version="1.0"?> -<application> - <metadata> - <entry name="name">textools</entry> - <entry name="detail">TeXTools</entry> - <entry name="version">1.3.1</entry> - </metadata> - <flags> - <category name="basic"> - <subcategory> - <flag name="removemapnames"><short>[pattern] [<ref name="recurse]"/></short></flag> - <flag name="restoremapnames"><short>[pattern] [<ref name="recurse]"/></short></flag> - <flag name="hidemapnames"><short>[pattern] [<ref name="recurse]"/></short></flag> - <flag name="videmapnames"><short>[pattern] [<ref name="recurse]"/></short></flag> - <flag name="findfile"><short>filename [<ref name="recurse]"/></short></flag> - <flag name="unzipfiles"><short>[pattern] [<ref name="recurse]"/></short></flag> - <flag name="fixafmfiles"><short>[pattern] [<ref name="recurse]"/></short></flag> - <flag name="mactodos"><short>[pattern] [<ref name="recurse]"/></short></flag> - <flag name="fixtexmftrees"><short>[texmfroot] [<ref name="force]"/></short></flag> - <flag name="replacefile"><short>filename [<ref name="force]"/></short></flag> - <flag name="updatetree"><short>fromroot toroot [<ref name="force"/> <ref name="nocheck"/> <ref name="merge"/> <ref name="delete]"/></short></flag> - <flag name="downcasefilenames"><short>[<ref name="recurse]"/> [<ref name="force]"/></short></flag> - <flag name="stripformfeeds"><short>[<ref name="recurse]"/> [<ref name="force]"/></short></flag> - <flag name="showfont"><short>filename</short></flag> - <flag name="encmake"><short>afmfile encodingname</short></flag> - <flag name="tpmmake"><short>tpm file (run in texmf root)</short></flag> - </subcategory> - </category> - </flags> - </category> - </flags> -</application> -]] - -local textools = logs.application { - name = "textools", - banner = "TeXTools 1.3.1", - helpinfo = helpinfo, -} - -local helpinfo = [[ -<?xml version="1.0"?> -<application> - <metadata> - <entry name="name">pdftools</entry> - <entry name="detail">PDFTools</entry> - <entry name="version">1.2.1</entry> - </metadata> - <flags> - <category name="basic"> - <subcategory> - <flag name="spotimage filename --colorspec" value=""><short><ref name="colorname="/> [<ref name="retain"/> <ref name="invert"/> <ref name="subpath=]"/></short></flag> - <flag name="colorimage filename --colorspec" value=""><short>[<ref name="retain"/> <ref name="invert"/> <ref name="colorname="/> ]</short></flag> - <flag name="convertimage"><short>filename [<ref name="retain"/> <ref name="subpath]"/></short></flag> - <flag name="downsampleimage"><short>filename [<ref name="retain"/> <ref name="subpath"/> <ref name="lowres"/> <ref name="normal]"/></short></flag> - <flag name="info"><short>filename</short></flag> - <flag name="countpages"><short>[<ref name="pattern"/> <ref name="threshold]"/></short></flag> - <flag name="checkembedded"><short>[<ref name="pattern]"/></short></flag> - <flag name="analyzefile"><short>filename</short></flag> - </subcategory> - </category> - </flags> - </category> - </flags> -</application> -]] - -local pdftools = logs.application { - name = "pdftools", - banner = "PDFTools 1.2.1", - helpinfo = helpinfo, -} - -local helpinfo = [[ -<?xml version="1.0"?> -<application> - <metadata> - <entry name="name">tmftools</entry> - <entry name="detail">TMFTools</entry> - <entry name="version">1.1.0</entry> - </metadata> - <flags> - <category name="basic"> - <subcategory> - <flag name="analyze"><short>[<ref name="strict"/> <ref name="sort"/> <ref name="rootpath"/> <ref name="treepath"/> <ref name="delete"/> <ref name="force"/>] [pattern]</short></flag> - </subcategory> - <subcategory> - <flag name="serve"><short>act as kpse server</short></flag> - </subcategory> - </category> - </flags> -</application> -]] - -local tmftools = logs.application { - name = "tmftools", - banner = "TMFTools 1.2.1", - helpinfo = helpinfo, -} - -local helpinfo = [[ -<?xml version="1.0"?> -<application> - <metadata> - <entry name="name">xmltools</entry> - <entry name="detail">XMLTools</entry> - <entry name="version">1.2.2</entry> - </metadata> - <flags> - <category name="basic"> - <subcategory> - <flag name="dir"><short>generate directory listing</short></flag> - <flag name="mmlpages"><short>generate graphic from mathml</short></flag> - <flag name="analyze"><short>report entities and elements [<ref name="utf"/> <ref name="process"/>]</short></flag> - <flag name="cleanup"><short>cleanup xml file [<ref name="force"/>]</short></flag> - <flag name="enhance"><short>enhance xml file (partial)</short></flag> - <flag name="filter"><short>filter elements from xml file [<ref name="element"/>]</short></flag> - <flag name="dir"><short>generate ddirectory listing</short></flag> - </subcategory> - </category> - </flags> -</application> -]] - -local xmltools = logs.application { - name = "xmltools", - banner = "XMLTools 1.2.1", - helpinfo = helpinfo, -} - -local helpinfo = [[ -<?xml version="1.0"?> -<application> - <metadata> - <entry name="name">pstopdf</entry> - <entry name="detail">PStoPDF</entry> - <entry name="version">2.0.1</entry> - </metadata> - <flags> - <category name="basic"> - <subcategory> - <flag name="request"><short>handles exa request file</short></flag> - <flag name="watch"><short>watch folders for conversions (untested)</short></flag> - </subcategory> - </category> - </flags> - </category> - </flags> -</application> -]] - -local pstopdf = logs.application { - name = "pstopdf", - banner = "PStoPDF 2.0.1", - helpinfo = helpinfo, -} - -local helpinfo = [[ -<?xml version="1.0"?> -<application> - <metadata> - <entry name="name">rlxtools</entry> - <entry name="detail">RlxTools</entry> - <entry name="version">1.0.1</entry> - </metadata> - <flags> - <category name="basic"> - <subcategory> - <flag name="manipulate"><short>[<ref name="test]"/> manipulatorfile resourselog</short></flag> - <flag name="identify"><short>[<ref name="collect]"/> filename</short></flag> - </subcategory> - </category> - </flags> - </category> - </flags> -</application> -]] - -local rlxtools = logs.application { - name = "rlxtools", - banner = "RlxTools 1.0.1", - helpinfo = helpinfo, -} - -local helpinfo = [[ -<?xml version="1.0"?> -<application> - <metadata> - <entry name="name">imgtopdf</entry> - <entry name="detail">ImgToPdf</entry> - <entry name="version">1.1.2</entry> - </metadata> - <flags> - <category name="basic"> - <subcategory> - <flag name="convert"><short>convert image into pdf</short></flag> - <flag name="compression"><short>level of compression in percent</short></flag> - <flag name="depth"><short>image depth in bits</short></flag> - <flag name="colorspace"><short> colorspace (rgb,cmyk,gray)</short></flag> - <flag name="quality"><short>quality in percent</short></flag> - <flag name="inputpath"><short>path where files are looked for</short></flag> - <flag name="outputpath"><short>path where files end up</short></flag> - <flag name="auto"><short>determine settings automatically</short></flag> - </subcategory> - </category> - </flags> -</application> -]] - -local imgtopdf = logs.application { - name = "imgtopdf", - banner = "ImgToPdf 1.1.2", - helpinfo = helpinfo, -} - --- texmfstart.rb is normally replaced by mtxrun --- runtools.rb is run from within context --- concheck.rb is run from within editors --- texsync.rb is no longer in the zip --- mpstools.rb is no longer in the zip --- rscortool.rb is only run indirectly --- rsfiltool.rb is only run indirectly --- rslibtool.rb is only run indirectly - - -local application = logs.application { - name = "mkii-help", - banner = "MkII Help generator 1.00", -} - -local filename = environment.files[1] - -if not filename then - application.report("no mkii script given") - return -end - -local mkiiapplication - -if filename == "texexec" then mkiiapplication = texexec -elseif filename == "texutil" then mkiiapplication = texutil -elseif filename == "ctxtools" then mkiiapplication = ctxtools -elseif filename == "textools" then mkiiapplication = textools -elseif filename == "pdftools" then mkiiapplication = pdftools -elseif filename == "tmftools" then mkiiapplication = tmftools -elseif filename == "xmltools" then mkiiapplication = xmltools -elseif filename == "pstopdf" then mkiiapplication = pstopdf -elseif filename == "rlxtools" then mkiiapplication = rlxtools -elseif filename == "imgtopdf" then mkiiapplication = imgtopdf end - -if not mkiiapplication then - application.report("no valid mkii script given") - return -end - -if environment.argument("exporthelp") then - mkiiapplication.export(environment.argument("exporthelp"),environment.files[2]) -else - mkiiapplication.help() -end diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua index 49c43be78..22089df7a 100644 --- a/scripts/context/lua/mtxrun.lua +++ b/scripts/context/lua/mtxrun.lua @@ -11211,7 +11211,7 @@ do -- create closure to overcome 200 locals limit package.loaded["trac-xml"] = package.loaded["trac-xml"] or true --- original size: 5962, stripped down to: 4596 +-- original size: 6351, stripped down to: 4919 if not modules then modules={} end modules ['trac-xml']={ version=1.001, @@ -11324,25 +11324,27 @@ function reporters.help(t,...) reporthelp(t,...) end end -function reporters.export(t,method,filename) +function reporters.export(t,methods,filename) if not xmlfound(t) then return exporthelp(t) end - if not method or method=="" then - method=environment.arguments["exporthelp"] + if not methods or methods=="" then + methods=environment.arguments["exporthelp"] end if not filename or filename=="" then filename=environment.files[1] end dofile(resolvers.findfile("trac-exp.lua","tex")) local exporters=logs.exporters - if not exporters or not method then + if not exporters or not methods then return exporthelp(t) end - if method=="all" then - method=table.keys(exporters) + if methods=="all" then + methods=table.keys(exporters) + elseif type(methods)=="string" then + methods=utilities.parsers.settings_to_array(methods) else - method={ method } + return exporthelp(t) end if type(filename)~="string" or filename=="" then filename=false @@ -11350,17 +11352,24 @@ function reporters.export(t,method,filename) t.report("export file %a will not be saved on the current path (safeguard)",filename) return end - for i=1,#method do - local m=method[i] - local result=exporters[m](t,m) - if result and result~="" then - if filename then - local fullname=file.replacesuffix(filename,m) - t.report("saving export in %a",fullname) - io.savedata(fullname,result) + for i=1,#methods do + local method=methods[i] + local exporter=exporters[method] + if exporter then + local result=exporter(t,method) + if result and result~="" then + if filename then + local fullname=file.replacesuffix(filename,method) + t.report("saving export in %a",fullname) + io.savedata(fullname,result) + else + reporters.lines(t,result) + end else - reporters.lines(t,result) + t.report("no output from exporter %a",method) end + else + t.report("unknown exporter %a",method) end end end @@ -15614,8 +15623,8 @@ end -- of closure -- used libraries : l-lua.lua l-lpeg.lua l-function.lua l-string.lua l-table.lua l-io.lua l-number.lua l-set.lua l-os.lua l-file.lua l-md5.lua l-url.lua l-dir.lua l-boolean.lua l-unicode.lua l-math.lua util-str.lua util-tab.lua util-sto.lua util-prs.lua util-fmt.lua trac-set.lua trac-log.lua trac-inf.lua trac-pro.lua util-lua.lua util-deb.lua util-mrg.lua util-tpl.lua util-env.lua luat-env.lua lxml-tab.lua lxml-lpt.lua lxml-mis.lua lxml-aux.lua lxml-xml.lua trac-xml.lua data-ini.lua data-exp.lua data-env.lua data-tmp.lua data-met.lua data-res.lua data-pre.lua data-inp.lua data-out.lua data-fil.lua data-con.lua data-use.lua data-zip.lua data-tre.lua data-sch.lua data-lua.lua data-aux.lua data-tmf.lua data-lst.lua luat-sta.lua luat-fmt.lua -- skipped libraries : - --- original bytes : 644433 --- stripped bytes : 232542 +-- original bytes : 644822 +-- stripped bytes : 232608 -- end library merge diff --git a/scripts/context/stubs/mswin/ctxtools.exe b/scripts/context/stubs/mswin/ctxtools.exe Binary files differnew file mode 100644 index 000000000..2d45f2749 --- /dev/null +++ b/scripts/context/stubs/mswin/ctxtools.exe diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua index 49c43be78..22089df7a 100644 --- a/scripts/context/stubs/mswin/mtxrun.lua +++ b/scripts/context/stubs/mswin/mtxrun.lua @@ -11211,7 +11211,7 @@ do -- create closure to overcome 200 locals limit package.loaded["trac-xml"] = package.loaded["trac-xml"] or true --- original size: 5962, stripped down to: 4596 +-- original size: 6351, stripped down to: 4919 if not modules then modules={} end modules ['trac-xml']={ version=1.001, @@ -11324,25 +11324,27 @@ function reporters.help(t,...) reporthelp(t,...) end end -function reporters.export(t,method,filename) +function reporters.export(t,methods,filename) if not xmlfound(t) then return exporthelp(t) end - if not method or method=="" then - method=environment.arguments["exporthelp"] + if not methods or methods=="" then + methods=environment.arguments["exporthelp"] end if not filename or filename=="" then filename=environment.files[1] end dofile(resolvers.findfile("trac-exp.lua","tex")) local exporters=logs.exporters - if not exporters or not method then + if not exporters or not methods then return exporthelp(t) end - if method=="all" then - method=table.keys(exporters) + if methods=="all" then + methods=table.keys(exporters) + elseif type(methods)=="string" then + methods=utilities.parsers.settings_to_array(methods) else - method={ method } + return exporthelp(t) end if type(filename)~="string" or filename=="" then filename=false @@ -11350,17 +11352,24 @@ function reporters.export(t,method,filename) t.report("export file %a will not be saved on the current path (safeguard)",filename) return end - for i=1,#method do - local m=method[i] - local result=exporters[m](t,m) - if result and result~="" then - if filename then - local fullname=file.replacesuffix(filename,m) - t.report("saving export in %a",fullname) - io.savedata(fullname,result) + for i=1,#methods do + local method=methods[i] + local exporter=exporters[method] + if exporter then + local result=exporter(t,method) + if result and result~="" then + if filename then + local fullname=file.replacesuffix(filename,method) + t.report("saving export in %a",fullname) + io.savedata(fullname,result) + else + reporters.lines(t,result) + end else - reporters.lines(t,result) + t.report("no output from exporter %a",method) end + else + t.report("unknown exporter %a",method) end end end @@ -15614,8 +15623,8 @@ end -- of closure -- used libraries : l-lua.lua l-lpeg.lua l-function.lua l-string.lua l-table.lua l-io.lua l-number.lua l-set.lua l-os.lua l-file.lua l-md5.lua l-url.lua l-dir.lua l-boolean.lua l-unicode.lua l-math.lua util-str.lua util-tab.lua util-sto.lua util-prs.lua util-fmt.lua trac-set.lua trac-log.lua trac-inf.lua trac-pro.lua util-lua.lua util-deb.lua util-mrg.lua util-tpl.lua util-env.lua luat-env.lua lxml-tab.lua lxml-lpt.lua lxml-mis.lua lxml-aux.lua lxml-xml.lua trac-xml.lua data-ini.lua data-exp.lua data-env.lua data-tmp.lua data-met.lua data-res.lua data-pre.lua data-inp.lua data-out.lua data-fil.lua data-con.lua data-use.lua data-zip.lua data-tre.lua data-sch.lua data-lua.lua data-aux.lua data-tmf.lua data-lst.lua luat-sta.lua luat-fmt.lua -- skipped libraries : - --- original bytes : 644433 --- stripped bytes : 232542 +-- original bytes : 644822 +-- stripped bytes : 232608 -- end library merge diff --git a/scripts/context/stubs/mswin/pstopdf.exe b/scripts/context/stubs/mswin/pstopdf.exe Binary files differnew file mode 100644 index 000000000..2d45f2749 --- /dev/null +++ b/scripts/context/stubs/mswin/pstopdf.exe diff --git a/scripts/context/stubs/unix/ctxtools b/scripts/context/stubs/unix/ctxtools new file mode 100644 index 000000000..2e6bd4afa --- /dev/null +++ b/scripts/context/stubs/unix/ctxtools @@ -0,0 +1,2 @@ +#!/bin/sh +mtxrun --script ctxtools "$@" diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun index 49c43be78..22089df7a 100644 --- a/scripts/context/stubs/unix/mtxrun +++ b/scripts/context/stubs/unix/mtxrun @@ -11211,7 +11211,7 @@ do -- create closure to overcome 200 locals limit package.loaded["trac-xml"] = package.loaded["trac-xml"] or true --- original size: 5962, stripped down to: 4596 +-- original size: 6351, stripped down to: 4919 if not modules then modules={} end modules ['trac-xml']={ version=1.001, @@ -11324,25 +11324,27 @@ function reporters.help(t,...) reporthelp(t,...) end end -function reporters.export(t,method,filename) +function reporters.export(t,methods,filename) if not xmlfound(t) then return exporthelp(t) end - if not method or method=="" then - method=environment.arguments["exporthelp"] + if not methods or methods=="" then + methods=environment.arguments["exporthelp"] end if not filename or filename=="" then filename=environment.files[1] end dofile(resolvers.findfile("trac-exp.lua","tex")) local exporters=logs.exporters - if not exporters or not method then + if not exporters or not methods then return exporthelp(t) end - if method=="all" then - method=table.keys(exporters) + if methods=="all" then + methods=table.keys(exporters) + elseif type(methods)=="string" then + methods=utilities.parsers.settings_to_array(methods) else - method={ method } + return exporthelp(t) end if type(filename)~="string" or filename=="" then filename=false @@ -11350,17 +11352,24 @@ function reporters.export(t,method,filename) t.report("export file %a will not be saved on the current path (safeguard)",filename) return end - for i=1,#method do - local m=method[i] - local result=exporters[m](t,m) - if result and result~="" then - if filename then - local fullname=file.replacesuffix(filename,m) - t.report("saving export in %a",fullname) - io.savedata(fullname,result) + for i=1,#methods do + local method=methods[i] + local exporter=exporters[method] + if exporter then + local result=exporter(t,method) + if result and result~="" then + if filename then + local fullname=file.replacesuffix(filename,method) + t.report("saving export in %a",fullname) + io.savedata(fullname,result) + else + reporters.lines(t,result) + end else - reporters.lines(t,result) + t.report("no output from exporter %a",method) end + else + t.report("unknown exporter %a",method) end end end @@ -15614,8 +15623,8 @@ end -- of closure -- used libraries : l-lua.lua l-lpeg.lua l-function.lua l-string.lua l-table.lua l-io.lua l-number.lua l-set.lua l-os.lua l-file.lua l-md5.lua l-url.lua l-dir.lua l-boolean.lua l-unicode.lua l-math.lua util-str.lua util-tab.lua util-sto.lua util-prs.lua util-fmt.lua trac-set.lua trac-log.lua trac-inf.lua trac-pro.lua util-lua.lua util-deb.lua util-mrg.lua util-tpl.lua util-env.lua luat-env.lua lxml-tab.lua lxml-lpt.lua lxml-mis.lua lxml-aux.lua lxml-xml.lua trac-xml.lua data-ini.lua data-exp.lua data-env.lua data-tmp.lua data-met.lua data-res.lua data-pre.lua data-inp.lua data-out.lua data-fil.lua data-con.lua data-use.lua data-zip.lua data-tre.lua data-sch.lua data-lua.lua data-aux.lua data-tmf.lua data-lst.lua luat-sta.lua luat-fmt.lua -- skipped libraries : - --- original bytes : 644433 --- stripped bytes : 232542 +-- original bytes : 644822 +-- stripped bytes : 232608 -- end library merge diff --git a/scripts/context/stubs/unix/pstopdf b/scripts/context/stubs/unix/pstopdf new file mode 100644 index 000000000..116f5f4a3 --- /dev/null +++ b/scripts/context/stubs/unix/pstopdf @@ -0,0 +1,2 @@ +#!/bin/sh +mtxrun --script pstopdf "$@" diff --git a/tex/context/base/cont-new.mkii b/tex/context/base/cont-new.mkii index 204684312..ca5fe3675 100644 --- a/tex/context/base/cont-new.mkii +++ b/tex/context/base/cont-new.mkii @@ -11,7 +11,7 @@ %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. -\newcontextversion{2013.03.28 23:10} +\newcontextversion{2013.03.29 00:44} %D This file is loaded at runtime, thereby providing an %D excellent place for hacks, patches, extensions and new diff --git a/tex/context/base/cont-new.mkiv b/tex/context/base/cont-new.mkiv index 7bb692d2a..40e3bc7b7 100644 --- a/tex/context/base/cont-new.mkiv +++ b/tex/context/base/cont-new.mkiv @@ -11,7 +11,7 @@ %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. -\newcontextversion{2013.03.28 23:10} +\newcontextversion{2013.03.29 00:44} %D This file is loaded at runtime, thereby providing an excellent place for %D hacks, patches, extensions and new features. diff --git a/tex/context/base/context-version.pdf b/tex/context/base/context-version.pdf Binary files differindex f90f966d1..24c2f7d50 100644 --- a/tex/context/base/context-version.pdf +++ b/tex/context/base/context-version.pdf diff --git a/tex/context/base/context-version.png b/tex/context/base/context-version.png Binary files differindex 34ef69eda..1e07fa661 100644 --- a/tex/context/base/context-version.png +++ b/tex/context/base/context-version.png diff --git a/tex/context/base/context.mkii b/tex/context/base/context.mkii index aa7cfe2df..f4dd490aa 100644 --- a/tex/context/base/context.mkii +++ b/tex/context/base/context.mkii @@ -20,7 +20,7 @@ %D your styles an modules. \edef\contextformat {\jobname} -\edef\contextversion{2013.03.28 23:10} +\edef\contextversion{2013.03.29 00:44} %D For those who want to use this: diff --git a/tex/context/base/context.mkiv b/tex/context/base/context.mkiv index 7631b4075..42fab1e6d 100644 --- a/tex/context/base/context.mkiv +++ b/tex/context/base/context.mkiv @@ -25,7 +25,7 @@ %D up and the dependencies are more consistent. \edef\contextformat {\jobname} -\edef\contextversion{2013.03.28 23:10} +\edef\contextversion{2013.03.29 00:44} %D For those who want to use this: diff --git a/tex/context/base/status-files.pdf b/tex/context/base/status-files.pdf Binary files differindex 244c588ae..25b90ab1e 100644 --- a/tex/context/base/status-files.pdf +++ b/tex/context/base/status-files.pdf diff --git a/tex/context/base/status-lua.pdf b/tex/context/base/status-lua.pdf Binary files differindex 3beebc8e5..03431a89e 100644 --- a/tex/context/base/status-lua.pdf +++ b/tex/context/base/status-lua.pdf diff --git a/tex/context/base/trac-xml.lua b/tex/context/base/trac-xml.lua index 3301b4137..cd8b8c0a5 100644 --- a/tex/context/base/trac-xml.lua +++ b/tex/context/base/trac-xml.lua @@ -132,25 +132,27 @@ function reporters.help(t,...) end end -function reporters.export(t,method,filename) +function reporters.export(t,methods,filename) if not xmlfound(t) then return exporthelp(t) end - if not method or method == "" then - method = environment.arguments["exporthelp"] + if not methods or methods == "" then + methods = environment.arguments["exporthelp"] end if not filename or filename == "" then filename = environment.files[1] end dofile(resolvers.findfile("trac-exp.lua","tex")) local exporters = logs.exporters - if not exporters or not method then + if not exporters or not methods then return exporthelp(t) end - if method == "all" then - method = table.keys(exporters) + if methods == "all" then + methods = table.keys(exporters) + elseif type(methods) == "string" then + methods = utilities.parsers.settings_to_array(methods) else - method = { method } + return exporthelp(t) end if type(filename) ~= "string" or filename == "" then filename = false @@ -158,17 +160,24 @@ function reporters.export(t,method,filename) t.report("export file %a will not be saved on the current path (safeguard)",filename) return end - for i=1,#method do - local m = method[i] - local result = exporters[m](t,m) - if result and result ~= "" then - if filename then - local fullname = file.replacesuffix(filename,m) - t.report("saving export in %a",fullname) - io.savedata(fullname,result) + for i=1,#methods do + local method = methods[i] + local exporter = exporters[method] + if exporter then + local result = exporter(t,method) + if result and result ~= "" then + if filename then + local fullname = file.replacesuffix(filename,method) + t.report("saving export in %a",fullname) + io.savedata(fullname,result) + else + reporters.lines(t,result) + end else - reporters.lines(t,result) + t.report("no output from exporter %a",method) end + else + t.report("unknown exporter %a",method) end end end diff --git a/tex/generic/context/luatex/luatex-fonts-merged.lua b/tex/generic/context/luatex/luatex-fonts-merged.lua index 11395bd08..73c6a086e 100644 --- a/tex/generic/context/luatex/luatex-fonts-merged.lua +++ b/tex/generic/context/luatex/luatex-fonts-merged.lua @@ -1,6 +1,6 @@ -- merged file : luatex-fonts-merged.lua -- parent file : luatex-fonts.lua --- merge date : 03/28/13 23:10:34 +-- merge date : 03/29/13 00:44:04 do -- begin closure to overcome local limits and interference |