Difference between revisions of "Command/space"
< Command
Jump to navigation
Jump to search
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Mailinglist/Forum ==") |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>space</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
Line 12: | Line 15: | ||
== 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 == | ||
− | <!-- something like | + | <!-- something like {{cmd|goto}} --> |
== Help from ConTeXt-Mailinglist/Forum == | == Help from ConTeXt-Mailinglist/Forum == | ||
Line 25: | Line 36: | ||
{{Forum|{{SUBPAGENAME}}}} | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Command/Internals|space]] |
+ | [[Category:Command/Texts|space]] | ||
+ | [[Category:Command/Fonts|space]] |
Latest revision as of 16:30, 11 November 2019
\space
Syntax (autogenerated)
\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: