Difference between revisions of "Command/defineconversion"

From Wiki
Jump to navigation Jump to search
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Mailinglist/Forum ==")
m
Line 71: Line 71:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|defineconversion]]
+
[[Category:Conversion|defineconversion]]

Revision as of 01:21, 18 March 2012

\defineconversion

Syntax

\defineconversion[...][...]
[...] name
[...] command text


Description

Predefined conversions:

a  \characters
A  \Characters
AK \kap\characters
KA \kap\characters
n  \numbers
N  \Numbers
m  \mediaeval
i  \romannumerals
I  \Romannumerals
r  \romannumerals
R  \Romannumerals
KR \kap\romannumerals
RK \kap\romannumerals
g  \greeknumerals
G  \Greeknumerals
o  \oldstylenumerals
O  \oldstylenumerals
or \oldstyleromannumerals


Example

Change numbering in itemize to '(1)', '(2)', ...

\starttext
\defineconversion[map][(\numbers]
\startitemize[map][stopper=)]
\item Text Text Text Text Text Text Text Text Text Text Text Text
      Text Text Text Text Text Text Text Text Text Text Text Text
      Text Text Text Text Text Text Text Text Text Text
\item Text Text Text Text Text Text Text Text Text Text Text Text
      Text Text Text Text Text Text Text Text Text Text Text Text
      Text Text Text Text Text Text Text Text Text Text
\stopitemize
\stoptext

yields


See also

Help from ConTeXt-Mailinglist/Forum

All issues with: