Hi Hans, do you have any objections changing the following \kern into a \hskip? \startsetups[\??constructionrenderings:\v!hanging] % tricky: leftskipadaption is somewhat unpredictable \let\\=\crlf \noindent \advance\leftskip-\leftskipadaption\relax \ifdim\leftskipadaption=\zeropoint \leftskipadaption1.5\emwidth\relax % just some default \ifnum\c_strc_constructions_nested_state=\plusone \ifdim\leftskip>\zeropoint \relax \leftskipadaption\leftskip \fi \fi \fi \ifnum\c_strc_constructions_nested_state>\zerocount % was \ifnum\c_strc_constructions_nested_state=\plusone \advance\leftskip\leftskipadaption % but we're already further on \fi \hskip-\leftskipadaption\relax \ifhbox\constructionheadbox\unhcopy\else\copy\fi\constructionheadbox - \kern\ifdim\constructionsheaddistance=\zeropoint .75\emwidth\else\constructionsheaddistance\fi + \hskip\ifdim\constructionsheaddistance=\zeropoint .75\emwidth\else\constructionsheaddistance\fi \useconstructionstyleandcolor\c!style\c!color \ignorespaces \stopsetups Marco
On 11/14/2012 11:29 AM, Marco Patzer wrote:
Hi Hans,
do you have any objections changing the following \kern into a \hskip?
\startsetups[\??constructionrenderings:\v!hanging] % tricky: leftskipadaption is somewhat unpredictable \let\\=\crlf \noindent \advance\leftskip-\leftskipadaption\relax \ifdim\leftskipadaption=\zeropoint \leftskipadaption1.5\emwidth\relax % just some default \ifnum\c_strc_constructions_nested_state=\plusone \ifdim\leftskip>\zeropoint \relax \leftskipadaption\leftskip \fi \fi \fi \ifnum\c_strc_constructions_nested_state>\zerocount % was \ifnum\c_strc_constructions_nested_state=\plusone \advance\leftskip\leftskipadaption % but we're already further on \fi \hskip-\leftskipadaption\relax \ifhbox\constructionheadbox\unhcopy\else\copy\fi\constructionheadbox - \kern\ifdim\constructionsheaddistance=\zeropoint .75\emwidth\else\constructionsheaddistance\fi + \hskip\ifdim\constructionsheaddistance=\zeropoint .75\emwidth\else\constructionsheaddistance\fi \useconstructionstyleandcolor\c!style\c!color \ignorespaces \stopsetups
changing skips/kerns is always somewhat dangerous as one suddenly can get unwanted breaks ... is there a use case? ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 14.11.2012 um 18:23 schrieb Hans Hagen
On 11/14/2012 11:29 AM, Marco Patzer wrote:
Hi Hans,
do you have any objections changing the following \kern into a \hskip?
\startsetups[\??constructionrenderings:\v!hanging] % tricky: leftskipadaption is somewhat unpredictable \let\\=\crlf \noindent \advance\leftskip-\leftskipadaption\relax \ifdim\leftskipadaption=\zeropoint \leftskipadaption1.5\emwidth\relax % just some default \ifnum\c_strc_constructions_nested_state=\plusone \ifdim\leftskip>\zeropoint \relax \leftskipadaption\leftskip \fi \fi \fi \ifnum\c_strc_constructions_nested_state>\zerocount % was \ifnum\c_strc_constructions_nested_state=\plusone \advance\leftskip\leftskipadaption % but we're already further on \fi \hskip-\leftskipadaption\relax \ifhbox\constructionheadbox\unhcopy\else\copy\fi\constructionheadbox - \kern\ifdim\constructionsheaddistance=\zeropoint .75\emwidth\else\constructionsheaddistance\fi + \hskip\ifdim\constructionsheaddistance=\zeropoint .75\emwidth\else\constructionsheaddistance\fi \useconstructionstyleandcolor\c!style\c!color \ignorespaces \stopsetups
changing skips/kerns is always somewhat dangerous as one suddenly can get unwanted breaks ... is there a use case?
Marco posted the following example a while ago: \definedescription [description] [alternative=hanging, width=broad] \starttext \startdescription{conclusion that} \input knuth \stopdescription \startdescription{conclusion that the designer of a new system must not only be literally} \input knuth \stopdescription \stoptext Wolfgang
2012-11-14 Hans Hagen:
changing skips/kerns is always somewhat dangerous as one suddenly can get unwanted breaks ... is there a use case?
There is. Long description heads protrude into the margin. With the original definition I always have to manually check if that's the case, since the result is unacceptable. I use the proposed setting since two months for all my documents and for me it didn't break anything. \definedescription [description] [alternative=hanging, width=broad] \starttext \startdescription{conclusion that} \input knuth \stopdescription \startdescription{conclusion that the designer of a new system must not only be literally} \input knuth \stopdescription \stoptext The fix was actually proposed by Phillip. Marco
participants (3)
-
Hans Hagen
-
Marco Patzer
-
Wolfgang Schuster