Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-30 Thread Michael Joyner
On Thu, Sep 29, 2011 at 8:43 PM, Wilfred van Rooijen
wvanrooi...@yahoo.comwrote:

 But the real question remains: does the topic starter really produce a file
 with 65000 pages? Or is there some other error at play? The topic starter
 never mentioned how large his large tex file is



My tex file is 885 megs in size. :)





 --
 Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex




--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-30 Thread Petr Tomasek
On Fri, Sep 30, 2011 at 09:13:03AM -0400, Michael Joyner wrote:
 On Thu, Sep 29, 2011 at 8:43 PM, Wilfred van Rooijen
 wvanrooi...@yahoo.comwrote:
 
  But the real question remains: does the topic starter really produce a file
  with 65000 pages? Or is there some other error at play? The topic starter
  never mentioned how large his large tex file is
 
 My tex file is 885 megs in size. :)

Did you write it all by yourself? :-P

-- 
Petr Tomasek http://www.etf.cuni.cz/~tomasek
Jabber: but...@jabbim.cz


EA 355:001  DU DU DU DU
EA 355:002  TU TU TU TU
EA 355:003  NU NU NU NU NU NU NU
EA 355:004  NA NA NA NA NA





--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-30 Thread Michael Joyner
On Fri, Sep 30, 2011 at 9:16 AM, Petr Tomasek toma...@etf.cuni.cz wrote:

 On Fri, Sep 30, 2011 at 09:13:03AM -0400, Michael Joyner wrote:
  On Thu, Sep 29, 2011 at 8:43 PM, Wilfred van Rooijen
  wvanrooi...@yahoo.comwrote:
 
   But the real question remains: does the topic starter really produce a
 file
   with 65000 pages? Or is there some other error at play? The topic
 starter
   never mentioned how large his large tex file is
 
  My tex file is 885 megs in size. :)

 Did you write it all by yourself? :-P


Nope. :-P But my assembler of matching requested topic articles from our
DB did...



 --
 Petr Tomasek http://www.etf.cuni.cz/~tomasek
 Jabber: but...@jabbim.cz

 
 EA 355:001  DU DU DU DU
 EA 355:002  TU TU TU TU
 EA 355:003  NU NU NU NU NU NU NU
 EA 355:004  NA NA NA NA NA
 




 --
 Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-30 Thread Michael Joyner
