ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Beta breaks gantt module
@ 2012-03-10 20:22 Marco
  2012-03-12  3:25 ` Aditya Mahajan
  0 siblings, 1 reply; 5+ messages in thread
From: Marco @ 2012-03-10 20:22 UTC (permalink / raw)
  To: ntg-context

Somewhere between the beta 2012.03.10 13:15 and 2011.11.29 23:11 the
gantt module got broken. Example:

\usemodule [gantt] [alternative=tikz]
\starttext
  \startgantt {5}{10}
    \startganttitle
      \titleelement{Foo}{5}
      \titleelement{Bar}{5}
    \stopganttitle
  \stopgantt
\stoptext

loading         > module gantt
! TeX capacity exceeded, sorry [expansion depth=10000].

system   > tex > error on line 21 in file gantt.tex: TeX capacity exceeded, sorry [ ...

\moduleparameter #1#2->\csname 
                  \??module \ifcsname \??module #1:#2\endcsname...

Marco


___________________________________________________________________________________
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] 5+ messages in thread

* Re: Beta breaks gantt module
  2012-03-10 20:22 Beta breaks gantt module Marco
@ 2012-03-12  3:25 ` Aditya Mahajan
  2012-03-12  7:55   ` Hans Hagen
  2012-03-12 10:08   ` Marco
  0 siblings, 2 replies; 5+ messages in thread
From: Aditya Mahajan @ 2012-03-12  3:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, 10 Mar 2012, Marco wrote:

> Somewhere between the beta 2012.03.10 13:15 and 2011.11.29 23:11 the
> gantt module got broken. Example:
>
> \usemodule [gantt] [alternative=tikz]
> \starttext
>  \startgantt {5}{10}
>    \startganttitle
>      \titleelement{Foo}{5}
>      \titleelement{Bar}{5}
>    \stopganttitle
>  \stopgantt
> \stoptext
>
> loading         > module gantt
> ! TeX capacity exceeded, sorry [expansion depth=10000].
>
> system   > tex > error on line 21 in file gantt.tex: TeX capacity exceeded, sorry [ ...
>
> \moduleparameter #1#2->\csname
>                  \??module \ifcsname \??module #1:#2\endcsname...

The simpleslides module also had the same error recently. The internal 
definition of \usemodule has changed, so thing like

\doifdefinedelse{\currentmoduleparameter\c!alternative}
   {\usemodule[gantt-s][mp]}
   {\usemodule[gantt-s][\currentmoduleparameter\c!alternative]}

does not work correctly. Instead, use (untested)

\doifdefinedelse{\currentmoduleparameter\c!alternative}
   {\usemodule[gantt-s][mp]}
   {\expanded{\usemodule[gantt-s][\currentmoduleparameter\c!alternative]}}

or

\doifdefinedelse{\currentmoduleparameter\c!alternative}
   {\usemodule[gantt-s-mp]}
   {\expanded{\usemodule[gantt-s-\currentmoduleparameter\c!alternative]}}


Aditya

___________________________________________________________________________________
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] 5+ messages in thread

* Re: Beta breaks gantt module
  2012-03-12  3:25 ` Aditya Mahajan
@ 2012-03-12  7:55   ` Hans Hagen
  2012-03-12 22:21     ` Aditya Mahajan
  2012-03-12 10:08   ` Marco
  1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2012-03-12  7:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 12-3-2012 04:25, Aditya Mahajan wrote:
> On Sat, 10 Mar 2012, Marco wrote:
>
>> Somewhere between the beta 2012.03.10 13:15 and 2011.11.29 23:11 the
>> gantt module got broken. Example:

can you test with replacing \def with \edef in

\strc_modules_use

in file-mod.mkvi

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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 5+ messages in thread

* Re: Beta breaks gantt module
  2012-03-12  3:25 ` Aditya Mahajan
  2012-03-12  7:55   ` Hans Hagen
@ 2012-03-12 10:08   ` Marco
  1 sibling, 0 replies; 5+ messages in thread
From: Marco @ 2012-03-12 10:08 UTC (permalink / raw)
  To: ntg-context

On 2012-03-11 Aditya Mahajan <adityam@umich.edu> wrote:

> The simpleslides module also had the same error recently. The
> internal definition of \usemodule has changed, so thing like

That's probably the cause. Adam was so kind and quickly released a
new fixed version. Other improvements:

∙ The gantt module now works (again) with the MetaPost backend
  (which was broken for quite some time) and is a zillion times
  faster than the TikZ backend.

∙ Multiple gantt charts per document are allowed.

Marco


___________________________________________________________________________________
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] 5+ messages in thread

* Re: Beta breaks gantt module
  2012-03-12  7:55   ` Hans Hagen
@ 2012-03-12 22:21     ` Aditya Mahajan
  0 siblings, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2012-03-12 22:21 UTC (permalink / raw)
  To: Hans Hagen; +Cc: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 453 bytes --]

On Mon, 12 Mar 2012, Hans Hagen wrote:

> On 12-3-2012 04:25, Aditya Mahajan wrote:
>> On Sat, 10 Mar 2012, Marco wrote:
>> 
>>> Somewhere between the beta 2012.03.10 13:15 and 2011.11.29 23:11 the
>>> gantt module got broken. Example:
>
> can you test with replacing \def with \edef in
>
> \strc_modules_use
>
> in file-mod.mkvi

Yes, replacing \def with \edef works. I tested with the attached patch 
(although I did not do extensive testing).

Aditya

[-- Attachment #2: Type: TEXT/plain, Size: 1322 bytes --]

--- /tmp/file-mod.mkvi	2012-03-12 18:16:10.025599120 -0400
+++ /opt/context-minimals/texmf-context/tex/context/base/file-mod.mkvi	2012-03-12 18:19:52.785589463 -0400
@@ -74,20 +74,20 @@
    \pushmacro\currentmodulecategory
    \pushmacro\currentmoduleparameters
    \ifthirdargument
-     \def\currentmodulecategory  {#category}%
-     \def\currentmodule          {#name}%
+     \edef\currentmodulecategory  {#category}%
+     \edef\currentmodule          {#name}%
      \def\currentmoduleparameters{#parameters}%
    \else\ifsecondargument
      \doifassignmentelse{#name}
        {\let\currentmodulecategory  \empty
-        \def\currentmodule          {#category}%
+        \edef\currentmodule          {#category}%
         \def\currentmoduleparameters{#name}}
-       {\def\currentmodulecategory  {#category}%
-        \def\currentmodule          {#name}%
+       {\edef\currentmodulecategory  {#category}%
+        \edef\currentmodule          {#name}%
         \let\currentmoduleparameters\empty}%
    \else
      \let\currentmodulecategory  \empty
-     \def\currentmodule          {#category}%
+     \edef\currentmodule          {#category}%
      \let\currentmoduleparameters\empty
    \fi\fi
    \processcommacommand[\currentmodule]{\strc_modules_use_indeed\currentmodulecategory}%

[-- Attachment #3: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2012-03-12 22:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-10 20:22 Beta breaks gantt module Marco
2012-03-12  3:25 ` Aditya Mahajan
2012-03-12  7:55   ` Hans Hagen
2012-03-12 22:21     ` Aditya Mahajan
2012-03-12 10:08   ` Marco

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