Changes

Jump to navigation Jump to search
1,599 bytes added ,  19:33, 27 October 2006
hint from mailing list how to find options in sources
== Command ==
 
\command{the command works with its parameter(s)}
Command consists of:
|-
|}
 
Example:
<pre>\placeformula[...]{...}$$...$$</pre>
== Switch ==
 
{\switch the switch influences everything in its group}
 
Example:
 
<pre>
 
{\em here is emphasized text}
 
</pre>
== Find definition ==
* xml description in [[source:cont-en.xml| cont-en.xml]] (and appropriate language variants) (typed manually or generated from sources?)
In these If you can't find specific option, here is an advice from mailing list how to search for them in sources : <pre>This is what I usually do to find out about an option. Search texwebshow for options. If it is there , read the manual for the description. If I do not find any relevant option, but know that ConTeXt ought to have an option for what I want (which usually means that it will), look in the sources. My strategy for searching the sources involves finding out which source file defines the option. (search on sources.contextgarden.net work for most cases, I use grep for the cases which are more trickier to find).  Most (all?) commands come with an accompanying \setup command, which initiallizes all the options for the command. This way, one knows at least which options a command will accept. In most cases guessing the functionality of an option is different '''referencing of arguments''' easy, as ConTeXt uses a consistent interface for everything. Sometimes, when I have no clue what that option does, I search where theoption is used. Most options are stored using \getparameters[\??xx]where xx is a two letter abbreviation. Then you can search for\@@xxoption to thier possible values and fifferent '''typographic conventions'''see where it is used. That way, you can usually guess whatan option does. The sources also have some examples that are usually useful in understanding a few tricks about the command. If I still can not figure out, I ask on the mailing list.</pre>
== Referencing of arguments ==
 
In these sources there is different '''referencing of arguments''' to thier possible values and different '''typographic conventions'''.
Example: [[cmd:setupheadertexts|\setupheadertexts]]
138

edits

Navigation menu