Difference between revisions of "Command/tab"

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 4: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>tab</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 22: Line 24:
 
== Description ==  
 
== Description ==  
  
 +
Start an indented paragraph with a word or two in front of it. This environment was created using <code>{{cmd|definedescription}}[tab]</code>, and so behaves like {{cmd|description}}. By default, there is 4em of space for the paragraph key, 2em between the key and the paragraph proper, and the key is set in normal font.
  
 +
== Example ==
 +
<context source=yes>
 +
\setuptab[sample={The Police Chief:}]
 +
 +
The following is a dialog from G.K. Chesterton's {\em The Man who was Thursday}.
 +
 +
\blank[line]
  
== Example ==
+
\tab{The Police Chief:} You are the new recruit? All right, you are engaged. \par
<!-- Please fill in an example if you can -->
+
\tab{Gabriel Syme:} I really have no experience...  \par
 +
\tab{Chief:} No one has any experience of the battle of Armageddon. \par
 +
\tab{Syme:} But I'm really unfit... \par
 +
\tab{Chief:} You are willing, that is enough. \par
 +
\tab{Syme:} Now, really, I know of no occupation for which mere willingness is the final test. \par
 +
\tab{Chief:} I do. Martyrs. I am sending you to your death. Good day. \par
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|setuptab}}
 +
* {{cmd|description}}
  
== ConTeXt-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|tab]]
+
[[Category:Command/Descriptions|tab]]

Revision as of 20:03, 13 October 2019

\tab

Syntax (autogenerated)

Syntax

\tab{...}...
{...} text
... text


Description

Start an indented paragraph with a word or two in front of it. This environment was created using \definedescription[tab], and so behaves like \description. By default, there is 4em of space for the paragraph key, 2em between the key and the paragraph proper, and the key is set in normal font.

Example

\setuptab[sample={The Police Chief:}]

The following is a dialog from G.K. Chesterton's {\em The Man who was Thursday}.

\blank[line]

\tab{The Police Chief:} You are the new recruit? All right, you are engaged. \par
\tab{Gabriel Syme:} I really have no experience...  \par
\tab{Chief:} No one has any experience of the battle of Armageddon. \par
\tab{Syme:} But I'm really unfit... \par
\tab{Chief:} You are willing, that is enough. \par
\tab{Syme:} Now, really, I know of no occupation for which mere willingness is the final test. \par
\tab{Chief:} I do. Martyrs. I am sending you to your death. Good day. \par

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: