Changes

Jump to navigation Jump to search
1,152 bytes added ,  08:27, 2 July 2022
m
Text replacement - "pragma-ade.com" to "pragma-ade.nl"
== 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 ==
There are several places where you can search for command definitions:
* [http://www.pragma-ade.comnl/general/qrcs/setup-en.pdf| setup-en.pdf] (and appropriate language variants) most up-to-date ConTeXt command reference (is this generated from [[source:cont-en.xml| cont-en.xml]]?but without explanations)* [[manual:cont-eni.pdf|ConTeXt manual]]* [http://texshowpmrb.contextgardenfree.netfr/ texshow-webcontextref.pdf ConTeXt reference manual] on-line command reference (2013, somewhat outdated)* The main source for the XML description is this generated from in [[source:conttex/context/interface/mkiv/context-en.xml| contcontext-en.xml]]?)* The sources for the XML command descriptions for MkII: [http[source:tex/context/levana.deinterface/emacsmkii| etexshowtex/context/interface/mkii]] emacs browser for ConTeXt commands (obsolete)  If you can't find specific option, here is this generated an advice from [httpmailing list how to search for them in sources://texshow <pre>This is what I usually do to find out about an option.contextgardenSearch texwebshow for options.net/ texshow-web]?) If it is there, read the manual for the * xml description in [[source:cont-en.xml| cont-en.xml]] (and appropriate language variants) (typed manually or generated from sources?)
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 initialises all the options for the command. This way, one knows at least which options a command will accept. In these sources there most cases guessing the functionality of an option is 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 different '''referencing of arguments''' 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]]}}
*in the manual:
.2. ''text'' ''section'' date ''mark'' pagenumber
.3. ''text'' ''section'' date ''mark'' pagenumber
* in the texshow \setupheadertexts<span style='background-color: #00FFFF; color: red'>[.1.]</span><span style='background-color:#CCFF66'>[.2.]</span><span style='background-colorwiki Command pages:#FF6FCF'>[.3.]</span> <span style='background-color: #00FFFF'syntax>.1. '''''text''''' margin edge</span> <span style='background-color:#CCFF66'>.2. ''text'' ''section'' date ''mark'' pagenumber</span> <span style='background-color:#FF6FCF'>.3. ''text'' ''section'' date ''mark'' pagenumbersetupheadertexts</spansyntax>
* in the emacs help
\setupheadertexts<span style='color: #00FF00'>[.1.]</span><span style='color: #FF1493'>[.2.]</span><span style='color: #6495ED'>[.3.]</span>
{| border="1"
|-
| || meaning || [http://www.pragma-ade.comnl/general/qrcs/setup-en.pdf | setup-en.pdf] || [[manual:cont-enihttp://pmrb.free.fr/contextref.pdf|ConTeXt reference manual]] || [http://texshow.contextgarden.net/ texshow-web] || [http://levana.de/emacs| etexshow] || [[source:cont-en.xml | cont-en.xml]]
|-
| default || x || x || x || x || x || x
<code>location=</code>
== This wiki ==
 == Contexgarden wiki == While writing to on this wiki you can refer to the user commands with the [[:Template:cmd|cmd]] template, like so:<pre>[[{{cmd:|goto}}or{{cmd|\goto|{some text}[label:1]]}}</pre> which This displays as [[{{cmd:|goto}} or {{cmd|\goto|{some text}[label:1]] and the }}, respectively. The link brings you leads to the command definition in [http[://texshow.contextgarden.net/ texshow-webCategory:Commands]].
== Missing commands, descriptions and examples ==
[[Command Syntax/Missing]]
 
[[Category:Tools]]
[[Category:Basics]]

Navigation menu