ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \startfootnote\stopfootnote bug
@ 2012-10-19  9:30 Alan BRASLAU
  2012-10-19 14:57 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Alan BRASLAU @ 2012-10-19  9:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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     %D        version=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

<inserted text> 
                \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
___________________________________________________________________________________


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

* Re: \startfootnote\stopfootnote bug
  2012-10-19  9:30 \startfootnote\stopfootnote bug Alan BRASLAU
@ 2012-10-19 14:57 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2012-10-19 14:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


Am 19.10.2012 um 11:30 schrieb Alan BRASLAU <alan.braslau@cea.fr>:

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


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

end of thread, other threads:[~2012-10-19 14:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-19  9:30 \startfootnote\stopfootnote bug Alan BRASLAU
2012-10-19 14:57 ` Wolfgang Schuster

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