Difference between revisions of "Command/definereferenceformat"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Reference/en|" to "Commands|")
m (Text replace - "Reference/en/" to "Command/")
Line 14: Line 14:
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:left|left]]</td>
+
     <td class="cmd">[[Command/keyword:left|left]]</td>
     <td>[[Reference/en/value:text|text]] </td>
+
     <td>[[Command/value:text|text]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:right|right]]</td>
+
     <td class="cmd">[[Command/keyword:right|right]]</td>
     <td>[[Reference/en/value:text|text]] </td>
+
     <td>[[Command/value:text|text]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:text|text]]</td>
+
     <td class="cmd">[[Command/keyword:text|text]]</td>
     <td>[[Reference/en/value:text|text]] </td>
+
     <td>[[Command/value:text|text]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:label|label]]</td>
+
     <td class="cmd">[[Command/keyword:label|label]]</td>
     <td>[[Reference/en/value:name|name]] </td>
+
     <td>[[Command/value:name|name]] </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>

Revision as of 02:09, 14 March 2012

\definereferenceformat

Syntax

\definereferenceformat[...][...,...=...,...]
[...] name
left text
right text
text text
label name


Description

Example 1

\definereferenceformat[ineq][left={Eq. (},right=)]

\placeformula[eq:pythagoras]
\startformula
  a^2+b^2=c^2
\stopformula

This is explained in \ineq[eq:pythagoras].

results in

Example 2

\setupexternalfigures[location={local,default}] % only needed for this online example to work
\definereferenceformat[infig][left={(Fig. },right=)]

The animal in the picture \infig[fig:cow] is black and white and produces milk.\\
\placefigure[][fig:cow]{A beautiful cow}{\externalfigure[cow][width=2cm]}

results in

See also