Difference between revisions of "Command/numbers"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Reference/en|" to "Commands|")
 
(12 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>numbers</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 15: Line 18:
 
</table>
 
</table>
  
 +
== Description ==
 +
Wrapper around the TeX primitive [http://en.wikibooks.org/wiki/TeX/number <code>\number</code>], with some trickery to make sure that an explicit {{cmd|space}} will not get gobbled. Useful when programming page numbers and the like.
  
== Description ==  
+
== Example ==
 +
<context source=yes text=gives>
 +
\def\greeting{Hello}
  
 +
\tex{number}: \number 8\space\greeting \crlf
 +
\tex{numbers}: \numbers 8\space\greeting
 +
</context>
  
 +
== See Also ==
  
== Example ==
+
<context source=yes>
<!-- Please fill in an example if you can -->
+
\setuppapersize[A5]
 +
Cologne Cathedral was built in \romannumerals{1248}
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
 
  
[[Category:Commands|numbers]]
+
* {{cmd|defineconversion}}
 +
* {{cmd|characters}}
 +
* {{cmd|Characters}}
 +
* {{cmd|numbers}}
 +
* {{cmd|Numbers}}
 +
* {{cmd|mediaeval}}
 +
* {{cmd|romannumerals}}
 +
* {{cmd|Romannumerals}}
 +
* {{cmd|greeknumerals}}
 +
* {{cmd|Greeknumerals}}
 +
* {{cmd|oldstylenumerals}}
 +
* {{cmd|oldstyleromannumerals}}
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
 +
 
 +
[[Category:Command/Internals|numbers]]
 +
[[Category:Command/Conversions|numbers]]

Latest revision as of 16:26, 11 November 2019

\numbers

Syntax (autogenerated)

\numbers{...}
{...}number


Syntax

\numbers{...}
{...} text

Description

Wrapper around the TeX primitive \number, with some trickery to make sure that an explicit \space will not get gobbled. Useful when programming page numbers and the like.

Example

\def\greeting{Hello}

\tex{number}: \number 8\space\greeting \crlf
\tex{numbers}: \numbers 8\space\greeting

gives

See Also

\setuppapersize[A5]
Cologne Cathedral was built in \romannumerals{1248}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: