ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \fullexpandtwoargsafter in MkIV
@ 2011-06-08 17:53 Aditya Mahajan
  2011-06-08 21:29 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan @ 2011-06-08 17:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

\fullexpandtwoargsafter is not defined in MkIV. As a result, \processpage 
does not work.

Minimal example:

\setuphead[section][before={\pagetype[section]}, page=yes]
\processpage[section][yes]

\starttext
\dorecurse{10}{\section {Test \recurselevel}
   \dorecurse{10}{\input knuth \endgraf}}
\stoptext

This works in MkII but not in MkIV.


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

* Re: \fullexpandtwoargsafter in MkIV
  2011-06-08 17:53 \fullexpandtwoargsafter in MkIV Aditya Mahajan
@ 2011-06-08 21:29 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-06-08 21:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 08.06.2011 um 19:53 schrieb Aditya Mahajan:

> \fullexpandtwoargsafter is not defined in MkIV. As a result, \processpage does not work.

The command isn’t needed in MkIV because you can use \normalexpanded:

\unprotected\def\dopagetype[#1]%
  {\edef\desoortpagina{#1}%
   \ifx\desoortpagina\empty \else
     \@EA\doglobal\@EA\addtocommalist\@EA{\desoortpagina}\currentpageselection
     \ifselectingpages
      %\fullexpandtwoargsafter\doifcommon\desoortpagina\pageselection
       \normalexpanded{\noexpand\doifcommon{\desoortpagina}{\pageselection}}%
         {\global\pageselectedtrue}%
     \fi
     \gdef\beforeshipout{\dobeforeshipout}%
     \gdef\aftershipout {\doaftershipout}%
   \fi}

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:[~2011-06-08 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08 17:53 \fullexpandtwoargsafter in MkIV Aditya Mahajan
2011-06-08 21:29 ` 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).