On Thu, Sep 29, 2011 at 4:01 PM, Michael Joyner mich...@newsrx.com wrote:



 On Thu, Sep 29, 2011 at 3:17 PM, Arno Trautmann arno.trautm...@gmx.dewrote:

 Michael Joyner wrote:

 HELP!

 I am getting this on a super-large tex file:

 ** ERROR ** Page number 65536l too large!

 I tried googling it, but did not find any references to this error. :(


 Maybe if you try to also report what you did, we could have a chance to
 help you …


 I have a large tex file: 'x.pdf'

 I am thinking it might be PDF related, as I have PDF contents, etc, being
 created, so I am trying at the moment: xelatex -interaction=batchmode
 -no-pdf x.tex


The xdv file was successfully written:


=
xelatex summary report
=

Here is how much of TeX's memory you used:
 19483 strings out of 494146
 322607 string characters out of 3152167
 534179 words of memory out of 300
 22463 multiletter control sequences out of 15000+20
 8984 words of font info for 66 fonts, out of 300 for 9000
 1018 hyphenation exceptions out of 8191
 38i,12n,84p,23992b,414s stack positions out of
5000i,500n,1p,20b,5s

Output written on x.xdv (352956 pages, 1612102060 bytes).


=
resulting files and sizes
=

$ ls -lh
total 6.4G
-rw-r--r-- 1 apache apache  22M Sep 30 10:18 x.aux
-rw-r--r-- 1 apache apache0 Sep 30 09:16 x.idx
-rw-r--r-- 1 apache apache  33M Sep 30 10:19 x.log
-rw-r--r-- 1 apache apache 1.6K Sep 30 10:19 x.out
-rw-r--r-- 1 apache apache 858M Sep 30 09:16 x.tex
-rw-r--r-- 1 apache apache  922 Sep 30 10:19 x.toc
-rw-r--r-- 1 apache apache 5.6G Sep 30 10:19 x.xdv
bash-3.2$

=
location of xdvipdfmx
=
which xdvipdfmx
/texlive/2011/bin/x86_64-linux/xdvipdfmx

=
results of xdvipdfmx
=

bash-3.2$ xdvipdfmx x.xdv
Found 82 where post_post opcode should be

** ERROR ** Something is wrong. Are you sure this is a DVI file?

Output file removed.

=
initial contents x.xdv
=

bash-3.2$ strings x.xdv | head -n 5
 XeTeX output 2011.09.30:0916
+pdf:pagesize width 433.62pt height 650.43pt
qpdf:docinfo/Title()/Subject()/Creator(LaTeX with hyperref
package)/Author()/Producer(XeTeX 0.9997)/Keywords()
3pdf:dest (page.i) [@thispage /XYZ @xpos @ypos null]
color push gray 0
bash-3.2$






 cheers
 Arno


 --**
 Subscriptions, Archive, and List information, etc.:
  
 http://tug.org/mailman/**listinfo/xetexhttp://tug.org/mailman/listinfo/xetex





--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-29 Thread Arno Trautmann

Michael Joyner wrote:

HELP!

I am getting this on a super-large tex file:

** ERROR ** Page number 65536l too large!

I tried googling it, but did not find any references to this error. :(


Maybe if you try to also report what you did, we could have a chance to 
help you …


cheers
Arno


--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-29 Thread Petr Tomasek
On Thu, Sep 29, 2011 at 01:59:18PM -0400, Michael Joyner wrote:
 HELP!
 
 I am getting this on a super-large tex file:
 
 ** ERROR ** Page number 65536l too large!
 
 I tried googling it, but did not find any references to this error. :(
 
 -Mike

Does it happend with XeTeX only?

P.

-- 
Petr Tomasek http://www.etf.cuni.cz/~tomasek
Jabber: but...@jabbim.cz


EA 355:001  DU DU DU DU
EA 355:002  TU TU TU TU
EA 355:003  NU NU NU NU NU NU NU
EA 355:004  NA NA NA NA NA





--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-29 Thread Jonathan Kew
On 29 Sep 2011, at 21:01, Michael Joyner wrote:

 
 
 On Thu, Sep 29, 2011 at 3:17 PM, Arno Trautmann arno.trautm...@gmx.de wrote:
 Michael Joyner wrote:
 HELP!
 
 I am getting this on a super-large tex file:
 
 ** ERROR ** Page number 65536l too large!
 
 I tried googling it, but did not find any references to this error. :(
 
 Maybe if you try to also report what you did, we could have a chance to help 
 you …
 
 I have a large tex file: 'x.pdf'
 This is the command I ran: xelatex -interaction=batchmode -halt-on-error x.tex
 
 I am thinking it might be PDF related, as I have PDF contents, etc, being 
 created, so I am trying at the moment: xelatex -interaction=batchmode -no-pdf 
 x.tex

See my reply of a few minutes ago. This will probably work to create a .xdv 
file, but you will then be unable to convert this to PDF, so it won't really do 
much good!

JK




--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-29 Thread Martin Schröder
2011/9/29 Jonathan Kew jfkth...@googlemail.com:
 Clearly Knuth didn't think there was any need for such large numbers
 of pages in a single file.

See TeX error #913:
* 28 December 1990
R913. Avoid range check when there are 65536 or more pages (Eberhard Mattes).

 It's possible (though I haven't tried) that pdftex in PDF output
 mode would be able to generate more pages, as this avoids the DVI
 path altogether.

pdfTeX and luaTeX shouldn't have any problems up to some millions of
pages; PDF is limited to 8m pages (number of indirect objects) with
32 bit readers.

Best
   Martin


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-29 Thread Jonathan Kew
On 29 Sep 2011, at 18:59, Michael Joyner wrote:

 HELP!
 
 I am getting this on a super-large tex file:
 
 ** ERROR ** Page number 65536l too large!
 
 I tried googling it, but did not find any references to this error. :(

This error is reported by xdvipdfmx (the PDF-generating output driver xetex 
uses) when the output exceeds 65535 pages; see

  
http://cvs.ktug.or.kr/viewcvs/dvipdfmx/src/pdfdoc.c?revision=1.76view=markup#l356

for confirmation of this (it comes from DVIPDFMx, the project xdvipdfmx was 
based on).

Note that the DVI file format postamble includes a two-byte field for the total 
number of pages present, so if you try to put more than 64K pages in a DVI 
file, the postamble (at least) will necessarily be incorrect, even if the file 
is otherwise well-formed. Clearly Knuth didn't think there was any need for 
such large numbers of pages in a single file.

It's possible (though I haven't tried) that pdftex in PDF output mode would be 
able to generate more pages, as this avoids the DVI path altogether.

Otherwise, the solution is to split the job up into chunks of less than 64K 
pages each.

JK




--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-29 Thread Michael Joyner
On Thu, Sep 29, 2011 at 3:17 PM, Arno Trautmann arno.trautm...@gmx.dewrote:

 Michael Joyner wrote:

 HELP!

 I am getting this on a super-large tex file:

 ** ERROR ** Page number 65536l too large!

 I tried googling it, but did not find any references to this error. :(


 Maybe if you try to also report what you did, we could have a chance to
 help you …


I have a large tex file: 'x.pdf'
This is the command I ran: xelatex -interaction=batchmode -halt-on-error
x.tex

I am thinking it might be PDF related, as I have PDF contents, etc, being
created, so I am trying at the moment: xelatex -interaction=batchmode
-no-pdf x.tex



 cheers
 Arno


 --**
 Subscriptions, Archive, and List information, etc.:
  
 http://tug.org/mailman/**listinfo/xetexhttp://tug.org/mailman/listinfo/xetex



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-29 Thread Wilfred van Rooijen
But the real question remains: does the topic starter really produce a file 
with 65000 pages? Or is there some other error at play? The topic starter never 
mentioned how large his large tex file is

Wilfred




From: Martin Schröder mar...@oneiros.de
To: Unicode-based TeX for Mac OS X and other platforms xetex@tug.org
Sent: Friday, September 30, 2011 5:13 AM
Subject: Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011/9/29 Jonathan Kew jfkth...@googlemail.com:
 Clearly Knuth didn't think there was any need for such large numbers
 of pages in a single file.

See TeX error #913:
* 28 December 1990
R913. Avoid range check when there are 65536 or more pages (Eberhard Mattes).

 It's possible (though I haven't tried) that pdftex in PDF output
 mode would be able to generate more pages, as this avoids the DVI
 path altogether.

pdfTeX and luaTeX shouldn't have any problems up to some millions of
pages; PDF is limited to 8m pages (number of indirect objects) with
32 bit readers.

Best
   Martin


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-29 Thread Heiko Oberdiek
On Thu, Sep 29, 2011 at 09:00:21PM +0100, Jonathan Kew wrote:

 Note that the DVI file format postamble includes a two-byte field for the
 total number of pages present, so if you try to put more than 64K pages in
 a DVI file, the postamble (at least) will necessarily be incorrect, even
 if the file is otherwise well-formed.

TeX or pdfTeX generate such a file (I have tried a file with 7 pages).
But the DVI drivers behave different:
* dvitype is ok, it reports
  | there are really 7 pages, not 4464!
  and lists all pages.
* dvi2tty prints all 7 pages.
* dvips only prints 4464 pages, but reports in the header:
  | %%Pages: 7
* dvipdfmx only prints 4464 pages.
* XeTeX aborts with
  | ** ERROR ** Page number 70001l too large!

Perhaps dvips could be fixed, it already knows the correct
number of pages?

And if someone wants to play:

% iniTeX
\catcode`\{=1 %
\catcode`\}=2 %
\catcode`\#=6 %
\countdef\C=0 %
\C=1 %
\countdef\X=255 %
\X=7 %
\chardef\I=1 %
\let\A=\advance
\let\S=\shipout
\let\H=\hbox
\let\N=\ifnum
\let\F=\fi
\def\P{%
  \S\H{}%
  \A\C\I
  \N\C\X
\let\P\relax
  \F
  \P
}
\P
\end

Yours sincerely
  Heiko Oberdiek


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] HELP! ** ERROR ** Page number 65536l too large!

2011-09-29 Thread Akira Kakuto
Dear Heiko,

 * dvitype is ok, it reports
   | there are really 7 pages, not 4464!

In this case total_pages may be written in the dvi as 4464.

I find in tex.web:

@ At the end of the program, we must finish things off by writing the
post\-amble. If |total_pages=0|, the \.{DVI} file was never opened.
If |total_pages=65536|, the \.{DVI} file will lie. And if
|max_push=65536|, the user deserves whatever chaos might ensue.

Best,
Akira



--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex