[XeTeX] changing \chaptername in polyglossia
Ulrike Fischer
news3 at nililand.de
Tue May 18 09:40:10 CEST 2010
Am Mon, 17 May 2010 22:41:07 +0100 schrieb António Fernandes:
> Hi Pablo,
>
> Why not to try:
>
> \documentclass[10pt]{book}
> \usepackage{polyglossia}
> \setdefaultlanguage{spanish}
> \AtBeginDocument{\renewcommand{\chaptername}{Tema}}
> \begin{document}
> \chapter{Hola}
> Este es un documento de prueba.
> \end{document}
>
> Apparently it solves your problem.
Not if you have two languages in your document:
\documentclass[10pt]{book}
\usepackage{polyglossia}
\setdefaultlanguage{spanish}
\setotherlanguage{english}
\AtBeginDocument{\renewcommand{\chaptername}{Tema}}
\begin{document}
\chapter{Hola}
Este es un documento de prueba.
\selectlanguage{english}
some english
\selectlanguage{spanish}
\chapter{Hola}
\end{document}
--
Ulrike Fischer
More information about the XeTeX
mailing list