* Custom itemization broken by the new release
@ 2006-11-26 19:50 Renaud Aubin
2006-11-27 9:53 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Renaud Aubin @ 2006-11-26 19:50 UTC (permalink / raw)
Hi all,
The following code
% frenchitemize
\setbox0=\hbox{--~}
\def\indenteddash#1{\hskip\parindent--~}
\definesymbol[indentdash][\indenteddash]
\defineitemgroup[frenchitemize]
\setupitemgroup[frenchitemize]
[each]
[indentdash,packed,joinedup]%,intext] % commenté le 2611
[indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]
% testitemize
\defineitemgroup[testitemize]
\setupitemgroup[testitemize]
[each]
[indentdash,packed,joinedup,intext] % commenté le 2611
[indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]
\starttext
\input knuth
\startfrenchitemize
\item \input tufte
\item \input tufte
\stopfrenchitemize
\input knuth
\page
\input knuth
\starttestitemize
\item \input tufte
\item \input tufte
\stoptestitemize
\input knuth
\stoptext
"demonstrates" (?) the fact that [indentdash,packed,joinedup,intext]
options don't lead to the expected result, i.e. the intext option break
the packed one in the definition of testitemize.
Renaud
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Custom itemization broken by the new release
2006-11-26 19:50 Custom itemization broken by the new release Renaud Aubin
@ 2006-11-27 9:53 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2006-11-27 9:53 UTC (permalink / raw)
Renaud Aubin wrote:
> Hi all,
>
> The following code
>
> % frenchitemize
> \setbox0=\hbox{--~}
> \def\indenteddash#1{\hskip\parindent--~}
> \definesymbol[indentdash][\indenteddash]
> \defineitemgroup[frenchitemize]
> \setupitemgroup[frenchitemize]
> [each]
> [indentdash,packed,joinedup]%,intext] % comment� le 2611
> [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]
>
> % testitemize
> \defineitemgroup[testitemize]
> \setupitemgroup[testitemize]
> [each]
> [indentdash,packed,joinedup,intext] % comment� le 2611
> [indentnext=yes,width=\dimexpr \parindent + \wd0 \relax]
>
apart from you rproblem ... best store the wd0 instead of relying on the
fact that box 0 stays the same
\setbox0=\hbox{--~} \edef\MyWidth{\the\wd0}
\def\indenteddash#1{\hskip\parindent--~}
\definesymbol[indentdash][\indenteddash]
\defineitemgroup[frenchitemize]
\setupitemgroup[frenchitemize]
[each]
[indentdash,packed,joinedup]%,intext] % comment? le 2611
[indentnext=yes,width=\dimexpr \parindent + \MyWidth \relax]
% testitemize
\defineitemgroup[testitemize]
\setupitemgroup[testitemize]
[each]
[indentdash,packed,joinedup,intext] % comment? le 2611
[indentnext=yes,width=\dimexpr \parindent + \MyWidth \relax]
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-27 9:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-26 19:50 Custom itemization broken by the new release Renaud Aubin
2006-11-27 9:53 ` Hans Hagen
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).