[XeTeX] default fonts for text and math in xelatex (ubuntu, texlive 2011)

2011-09-29 Thread peter knezel
Hello all,

what is the default font setting for text and for math in xelatex?
what is loaded if no font is defined before \begin{document}?

I would like to change the default math font to monospaced in ubuntu (using
texlive 2011)  then change it back.
Thanks for the help in advance.

peter


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


Re: [XeTeX] default fonts for text and math in xelatex (ubuntu, texlive 2011)

2011-09-29 Thread Peter Dyballa

Am 29.09.2011 um 12:34 schrieb peter knezel:

 what is the default font setting for text and for math in xelatex?

For text it's Latin Modern.

You can check the fonts used with the pdffonts utility (from xpdf package). 
With given \pagestyle{empty} you can exactly determine which fonts are used for 
which kind of text or which kind of mathematical expression. Since XeTeX can 
use TFM files I am pretty sure that it simply uses the usual Computer Modern 
fonts.

--
Greetings

  Pete

A morning without coffee is like something without something else.




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


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

2011-09-29 Thread Michael Joyner
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


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


Re: [XeTeX] default fonts for text and math in xelatex (ubuntu, texlive 2011)

2011-09-29 Thread peter knezel
Hmm, I have tried a short xe.tex file

===

\documentclass{article}

\usepackage[math]{mathspec}

\newfontfamily\mymono{DejaVu Sans Mono}

\newfontfamily\mymathmono{DejaVu Sans Mono}

\begin{document}

{\mymono this is with mono} changed {\mymathmono $E=mc^2$} back as normal

\end{document}
===

for which xe.pdf is created

Using:
pdffonts -f 1 xe.pdf
name type  emb sub uni object ID
 - --- --- --- -
MQBWCL+DejaVuSansMonoCID TrueType  yes yes yes  5  0
AEDUWP+LMRoman10-Regular-Identity-H  CID Type 0C   yes yes yes  7  0
FETFUV+CMMI10Type 1C   yes yes no   8  0
ZYNKTW+CMR10 Type 1C   yes yes no   9  0
LKHLTI+CMR7  Type 1C   yes yes no  10  0

which really shows what fonts are used. As far as I understood well, words
changed, back as normal are set with  LMRoman10-Regular-Identity-H
(Latin Modern as you wrote). \mymono changed this is with mono to DejaVu
Sans Mono.
But what font is used for $E=mc^2$? Is it CMMI10,CMR10 and CMR7? Where can
I get more info about these fonts?
Why isn't the the equation written in DejaVu Sans Mono as defined with
\mymathmono?

Kind regards,

Peter

On 29 September 2011 16:37, Peter Dyballa peter_dyba...@web.de wrote:


 Am 29.09.2011 um 12:34 schrieb peter knezel:

  what is the default font setting for text and for math in xelatex?

 For text it's Latin Modern.

 You can check the fonts used with the pdffonts utility (from xpdf package).
 With given \pagestyle{empty} you can exactly determine which fonts are used
 for which kind of text or which kind of mathematical expression. Since XeTeX
 can use TFM files I am pretty sure that it simply uses the usual Computer
 Modern fonts.

 --
 Greetings

  Pete

 A morning without coffee is like something without something else.




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