Difference between revisions of "Command/space"

From Wiki
Jump to navigation Jump to search
m (Text replace - "[[Category:Commands|" to "== ConTeXt-Forum == {{Forum|{{SUBPAGENAME}}}} [[Category:Commands|")
 
(7 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
== Example ==
+
With a \tex{space}: \text\space\pagenumber
<!-- Please fill in an example if you can -->
+
</context>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
  
== ConTeXt-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|space]]
+
[[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: