Difference between revisions of "Template:Cmd"

From ConTeXt wiki
(It works! (Of course it works, I tested it.) Also: Examples need \startalignment, not \startalign.)
m (Make examples consistent.)
Line 7: Line 7:
 
Usage:
 
Usage:
  
     <nowiki>{{cmd|startalign}}</nowiki>
+
     <nowiki>{{cmd|startalignment}}</nowiki>
     <nowiki>{{cmd|startalign|[middle]}}</nowiki>
+
     <nowiki>{{cmd|startalignment|[middle]}}</nowiki>
 
     <nowiki>{{cmd|section|{First section}}}</nowiki>
 
     <nowiki>{{cmd|section|{First section}}}</nowiki>
  
 
Result:
 
Result:
  
     <nowiki><tt>[[Command/startalign|\startalign]]</tt></nowiki>
+
     <nowiki><tt>[[Command/startalignment|\startalignment]]</tt></nowiki>
     <nowiki><tt>[[Command/startalign|\startalign]][middle]</tt></nowiki>
+
     <nowiki><tt>[[Command/startalignment|\startalignment]][middle]</tt></nowiki>
     <nowiki><tt>[[Command/startalign|\startalign]]{First section}</tt></nowiki>
+
     <nowiki><tt>[[Command/startalignment|\startalignment]]{First section}</tt></nowiki>
  
  

Revision as of 21:33, 28 June 2012

[[Command/{{{1}}}|\{{{1}}}]]


Link to a command; any text in the second template parameter is comes right after the command, in typewriter font. Passing parameters is optional.

Usage:

   {{cmd|startalignment}}
   {{cmd|startalignment|[middle]}}
   {{cmd|section|{First section}}}

Result:

   <tt>[[Command/startalignment|\startalignment]]</tt>
   <tt>[[Command/startalignment|\startalignment]][middle]</tt>
   <tt>[[Command/startalignment|\startalignment]]{First section}</tt>


Display: