Difference between revisions of "User:Esteis/man"
Jump to navigation
Jump to search
(Create overview page) |
|||
Line 41: | Line 41: | ||
== Compiling and viewing man pages == | == Compiling and viewing man pages == | ||
− | The XML comes from XML blobs stored in the mtx-scripts. You can find the | + | The XML comes from XML blobs stored in the mtx-scripts. You can find the original script files in your ConTeXt tree, here: |
$CONTEXTROOT/tex/texmf-context/scripts/context/lua/ | $CONTEXTROOT/tex/texmf-context/scripts/context/lua/ | ||
Line 49: | Line 49: | ||
mtxrun --script fonts --exporthelp=man|xml|html|all | mtxrun --script fonts --exporthelp=man|xml|html|all | ||
− | To compile a standalone XML file to man, take the script at [[User:Esteis/man/xml2man]] (adapted from {{src|trac-exp.lua}}) and run it on your XML file like so: | + | To '''compile a standalone XML file''' to man, take the script at [[User:Esteis/man/xml2man]] (adapted from {{src|trac-exp.lua}}) and run it on your XML file like so: |
mtxrun --script ./xml2man.lua somexmlfile.xml | mtxrun --script ./xml2man.lua somexmlfile.xml | ||
+ | |||
+ | To '''view a local man page''' on your Linux/Unix system: | ||
+ | |||
+ | man ./somemanfile.man |
Latest revision as of 17:58, 22 March 2013
Man pages
These are the XML sources of the various ConTeXt man pages. Please edit any flag descriptions that are not self-explanatory.
Compiling and viewing man pages
The XML comes from XML blobs stored in the mtx-scripts. You can find the original script files in your ConTeXt tree, here:
$CONTEXTROOT/tex/texmf-context/scripts/context/lua/
To obtain a script's man/xml/html help pages, use mtxrun
:
mtxrun --script fonts --exporthelp=man|xml|html|all
To compile a standalone XML file to man, take the script at User:Esteis/man/xml2man (adapted from trac-exp.lua) and run it on your XML file like so:
mtxrun --script ./xml2man.lua somexmlfile.xml
To view a local man page on your Linux/Unix system:
man ./somemanfile.man