[XeTeX] Table of contents
Vladimir Lomov
lomov.vl at gmail.com
Fri Apr 30 12:25:51 CEST 2010
** José Carlos Santos [2010-04-30 11:09:30 +0100]:
> On 30-04-2010 10:22, Peter Dyballa wrote:
> >>But I think it is a flaw.
> >Which proof do you have?
> Are you requesting a proof of an opinion? That's rather strange, but
> I will do my best.
> Please consider again this file:
> \documentclass[10pt,a4paper]{book}
> \usepackage[frenchb]{babel}
> \usepackage{fontspec}
> \usepackage{xunicode}
> \usepackage{xltxtra}
> \begin{document}
> \frontmatter
> \tableofcontents
> \XeTeXinputencoding "cp1252"
> \XeTeXdefaultencoding "cp1252"
> \mainmatter\setcounter{secnumdepth}{2}
> \chapter{Général de Gaulle}
> Il était français.
> \end{document}
> When the \tableofcontents command is found, the line
> \XeTeXinputencoding "cp1252"
> was not read yet. Therefore, it seems to me (since XeTeX is
> unicode-based) that the file .toc is in unicode and therefore that
> XeLaTeX should have no problem with it.
Reconsider your thoughts from beginning but take into account that in
first run there is no TOC file.
--
The knowledge that makes us cherish innocence makes innocence unattainable.
-- Irving Howe
More information about the XeTeX
mailing list