From: Torsten Suhling <tsuhling@web.de>
To: ntg-context@ntg.nl
Subject: Hanging indent in startstoplines for poems
Date: Mon, 29 Mar 2010 17:29:36 +0200 [thread overview]
Message-ID: <4BB0C760.5080305@web.de> (raw)
Hello,
I have a question regarding hanging indentation in
startstoplines-environment.
So I try to use ConTeXt to typeset poems. In some texts/poems
ar long lines, which have to be broken. They should be broken
into hanging indentations.
That means:
Every line of poem should start left.
If a poemline is longer than text width, the rest of this line
should be indented in a new text line. (just like here)
The width of this indentation should be fixed (e.g. 3em).
The width of this indentation shouldn't depend on a word.
It would be fine, if I don't have to set (poem)linebreaks.
Additionally, it should still be able to indent a verse
(e.g. a chorus), for instance using narrower.
Hyphenation should be switched off inside the poems.
So I found \setuphanging, but these instruction seems made
another job---indenting a paragraph to be placed right beside
the first words of the paragraph.
That's the example, which does not work (all lines are indented)
%<-------------- snip ---------------------------------------
\definestartstop[verse]
[command={\setupwhitespace[1.2em]}% % follow the grid
,before={\setupindenting[-2em,yes]% % trial to construct
\startnarrower[2em]% % hanging indent
\startalignment[flushleft]% % even inter-word-dist.
\startlines% % no justification
\indenting[first]}%
,after={\stoplines%
\stopalignment%
\stopnarrower%
\endgraf}]
\starttext
Three lines, first should be broken:
\startverse
FIRST---this should be one line, please remove linebreaks made by the
mail programms or similiar possibly until HERE.
SECOND---next line without carriage return or line feed,
THIRD---because startstoplines accept linebreaks.
FOURTH---is also one who don't make much words.
\stopverse
\stoptext
%<-------------- snap ---------------------------------------
Any idea how to do that?
Thanks for help
Torsten
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2010-03-29 15:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-29 15:29 Torsten Suhling [this message]
2010-03-29 15:53 ` Wolfgang Schuster
2010-03-29 16:51 ` Hans Hagen
2010-03-29 19:24 ` Wolfgang Schuster
2010-03-30 21:34 ` Torsten Suhling
2010-03-31 13:06 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BB0C760.5080305@web.de \
--to=tsuhling@web.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).