Difference between revisions of "Command/numbers"
< Command
Jump to navigation
Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}") |
(Add description, example; move to Category:Command/Internals.) |
||
Line 14: | Line 14: | ||
</tr> | </tr> | ||
</table> | </table> | ||
− | |||
== Description == | == 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. | ||
+ | == Example == | ||
+ | <context source=yes text=gives> | ||
+ | \def\greeting{Hello} | ||
+ | \tex{number}: \number 8\space\greeting \crlf | ||
+ | \tex{numbers}: \numbers 8\space\greeting | ||
− | + | </context> | |
− | < | ||
− | |||
− | |||
− | |||
== Help from ConTeXt-Mailinglist/Forum == | == Help from ConTeXt-Mailinglist/Forum == | ||
Line 30: | Line 31: | ||
{{Forum|{{SUBPAGENAME}}}} | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category:Command/ | + | [[Category:Command/Internals|numbers]] |
Revision as of 10:39, 24 April 2012
\numbers
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
Help from ConTeXt-Mailinglist/Forum
All issues with: