Re: [NTG-context] \startfootnote\stopfootnote bug

2012-10-19 Thread Wolfgang Schuster

Am 19.10.2012 um 11:30 schrieb Alan BRASLAU :

> Minimal example:
> 
> \starttext
> \input tufte
> \startfootnote
> \input ward
> \stopfootnote
> \stoptext

Replace in strc-not.mkvi for the following block the named arguments with 
numbered arguments.


This doesn’t work

\unexpanded\def\strc_notations_start#tag#stoptag%
  {\begingroup
   \edef\currentnote{#tag}%
   \strc_constructions_initialize{#tag}%
   \strc_notes_synchronize
   \ifnotesenabled
 
\strc_counters_increment_sub\currentconstructionnumber\currentconstructionlevel
   \fi
   \normalexpanded % not that efficient but also not that frequently used
 
{\def\noexpand\strc_pickup_yes[##1]##2\csname\e!stop#stoptag\endcsname{\strc_notations_command_yes[##1]{##2}}%
  \def\noexpand\strc_pickup_nop 
##1\csname\e!stop#stoptag\endcsname{\strc_notations_command_nop {##1}}}%
   \doifnextoptionalelse\strc_pickup_yes\strc_pickup_nop}

but this does

\unexpanded\def\strc_notations_start#1#2%
  {\begingroup
   \edef\currentnote{#1}%
   \strc_constructions_initialize{#1}%
   \strc_notes_synchronize
   \ifnotesenabled
 
\strc_counters_increment_sub\currentconstructionnumber\currentconstructionlevel
   \fi
   \normalexpanded % not that efficient but also not that frequently used
 
{\def\noexpand\strc_pickup_yes[##1]##2\csname\e!stop#2\endcsname{\strc_notations_command_yes[##1]{##2}}%
  \def\noexpand\strc_pickup_nop 
##1\csname\e!stop#2\endcsname{\strc_notations_command_nop {##1}}}%
   \doifnextoptionalelse\strc_pickup_yes\strc_pickup_nop}


Wolfgang
___
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
___


Re: [NTG-context] Current ConTeXt & wiki

2012-10-19 Thread Hans Hagen

On 19-10-2012 14:34, Sietse Brouwer wrote:

Hooray, we have a new stable!


an old new stable -)

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
___


Re: [NTG-context] Current ConTeXt & wiki

2012-10-19 Thread Sietse Brouwer
Hooray, we have a new stable!

1. Probably we should refresh the wiki's cache of  PNG
examples? Some examples contain commands like \contextversionnumber,
which are now stuck on 20111008 until their MD5 changes. Also,
examples might change (or break) when compiled with the new stable;
best to make that happen ourselves. Otherwise, a contributor might
make an unrelated change to the example, and the example will
unexpectedly change or break, and the contributor will think it's due
to what he/she did.

Patrick, do you know if forcing recompilation (immediate, or on page
load) is doable? Perhaps deleting a PNG wil force it to be regenerated
on page load? If it's non-trivial, I suppose we can leave it.

2. Improvement to the PHP script: make the text returned in case of
failed compilation contain a category tag like [[Category:Examples
with errors]], so that we can have a hidden maintenance category of
examples that don't compile. It would need to be added to the return
strings in the lines that match /return.*error/; if someone can send
me a current copy of wikitex.php I can take care of this. (Also, I'd
like to have a current copy so I can update
http://wiki.contextgarden.net/ConTeXt_wiki:Context_tag_implementation
)

3. On running the stable and/or the beta
Hans wrote:
> isn't the wiki running the beta then?

No, it runs the latest stable. It might be possible to have a beta
installation, too -- then users could specify  --
but we'd have to look at forcing recompilation once a week (or so)
when we update the beta. Depending on Patrick's answer on the
feasibility of forcing recompilation, I could have a look at
implementing this.

Cheers,
Sietse
___
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
___


[NTG-context] \startfootnote\stopfootnote bug

2012-10-19 Thread Alan BRASLAU
Minimal example:

\starttext
\input tufte
\startfootnote
\input ward
\stopfootnote
\stoptext

(works OK if one replaces \startfootnote \stopfootnote with \footnote{ })

Alan



Runaway argument?
\input ward \stopfootnote \stoptext 
! File ended while scanning use of \strc_pickup_nop.

system  > tex > error on line 4 in file 
/usr/local/context/beta/tex/texmf-context/tex/context/base/cont-yes.mkiv: File 
ended while scanning use of \strc_pickup_nop ...

 1 %D \module
 2 %D   [   file=cont-yes,
 3 %Dversion=2012.06.01,
 4 >>  %D  title=\CONTEXT\ Miscellaneous Macros,
 5 %D   subtitle=Startup Stub,
 6 %D author=Hans Hagen,
 7 %D   date=\currentdate,
 8 %D  copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
 9 %C
10 %C This module is part of the \CONTEXT\ macro||package and is
11 %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12 %C details.
13 
14 % At some point I will reconsider the \starttext .. \stoptext

 
\par 
l.4 }
 
}   context.finishjob()
  
\luat_start_lua_code_indeed ...ua \zerocount {#1}}
  
l.78 \stopluacode



Is this a scoop? Will we really eventually do away with \starttext \stoptext?
I can't admit the number of times where I mistakenly write \startext \stoptext
and of course generate an error!

Alan
___
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
___


Re: [NTG-context] Current ConTeXt & wiki

2012-10-19 Thread Taco Hoekwater

On 10/19/2012 10:26 AM, Mojca Miklavec wrote:

I completely forgot to remind you. :-) How about sometime this week,
would that be attemptable? Then we can also update the wiki's ConTeXt
engine.


Now, you should blame me. I made a backup of the old context version
(for Taco: current-backup) and updated to current (2012.05.30 11:26),
but it doesn't work at all. It says "pdfcrop failed",


Which it did, indeed. For future reference: the problem is that pdfcrop
needs
$ pdftex file.tex

to run (using pdftex.fmt). You also updated pdftex, so the existing
format was no longer valid.

I've fixed it by creating a new pdftex.fmt.

Best wishes,
Taco

___
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
___


Re: [NTG-context] Current ConTeXt & wiki

2012-10-19 Thread Hans Hagen

On 19-10-2012 10:26, Mojca Miklavec wrote:

On Thu, Oct 18, 2012 at 7:42 PM, Sietse Brouwer wrote:

Hello Malte, Mojca,

Malte wrote:

PS: The latest stable seems to still be 2011.05.18; any reason why that does 
not get updated?


This was discussed on the mailing list a while ago; Mojca gave a
rather complete answer.
http://www.mail-archive.com/ntg-context@ntg.nl/msg65226.html

@Mojca: you wrote, about promoting the version in TeX Live 2012 to
stable/current, the following:


I have no idea how Hans uploads current versions, but I could make a
zip, upload it to CTAN and make it available as current in minimals.
(If I forget to do that in less than a week, please remind me.)


I have uploaded it to CTAN (I didn't get confirmation email yet), Hans
has updated the version on Pragma and it already proliferated to the
distribution.


I completely forgot to remind you. :-) How about sometime this week,
would that be attemptable? Then we can also update the wiki's ConTeXt
engine.


Now, you should blame me. I made a backup of the old context version
(for Taco: current-backup) and updated to current (2012.05.30 11:26),
but it doesn't work at all. It says "pdfcrop failed", but my
impression is that not even the temporary folder to store the tex file
(and compile the pdf) gets generated. This issue needs Taco's help. (I
can easily revert to the old version by renaming the folder, but
sooner or later we need to upgrade the version.) I didn't touch wiki
sources at all.


isn't the wiki running the beta then?

-
  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
___


[NTG-context] Current ConTeXt & wiki

2012-10-19 Thread Mojca Miklavec
On Thu, Oct 18, 2012 at 7:42 PM, Sietse Brouwer wrote:
> Hello Malte, Mojca,
>
> Malte wrote:
>> PS: The latest stable seems to still be 2011.05.18; any reason why that does 
>> not get updated?
>
> This was discussed on the mailing list a while ago; Mojca gave a
> rather complete answer.
> http://www.mail-archive.com/ntg-context@ntg.nl/msg65226.html
>
> @Mojca: you wrote, about promoting the version in TeX Live 2012 to
> stable/current, the following:
>
>> I have no idea how Hans uploads current versions, but I could make a
>> zip, upload it to CTAN and make it available as current in minimals.
>> (If I forget to do that in less than a week, please remind me.)

I have uploaded it to CTAN (I didn't get confirmation email yet), Hans
has updated the version on Pragma and it already proliferated to the
distribution.

> I completely forgot to remind you. :-) How about sometime this week,
> would that be attemptable? Then we can also update the wiki's ConTeXt
> engine.

Now, you should blame me. I made a backup of the old context version
(for Taco: current-backup) and updated to current (2012.05.30 11:26),
but it doesn't work at all. It says "pdfcrop failed", but my
impression is that not even the temporary folder to store the tex file
(and compile the pdf) gets generated. This issue needs Taco's help. (I
can easily revert to the old version by renaming the folder, but
sooner or later we need to upgrade the version.) I didn't touch wiki
sources at all.

Mojca
___
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
___


Re: [NTG-context] Question about language

2012-10-19 Thread Hans Hagen

On 19-10-2012 06:36, Andres Conrado Montoya wrote:

Greetings! I want to contribute to the Spanish translation in the
lang-txt.lua
file.
How do I do that? Thanks!


just send me patches (best edit the file and send me that so that I can 
do a diff as labels are spread over the file)


-
  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
___


[NTG-context] Question about language

2012-10-19 Thread Andres Conrado Montoya
Greetings! I want to contribute to the Spanish translation in the
lang-txt.lua
file.
How do I do that? Thanks!
___
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
___