Command/definereferenceformat

From Wiki
Revision as of 22:05, 21 July 2011 by Metan0r (talk | contribs) (Added an example for a reference on a picture (very common case, I think))
Jump to navigation Jump to search

\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