[tex-live] Document compile problem (TeX Live 2010.1, Arch Linux x64)

Vladimir Lomov lomov.vl at gmail.com
Wed Oct 13 08:25:20 CEST 2010


Hi Alexander.

** Alexander [2010-10-13 10:58:41 +0900]:

> TeX Live 2010.1, Arch Linux x64
Please, keep in mind that this mailing list intended for OFFICIAL
distribution of TeX Live and related with that distribution questions.

[...]

> my document:
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> \documentclass[
>     unicode,
>     12pt,
>     oneside,
>     russian,
>     a4paper,
>     draft,
> ]{scrartcl}
> 
> \KOMAoptions{DIV=11}
> \usepackage[cm-default]{fontspec}
> \defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text}
> \usepackage{xunicode, xltxtra}
> 
> \usepackage{polyglossia}
> \setdefaultlanguage[spelling=modern]{russian}
> \setotherlanguage{english}
> \setmainfont{PT Sans}
> \setsansfont{PT Sans Caption}
> \setmonofont{DejaVu Sans Mono}
> 
> \usepackage{color}
> 
> \definecolor{SteelBlue}{rgb}{0.274509803922, 0.509803921569, 0.705882352941}
> \definecolor{ForestGreen}{rgb}{0.133333333333, 0.545098039216, 0.133333333333}
> 
> \definecolor{Grey10}{rgb}{0.1, 0.1, 0.1}
> \definecolor{Grey20}{rgb}{0.2, 0.2, 0.2}
> \definecolor{Grey30}{rgb}{0.3, 0.3, 0.3}
> \definecolor{Grey40}{rgb}{0.4, 0.4, 0.4}
> \definecolor{Grey50}{rgb}{0.5, 0.5, 0.5}
> \definecolor{Grey60}{rgb}{0.6, 0.6, 0.6}
> \definecolor{Grey70}{rgb}{0.7, 0.7, 0.7}
> \definecolor{Grey80}{rgb}{0.8, 0.8, 0.8}
> \definecolor{Grey90}{rgb}{0.9, 0.9, 0.9}
> 
> \usepackage[
>     colorlinks=true,
>     linkcolor=ForestGreen,
>     citecolor=ForestGreen,
>     urlcolor=SteelBlue,
>     xetex,
>     unicode=true,
>     bookmarks=false,
>     final=true,
> ]{hyperref}
> 
> \parindent=1.7em
> \usepackage{indentfirst}
> \usepackage[shortcuts]{extdash}
> \frenchspacing
> \exhyphenpenalty=10000
> \clubpenalty=10000
> \widowpenalty=10000
> \tolerance=2000
> \righthyphenmin=2
> \setcounter{tocdepth}{2}
> \renewcommand{\labelitemi}{---}
> 
> \begin{document}
> 
> \title{Заголовок}
> \author{Автор}
> \date{28 апреля 2010}
> \maketitle{}
> 
> Слово.
> 
> \end{document}
Very interesting.

I could compile you document only if I move font settings from where
they in your document to after fontspec package insertion. More simpler

\usepackage{polyglossia}
\setmainfont{PT Sans}
\setsansfont{PT Sans Caption}
\setmonofont{DejaVu Sans Mono}
\defaultfontfeatures{Scale=MatchLowercase, Mapping=tex-text}
\setdefaultlanguage[spelling=modern]{russian}
\setotherlanguage{english}

and don't set explicitly 'xetex' for hyperref. It should autodetect it.
And please note that with fontspec v2 the 'cm-default' option is obsolete.
(May be this is the reason of you problem, see below.)


== My understanding of the problem ==

As I undestand the cause of the problem is that xkeyval package exhausts
the available memory, and even increasing it wouldn't help.

Some investigation:
1. If the line '\defaultfontfeatures' would be commented then the
document compiles fine.
2. If the lines with language setting (default and other) are commented
the document compiles fine.
3. If one add font settings immediatly after the fontspec (or
polyglossia) package the the rest commands the document compiles fine.

I'm not sure what the reason why xkeyval enter into loop that fontspec
and polyglossia are used in that sequence.

@Will or Khaled: is it make sense to set font features _without_
explicitly setting the fonts? In other words: is fontspec set some
'default' font to which that features could be applied?

If for the first question the answer is NO then should fontspec issue a
warning or (better) error when font is not set?

---
WBR, Vladimir Lomov

-- 
Don't feed the bats tonight.


More information about the tex-live mailing list