Difference between revisions of "Command/ startlines"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \start<i>lines</i> ... \stop<i>lines</i>")
 
Line 4: Line 4:
 
<cd:shortdesc>
 
<cd:shortdesc>
 
<!-- a short command summary goes here -->
 
<!-- a short command summary goes here -->
The instances of  <tt>\start<i>lines</i> ... \stop<i>lines</i></tt> are used for ...
+
The instances of  <tt>\start<i>lines</i> ... \stop<i>lines</i></tt> are used for typsetting text with preformatted line breaks.
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:sequence>
 
<cd:sequence>
Line 23: Line 23:
 
</cd:variants>
 
</cd:variants>
 
<cd:description>
 
<cd:description>
<!-- the long description of the command goes here -->
+
This allows the printing of text according to existing linebreaks within the text. The command itself takes no setups, but you can use {{cmd|setuplines}} to indicate that you wish to preserve whitespace, or make it visible, as well as some other tricks; and if you find yourself using the same few setups throughout the document, you can make special-purpose environments using {{cmd|definelines}}.
 
</cd:description>
 
</cd:description>
 
<cd:examples>
 
<cd:examples>
<!--  command example(s)
+
 
 
<cd:example title="">
 
<cd:example title="">
 +
<context source="yes">
 +
\startlines
 +
The
 +
lines
 +
are
 +
there!
 +
\stoplines
 +
</context>
 +
 
</cd:example>
 
</cd:example>
-->
+
 
 
</cd:examples>
 
</cd:examples>
 
<cd:notes>
 
<cd:notes>

Revision as of 13:39, 21 August 2020


\startlines ... \stoplines

Summary

The instances of \startlines ... \stoplines are used for typsetting text with preformatted line breaks.

Instances

\startlines ... \stoplines

Settings instance

\startLINES[...=...,...] ... \stopLINES
...=...,...inherits from \setuplines

Description

This allows the printing of text according to existing linebreaks within the text. The command itself takes no setups, but you can use \setuplines to indicate that you wish to preserve whitespace, or make it visible, as well as some other tricks; and if you find yourself using the same few setups throughout the document, you can make special-purpose environments using \definelines.

Examples

Example 1

\startlines
The
lines
are
there!
\stoplines


Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: