Difference between revisions of "Command/space"
< Command
Jump to navigation
Jump to search
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}") |
(Description, example, categories: Internals, Texts, Fonts.) |
||
Line 12: | Line 12: | ||
== Description == | == Description == | ||
+ | A macro that expands to a space, defined very simply as | ||
+ | <texcode> | ||
+ | \def\space{ } | ||
+ | </texcode> | ||
+ | Useful when an ordinary space would get gobbled, as is common when macros are involved. | ||
+ | == Example == | ||
+ | <context source=yes text=gives> | ||
+ | \def\text{page} | ||
− | + | With a space: \text \pagenumber \crlf | |
− | + | With a \tex{space}: \text\space\pagenumber | |
− | < | + | </context> |
== See also == | == See also == | ||
Line 25: | Line 33: | ||
{{Forum|{{SUBPAGENAME}}}} | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Command/Internals|space]] |
+ | [[Category:Command/Texts|space]] | ||
+ | [[Category:Command/Fonts|space]] |
Revision as of 11:04, 24 April 2012
\space
Syntax
\space |
Description
A macro that expands to a space, defined very simply as
\def\space{ }
Useful when an ordinary space would get gobbled, as is common when macros are involved.
Example
\def\text{page} With a space: \text \pagenumber \crlf With a \tex{space}: \text\space\pagenumber
gives
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: