From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: problems with vertical spacing and boxes
Date: Tue, 9 Nov 2010 16:53:43 +0100 [thread overview]
Message-ID: <1AC57DC7-1373-4243-A20F-571F73A46B6D@gmail.com> (raw)
In-Reply-To: <779F7548-9D48-4033-B3E9-BE83973F14AD@uni-bonn.de>
Am 09.11.2010 um 16:05 schrieb Thomas A. Schmitz:
> Thanks Wolfgang, I must remember align=hanging (had a similar problem with footnotes recently). Descriptions may be a way, but would it be possible to mimick my input syntax here:
>
> \MyLine{5}{Fa.}{This line is short.}
>
> and define a description that will take "5" as "closesymbol" and "Fa." as "text"? Otherwise, I'd need to define a description for every speaking character.
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
___________________________________________________________________________________
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 prev parent reply other threads:[~2010-11-09 15:53 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 [this message]
2010-11-09 17:08 ` Thomas A. Schmitz
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=1AC57DC7-1373-4243-A20F-571F73A46B6D@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--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).