From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: \definedescription[...][hang=fit] broken in latest beta?
Date: Sat, 11 Feb 2012 06:48:28 +0100 [thread overview]
Message-ID: <A5DDAC13-E8C1-42F8-9484-86EB4978219F@googlemail.com> (raw)
In-Reply-To: <4F3561CC.7030608@web.de>
Am 10.02.2012 um 19:28 schrieb Pablo Rodríguez:
> Hi there,
>
> I'm not able to compile this code using the latest beta:
>
> \definedescription[optionlisting][hang=fit]
> \starttext
> \optionlisting{range} especifica espectro
> \stoptext
>
> Just in case it helps,
1. You need a empty line or \par at the end of the description (or use \startoptionlisting … \stopoptionlisting)
2. Change this in strc-con.mkvi
\def\strc_constructions_set_hang#1%
{\edef\p_hang{\constructionparameter\c!hang}%
\ifx\p_hang\empty
\else\ifx\p_hang\v!fit
\scratchdimen\htdp\constructionheadbox
\getnoflines\scratchdimen
\hangafter-\noflines
\else\ifx\p_hang\v!broad
\scratchdimen\dimexpr\htdp\constructionheadbox+.5\strutht\relax
\getnoflines\scratchdimen
\hangafter-\noflines
\else
\hangafter-\p_hang
- \fi
+ \fi\fi\fi
\relax
\hangindent\ifx#1\v!right-\fi\constructionsheadwidth}
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:[~2012-02-11 5:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 18:28 Pablo Rodríguez
2012-02-11 5:48 ` Wolfgang Schuster [this message]
2012-02-11 12:27 ` Pablo Rodríguez
2012-02-11 12:46 ` Wolfgang Schuster
2012-02-11 14:12 ` Pablo Rodríguez
2012-02-11 14:20 ` Wolfgang Schuster
2012-02-11 14:34 ` Pablo Rodríguez
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=A5DDAC13-E8C1-42F8-9484-86EB4978219F@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.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).