* description setup error
@ 2012-05-13 20:16 Meer, H. van der
2012-05-13 20:38 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Meer, H. van der @ 2012-05-13 20:16 UTC (permalink / raw)
To: ConTeXt NTG
Of all the parameter values for \setupdescriptions[][alternative=value] there is one that fails here, i.e. "right". right is a value mentioned in http://wiki.contextgarden.net/Command/setupdescriptions.
Below a minimal example and the error.
\definedescription[htmldd][before=,after=]
\setupdescriptions[htmldd][alternative=right]
\starttext
Text before.\crlf
\starthtmldd{item-1}description\stophtmldd
\starthtmldd{item-2}description\stophtmldd
Text after.
\stoptext
! Undefined control sequence.
system > tex > error on line 5 in file description.tex: Undefined control sequence ...
\12>:153>:right:none ...nstructions_pure_hang_box
\raggedleft \rlap {\hskip ...
\148>construction ...parameter \c!renderingsetup }
\relax \dostoptagged \dost...
\dodogotopar ...andler \v!construction \endcsname
\BeforePar \emptytoks
<to be read again>
d
l.5 \starthtmldd{item-1}d
escription\stophtmldd
Hans van der Meer
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: description setup error
2012-05-13 20:16 description setup error Meer, H. van der
@ 2012-05-13 20:38 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2012-05-13 20:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 13.05.2012 um 22:16 schrieb Meer, H. van der:
> Of all the parameter values for \setupdescriptions[][alternative=value] there is one that fails here, i.e. "right". right is a value mentioned in http://wiki.contextgarden.net/Command/setupdescriptions.
>
> Below a minimal example and the error.
>
> \definedescription[htmldd][before=,after=]
> \setupdescriptions[htmldd][alternative=right]
> \starttext
> Text before.\crlf
> \starthtmldd{item-1}description\stophtmldd
> \starthtmldd{item-2}description\stophtmldd
> Text after.
> \stoptext
>
> ! Undefined control sequence.
>
> system > tex > error on line 5 in file description.tex: Undefined control sequence ...
>
> \12>:153>:right:none ...nstructions_pure_hang_box
> \raggedleft \rlap {\hskip ...
> \148>construction ...parameter \c!renderingsetup }
> \relax \dostoptagged \dost...
> \dodogotopar ...andler \v!construction \endcsname
> \BeforePar \emptytoks
> <to be read again>
> d
> l.5 \starthtmldd{item-1}d
> escription\stophtmldd
>
> Hans van der Meer
The commented line in the setups environment is wrong and the line below is the fix.
\unprotect
\startsetups[\??constructionrenderings:\v!right:\v!none]
\let\\=\crlf
\noindent
\leftskip\leftconstructionskip
\rightskip\dimexpr\rightconstructionskip+\constructionsheadwidth\relax
%\strc_constructions_pure_hang_box\raggedleft
\strc_constructions_set_pure_box\v!flushright
\rlap {
\hskip\dimexpr\hsize-\leftskip-\rightskip\relax
\copy\constructionheadbox
\hskip\rightconstructionskip
}
\advance\rightskip \constructionsheaddistance
\useconstructionstyleandcolor\c!style\c!color
\ignorespaces
\stopsetups
\protect
\definedescription[description][alternative=right,headalign=]
\starttext
BEFORE
\startdescription{Knuth}
\input knuth
\stopdescription
AFTER
\stoptext
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-13 20:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-13 20:16 description setup error Meer, H. van der
2012-05-13 20:38 ` Wolfgang Schuster
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).