Re: [NTG-context] pageshifting

2011-03-18 Thread Wolfgang Schuster

Am 17.03.2011 um 16:24 schrieb Willi Egger:

 Hi,
 
 it looks as of there is a bug in page-imp in MKIV. The problem does not show 
 up in MKII.
 
 When using vertical and or horizontal pageshift lists while arranging an 
 error occurs:

page-imp.mkiv (missing \fi’s at the end of \ifcsname):

\def\dosetuppageshift[#1][#2][#3]% page|paper horizontal vertical
  {\ifthirdargument  % paper=arrange
-
\edef\hpageshifts{\ifcsname\??pt\v!horizontal:#2\endcsname\csname\??pt\v!horizontal:#2\endcsname}%
+
\edef\hpageshifts{\ifcsname\??pt\v!horizontal:#2\endcsname\csname\??pt\v!horizontal:#2\endcsname\fi}%
-\edef\vpageshifts{\ifcsname\??pt\v!vertical  
:#3\endcsname\csname\??pt\v!vertical  :#3\endcsname}%
+\edef\vpageshifts{\ifcsname\??pt\v!vertical  
:#3\endcsname\csname\??pt\v!vertical  :#3\endcsname\fi}%
 \doifelse{#1}\v!page 
{\let\shiftprintpagebox\shiftpagebox}{\let\shiftprintpagebox\gobbleoneargument}%
 
\doifelse{#1}\v!paper{\let\shiftpaperpagebox\shiftpagebox}{\let\shiftpaperpagebox\gobbleoneargument}%
   \else\ifsecondargument
 \doifinsetelse{#1}{\v!page,\v!paper}
   {\setuppageshift[#1][#2][#2]}
   {\setuppageshift[\v!page][#1][#2]}%
   \else\iffirstargument
 \setuppageshift[\v!page][#1][#1]%
   \fi\fi\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
___


Re: [NTG-context] pageshifting

2011-03-18 Thread Willi Egger
Hello Wolfgang,

that is what I thought. Thanks!

Still when I run first-setup.sh --context=beta I receive the version of 
2011-02-25.  with Luatex beta-0.65.0-2010121316 ?? - I heard though that Luatex 
.66 is available but why not in the minimals?

Willi
On 18 Mar 2011, at 11:00, Wolfgang Schuster wrote:

 
 Am 17.03.2011 um 16:24 schrieb Willi Egger:
 
 Hi,
 
 it looks as of there is a bug in page-imp in MKIV. The problem does not show 
 up in MKII.
 
 When using vertical and or horizontal pageshift lists while arranging an 
 error occurs:
 
 page-imp.mkiv (missing \fi’s at the end of \ifcsname):
 
 \def\dosetuppageshift[#1][#2][#3]% page|paper horizontal vertical
  {\ifthirdargument  % paper=arrange
 -
 \edef\hpageshifts{\ifcsname\??pt\v!horizontal:#2\endcsname\csname\??pt\v!horizontal:#2\endcsname}%
 +
 \edef\hpageshifts{\ifcsname\??pt\v!horizontal:#2\endcsname\csname\??pt\v!horizontal:#2\endcsname\fi}%
 -\edef\vpageshifts{\ifcsname\??pt\v!vertical  
 :#3\endcsname\csname\??pt\v!vertical  :#3\endcsname}%
 +\edef\vpageshifts{\ifcsname\??pt\v!vertical  
 :#3\endcsname\csname\??pt\v!vertical  :#3\endcsname\fi}%
 \doifelse{#1}\v!page 
 {\let\shiftprintpagebox\shiftpagebox}{\let\shiftprintpagebox\gobbleoneargument}%
 
 \doifelse{#1}\v!paper{\let\shiftpaperpagebox\shiftpagebox}{\let\shiftpaperpagebox\gobbleoneargument}%
   \else\ifsecondargument
 \doifinsetelse{#1}{\v!page,\v!paper}
   {\setuppageshift[#1][#2][#2]}
   {\setuppageshift[\v!page][#1][#2]}%
   \else\iffirstargument
 \setuppageshift[\v!page][#1][#1]%
   \fi\fi\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
 ___

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

2011-03-17 Thread Willi Egger
Hi,

it looks as of there is a bug in page-imp in MKIV. The problem does not show up 
in MKII.

When using vertical and or horizontal pageshift lists while arranging an error 
occurs:

! Incomplete \iffalse; all text was ignored after line 27.

system   tex  error on line 0 in file : Incomplete \iffalse; all text 
was ignored after line 27 ...

empty file

inserted text 
\fi 
...
! Emergency stop. 

Please refer to the attached minimal example

Willi

test-vertical-pageshifting.tex
Description: Binary data
___
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
___