Difference between revisions of "Command/definereferenceformat"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \definereferenceformat")
(No difference)

Revision as of 13:08, 5 September 2020


\definereferenceformat

Summary

The command \definereferenceformat is used for predefining reference formats.

Settings

\definereferenceformat[...][...][...=...,...]
[...]name
[...]name
...=...,...inherits from \setupreferenceformat

Description

Predefine reference text, so that for example you won't have to type \in{Equation}[eq:somelabel] all the time.

Examples

Example 1

\definereferenceformat
   [ineq]
   [left=(,
    right=),
    text=Equation,]

\section{First section}
\section{Second section}

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

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

Example 2

\setuppagenumbering
   [conversion=A,               % pages A, B, C, ...
    location={header,inright}]  %

\definereferenceformat
    [atfig]
    [label=page,
     command=\at]

\mainlanguage[nl]
Het dier (\atfig[fig:cow]) is zwart en wit en geeft melk.\crlf
\mainlanguage[en]
The animal (\atfig[fig:cow]) is black and white and produces milk.


\placefigure[][fig:cow]{A beautiful cow}{\externalfigure[cow][width=2cm]}

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: