ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: bib module/cite (Context bug)
@ 2003-07-12 17:22 Hans Hagen
  2003-07-13 19:49 ` Martin Moncrieffe
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2003-07-12 17:22 UTC (permalink / raw)


At 15:01 11/07/2003 +0200, Taco Hoekwater wrote:

>Hi Martin, Hans, rest of the group,
>
>It took me a while to track down this bug. It is actually a bug in
>the definition of \sortcommacommand in newer ConTeXt-es.
>
>Minimal example:
>
>\def\mylist{1,2,3}
>\sortcommacommand[\mylist]\donumericcompare
>\message{\sortedcommalist} % reports 1,2 !!

Two patches are needed in syst-ext.tex:

(1) change last line in:

\def\docompareitems#1%
   {\doifnotempty{#1}
      {\@EA\comparecommand\@EA{\!!tempa}{#1}\relax
       \ifnum\comparedresult<2
         \ifnum\scratchcounter=\commalistsize
           \@EA\@EA\@EA\def\@EA\@EA\@EA\sortedcommalist
           \@EA\@EA\@EA{\@EA\sortedcommalist\@EA,\!!tempa}%
         \fi
       \else % old element larger
         \@EA\def\@EA\newcommalistelement\@EA{\!!tempa,#1}%
         \replaceincommalist\sortedcommalist\scratchcounter
         \expandafter\quitcommalist
       \fi}%
       \advance\scratchcounter \plusone} % ! ! !

(2) handle n=1 case in:

\def\sortcommalist[#1]#2%
   {\getcommalistsize[#1]%
    \ifnum\commalistsize>1
      \let\sortedcommalist\empty
      \let\comparecommand#2%
      \processcommalist[#1]\dosortcommacommand
    \else
      \def\sortedcommalist{#1}%
    \fi}

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Runtime graphics
@ 2003-06-13  5:34 Pierre VINET
  2003-07-01 10:20 ` bib module/cite Martin Moncrieffe
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre VINET @ 2003-06-13  5:34 UTC (permalink / raw)



 Hi,

       I run this simple test file test.tex :

%&cont-en
\setupoutput[pdftex]
\runMPgraphicstrue
\starttext
\startMPrun
  input graphserieA
\stopMPrun
\externalfigure[mprun.1]
\externalfigure[mprun.2]
%
\startMPrun
  input graphserieB
\stopMPrun
\externalfigure[mprun.1]
\externalfigure[mprun.2]
\stoptext
\end .

  In the logfile, I got the messages :

figures        : figureobject test-mprun.1 is reused
figures        : figureobject test-mprun.2 is reused

 and twice the figures of graphserieA.mp on test.pdf.

 Is there a way to avoid the re-use of test-mprun.1 and test-mprun.2, I mean
a way to overwrite the files test-mprun.1 and test-mprun.2 ?

 Or a way to get different names for each metapost output as, for example,
graphserieA-mprun.1, graphserieA-mprun.2 and graphserieB-mprun.1,
graphserieB-mprun.2 ?
 
 I could also give a different number to each of the figures in all of the
*.mp files, but this solution is not pacticable since I have plenty of
metapost files to process, each of it containing a lot of figures already
numbered with almost the same numbers. Moreover, those numbers can not be
modified because the figures are elsewhere referenced by their number and by
the name of the metapost file.

Thanks,

 --pv

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-07-14  8:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-12 17:22 bib module/cite (Context bug) Hans Hagen
2003-07-13 19:49 ` Martin Moncrieffe
2003-07-14  8:12   ` Taco Hoekwater
2003-07-14  8:27     ` Martin Moncrieffe
  -- strict thread matches above, loose matches on Subject: below --
2003-06-13  5:34 Runtime graphics Pierre VINET
2003-07-01 10:20 ` bib module/cite Martin Moncrieffe
2003-07-11 13:01   ` bib module/cite (Context bug) Taco Hoekwater

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).