Changes

Jump to navigation Jump to search
288 bytes added ,  00:16, 19 July 2006
→‎Modules writing guidelines: Using xml specification file to show command setup
When documenting your module, you can use
<texcode>
\usemodule[int-load] %Allow xml parsing
\loadsetups[m-name-of-your-module.xml] % to load the file with definitions
\showsetupsetup{nameofyourcommand}
</texcode>
An example:
<contextsource="yes">\loadsetupsusemodule[contint-en.xmlload]\showsetuploadsetups\setup{externalfgureexternalfigure}
</context>
 
By default, this places a frame around the setup. If you want to get gray backgroud, as in context documentation, add the following
 
<texcode>
\setupframedtexts
[setuptext]
[background=screen,
frame=off]
</texcode>

Navigation menu