ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Torsten Suhling <tsuhling@web.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Hanging indent in startstoplines for poems
Date: Tue, 30 Mar 2010 23:34:38 +0200	[thread overview]
Message-ID: <4BB26E6E.8090400@web.de> (raw)
In-Reply-To: <4BB0FE78.1000506@googlemail.com>

Hello,

thanks for the help, attached snippet seems to work.

So I guess my question basicly was caused by misunderstandings
in using define/setup commands.

Is there a document describing the grammar of context---how to
use or to combine \setupsomething, \definesomething
ttartstosomethig or \setupanything{something=[]}?

 > Wolfgang Schuster wrote:
 >
 > % style={\setupalign[flushleft,nothyphenated]},
 > style={\raggedright\nohyphens},

Sorry for stupid question, but is there a difference
between \nohyphens and \nothyphenated ?


Thanks

Torsten

%<----- snip --------------------------------------------------

\setupoutput[dvi]

\setupwhitespace[1.2em]

\definestartstop[verse]
  [command={%
            \setupwhitespace[1.2em]%               
   },style={%
            \raggedright\nohyphens%
  },before={%
            \setuplines[indenting={yes,-2em,first}]%
            \setupnarrower[left=2em]%
            \startnarrower[left]% blockindent only left
            \startlines%
   },after={%
            \stoplines%
            \stopnarrower%
            \setuplines[indenting={no}]% must be reseted
            \endgraf%
  }]

\starttext

Three lines, first should be broken:

\startverse
FIRST---this should be one line, please remove linebreaks, made by the 
mail programms, until HERE.
SECOND---next line without carriage return or line feed,
THIRD---startstoplines accept linebreaks, so this is a new line.
FOURTH---fourth line also do not make much words.
\stopverse

\stoptext

%<----- snip --------------------------------------------------














___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2010-03-30 21:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-29 15:29 Torsten Suhling
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 [this message]
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=4BB26E6E.8090400@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).