ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: problems with vertical spacing and boxes
Date: Tue, 9 Nov 2010 18:08:38 +0100	[thread overview]
Message-ID: <857FFADF-B84E-4026-A329-5E1FD47F9997@uni-bonn.de> (raw)
In-Reply-To: <1AC57DC7-1373-4243-A20F-571F73A46B6D@gmail.com>


On Nov 9, 2010, at 4:53 PM, Wolfgang Schuster wrote:

> Another solution:
> 
> \setupbodyfont[termes,12pt]
> 
> \setupinterlinespace[line=4.5ex]
> 
> \setupalign[hanging]
> 
> \defineitemgroup[myline][width=1cm,symstyle=bold]
> 
> \define[3]\MyLine
>  {\startmyline\hsize=7cm
>   \sym{#2}#3\wordright[2em]{#1}%
>   \stopmyline}
> 
> \starttext
> 
> \MyLine{5}{Fa.}{This line is short.}
> 
> \MyLine{12}{Ma.}{\input knuth }
> 
> \MyLine{8}{Pa.}{\input ward }
> 
> \stoptext
> 
> When you’re going to use this for a long document i suggest an alternative method for the input:
> 
> \MyLine[lines=...,speaker=...] ... \par
> 
> and
> 
> \startMyLine[lines=...,speaker=...]
> ...
> \stopMyLine
> 
> Wolfgang

Yes, this looks good! I use the macro in a slightly more complex situation, so my "real" syntax is

\MyLine[<number>][yes|no][<Speaker>]{<line content>}

where yes|no determines whether the number should be displayed or not and the third argument (the speaker) is optional; it it's there, it will be typeset in the space at the beginning of the line. Complex, but makes it easy to read my source...

Thanks!

Thomas
___________________________________________________________________________________
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-11-09 17:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-09  9:12 Thomas A. Schmitz
2010-11-09  9:19 ` Thomas A. Schmitz
2010-11-09 14:47   ` Wolfgang Schuster
2010-11-09 15:05     ` Thomas A. Schmitz
2010-11-09 15:53       ` Wolfgang Schuster
2010-11-09 17:08         ` Thomas A. Schmitz [this message]
2010-11-09 15:54       ` 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=857FFADF-B84E-4026-A329-5E1FD47F9997@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.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).