Difference between revisions of "Command/starttextrule"

From ConTeXt wiki
(Create reference page)
 
m (cleanup)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=starttextrule
 
|name=starttextrule
Line 23: Line 21:
  
 
== Description ==  
 
== Description ==  
<pre>
 
Typesets a horizontal rule on top of the text between \starttextrule and \stoptextrule with the text in {...} inbetween and a rule at the bottom.
 
  
See also \textrule and \setuptextrules.
+
Typesets a horizontal rule on top of the text between [[cmd:starttextrule|\starttextrule]] and \stoptextrule with the text in {...} inbetween and a rule at the bottom.
 +
 
  
</pre>
+
== Comment ==
== comment ==
 
<pre>
 
 
Bug: it looks as if the command takes only one argument:
 
Bug: it looks as if the command takes only one argument:
  
 +
<pre>
 
\starttextrule{...} ... \stoptextrule
 
\starttextrule{...} ... \stoptextrule
  
 
{....}        text
 
{....}        text
 
 
</pre>
 
</pre>
  
Line 43: Line 38:
 
== Example ==
 
== Example ==
  
<pre class="example">
+
<context source="yes" text="results in">
% typesets:
 
% -- introduction --------
 
% Once upon a time ...
 
% ------------------------
 
 
 
 
\starttext
 
\starttext
 
\starttextrule{introduction}
 
\starttextrule{introduction}
Line 54: Line 44:
 
\stoptextrule
 
\stoptextrule
 
\stoptext
 
\stoptext
 
+
</context>
</pre>
 
  
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
See also [[cmd:textrule|\textrule]] and [[cmd:setuptextrules|\setuptextrules]].
  
 
[[Category:Reference/en|starttextrule]]
 
[[Category:Reference/en|starttextrule]]

Revision as of 07:33, 16 April 2010

\starttextrule

Syntax

\starttextrule[...]{...} ... \stoptextrule
[...] top bottom
{...} text


Description

Typesets a horizontal rule on top of the text between \starttextrule and \stoptextrule with the text in {...} inbetween and a rule at the bottom.


Comment

Bug: it looks as if the command takes only one argument:

\starttextrule{...} ... \stoptextrule

{....}        text


Example

\starttext
\starttextrule{introduction}
Once upon a time \unknown
\stoptextrule
\stoptext

results in


See also

See also \textrule and \setuptextrules.