Changes

Jump to navigation Jump to search
384 bytes added ,  09:16, 27 December 2021
example with indented continuation lines in poems
<?xml version='1.0'?>
<!-- this file was generated on 2020-08-20T09:05 -->
<cd:commandgroup generated="yes" name="lines" type="environment" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
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:command>
</cd:variants>
<cd:description>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:examples> <cd:example title=""><context source="yes">
\startlines
The
</context>
</cd:example><cd:example title="">For poems with longer lines you can use positive and negative values. Long lines will break and indent to indicate that the new line the continuation of the line before. <context source="yes">\setuplines [before={\blank\startnarrow[default=left,left=1cm]}, after={\stopnarrow\blank}, indenting={yes,-1cm}] \showframe[text][text] \starttext \startlinesShe made that year the most terrible one for mortals, all over the Earth, the nurturer of many.It was so terrible, it makes you think of the Hound of Hadês. The Earth did not send upany seed. Demeter, she with the beautiful garlands in her hair, kept them covered underground.Many a curved plough was dragged along the fields by many an ox—all in vain.Many a bright grain of wheat fell into the earth—all for naught.\stoplines
\stoptext</cd:examplescontext></cd:notesexample><!-- this is for special remarks that do not fit elsewhere, like discovered bugs in specific context versions</cd:note author="..." date="..."examples></cd:note>--notes></cd:notes>
<cd:seealso>
<!-- one or more of these:
<cd:commandref name="xx"></cd:commandref>
<cd:wikipage page="xx"></cd:wikipage>
<cd:url url="https://xx"></cd:url>
<cd:manual pdf="xx"></cd:manual>
<cd:source file="xx"></cd:source>
-->
<cd:commandref name="definelines" originator="system"></cd:commandref>
<cd:commandref name="setuplines" originator="system"></cd:commandref>
<cd:source file="spac-lin.mkiv" originator="system"></cd:source> <cd:wikipage originator="system" page="Category:Structure"></cd:wikipage> </cd:seealso>
</cd:commandgroup>
13

edits

Navigation menu