description setup error
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
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
participants (2)
-
Meer, H. van der
-
Wolfgang Schuster