Hi Hans,
maybe after the current is made (which happens sometime within the next two weeks)
best make sure that we have no serious bugs (experimental features apart)
I think it's better to start a new thread for this issue. I maintain a small list of bugs and quirks which I would like to share. I don't know if the issues are considered bugs or not. I posted most of them to the mailing list at some point, but AFAIK they have not been fixed for whatever reason. Usually there are simple workarounds or I have some code which fixes the issue. Others are still unresolved. Act upon as you see fit. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Wrong spacing in \unit when no number is given \starttext \starttabulate \NC wrong spacing \EQ (\unit{micro mol}) \NC\NR \NC spacing OK \EQ (µmol) \NC\NR \NC spacing OK \EQ (3\,µmol) \NC\NR \NC spacing OK \EQ (3 \unit{micro mol}) \NC\NR \NC spacing OK \EQ (\unit{3 micro mol}) \NC\NR \stoptabulate \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Newline after \placelegend fails \starttext \startplacelegend \startcontent Foo \stopcontent \startcaption Bar \stopcaption \stopplacelegend \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% way setting does not work in \setupcaptions %% The way setting cannot be applied globally to all floats using %% \setupcaptions. For the prefix value it works. \setupblackrules [width=4cm, height=1cm] %% prefix is applied, way is not \setupcaptions [prefix=no, way=bytext] %% prefix and way are applied %% \setupcaption %% [figure, table] %% [prefix=no, %% way=bytext] \starttext \dorecurse{2}{% \startchapter [title=Chapter] \dorecurse{2}{% \startplacefigure \blackrule \stopplacefigure \startplacetable \blackrule \stopplacetable} \stopchapter} \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Wide descriptions protruding into the margin \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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% interaction mode focus=current does not work for footnotes and floats \setupinteraction [state=start,focus=standard] \starttext \in{figure}[foo] \startplacefigure [reference=foo] \stopplacefigure \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% the \stop… line of database module environment must not be indented, %% spurious line otherwise \usemodule [database] \defineseparatedlist [CSV] [before=\bTABLE, after=\eTABLE, first=\bTR, last=\eTR, left=\bTD, right=\eTD] \starttext %% indentation with spaces works \startCSV alpha, 10 beta, 20 gamma, 30 \stopCSV %% indentation with tabs produces spurious extra line \startCSV alpha, 10 beta, 20 gamma, 30 \stopCSV %% some weird indentation works, but looks awkward \startplacetable \startCSV alpha, 10 beta, 20 gamma, 30 \stopCSV \stopplacetable \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% MetaPost Location throws error \startuseMPgraphic{foo} %% works %% fill Field[Header][Text]; %% error fill Area[Header][Text] shifted Location[Header][Text]; \stopuseMPgraphic \starttext \useMPgraphic{foo} \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Marco
On 3/27/2013 7:55 PM, Marco Patzer wrote:
Hi Hans,
maybe after the current is made (which happens sometime within the next two weeks)
best make sure that we have no serious bugs (experimental features apart)
I think it's better to start a new thread for this issue.
I maintain a small list of bugs and quirks which I would like to share. I don't know if the issues are considered bugs or not. I posted most of them to the mailing list at some point, but AFAIK they have not been fixed for whatever reason. Usually there are simple workarounds or I have some code which fixes the issue. Others are still unresolved. Act upon as you see fit.
well, if something really crashes due to some 'programming' error it's indeed a bug (i tend to add such tests then to the test suite so that it gets checked) other cases depend a bit on how complex it is to deal with it given the tex language, take this one:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Newline after \placelegend fails \starttext \startplacelegend
\startcontent Foo \stopcontent \startcaption Bar \stopcaption \stopplacelegend \stoptext
If you want that, you also want \starttext \startplacelegend \startcontent Foo Bar \stopcontent \startcaption Bar Foo \stopcaption \stopplacelegend \stoptext That's actually a side effect of how such a mechanism is implemented but in this case it can be catched (at the cost of a bit less efficiency). The problem then is that after a while one wonders why the particular lines of code were there. (you can test / look into the zip on the ftp server) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 3/27/2013 7:55 PM, Marco Patzer wrote:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% the \stop… line of database module environment must not be indented, %% spurious line otherwise \usemodule [database]
\defineseparatedlist [CSV] [before=\bTABLE, after=\eTABLE, first=\bTR, last=\eTR, left=\bTD, right=\eTD]
\starttext
%% indentation with spaces works \startCSV alpha, 10 beta, 20 gamma, 30 \stopCSV
%% indentation with tabs produces spurious extra line \startCSV alpha, 10 beta, 20 gamma, 30 \stopCSV
%% some weird indentation works, but looks awkward \startplacetable \startCSV alpha, 10 beta, 20 gamma, 30 \stopCSV \stopplacetable
\stoptext
tricky given the meaning of spaces ... I've sent you something to test (keep in mind that in these example there are leading spaces but they happen to be gobbled by tex; the new strip option wil front/back strip spaces) Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 3/27/2013 7:55 PM, Marco Patzer wrote:
I maintain a small list of bugs and quirks which I would like to share. I don't know if the issues are considered bugs or not. I
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% MetaPost Location throws error \startuseMPgraphic{foo} %% works %% fill Field[Header][Text];
%% error fill Area[Header][Text] shifted Location[Header][Text]; \stopuseMPgraphic
\starttext \useMPgraphic{foo} \stoptext
ok, that's a real bug, it should be pair Location[][] ; % second [] was lost in mp-page.mpiv the initialization of those variables was made delayed when i found out that mp needed 4 seconds instead of < 1 on a manual; in th emeantime mp's mem management has been improved much but i'll keep the delayed code as it's more efficient anyway - but also a bit more complex Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 3/27/2013 7:55 PM, Marco Patzer wrote:
%% Wide descriptions protruding into the margin
\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
A potentially incompatible change ... upto you and wolfgang to check it \unprotect \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 \unhbox\else\box\fi\constructionheadbox \ifconditional\c_strc_constructions_distance_none \else % we used to have just a kern, but long lines look bad then \scratchdistance\ifdim\constructionsheaddistance=\zeropoint .75\emwidth\else\constructionsheaddistance\fi \hskip \scratchdistance \s!plus .25\scratchdistance \s!minus.25\scratchdistance \fi \allowbreak % new \useconstructionstyleandcolor\c!style\c!color \ignorespaces \stopsetups \protect \definedescription [description] [alternative=hanging, width=broad] \starttext \dorecurse{15}{ \startdescription{\dorecurse{#1}{test }} \input knuth \stopdescription } \stoptext Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
On 2013–03–27 Hans Hagen wrote:
A potentially incompatible change
It's already the second time you warn me about this. Should I be concerned?
... upto you and wolfgang to check it
Actually I used a patched version for months in several projects without issues. I replaced the kern with an hskip. That said, it's unlikely that *I* will run into issues. And I'm curious about an example where this fails and yields unacceptable results (like the unpatched version does). Thanks Hans for taking the time to look into that. Marco
participants (2)
-
Hans Hagen
-
Marco Patzer