logo

Spanish package for babel (TeX and LaTeX)

Desde 2009-01-09 está disponible la versión 5.0h de spanish que corrige un error con las comillas '' (kerning incorrecto) y añade las opciones es-noitemize y es-noenumerate, que pueden resultar de interés, sobre todo, para los usuarios de LyX. En 2009-05-11, la versión es 5.0i, que corrige un error con romanidx.sty y es-preindex:

Página de descarga de spanish 5.0i.

Para su instalación y para un archivo ZIP con estructura TDS (por ejemplo, TeXLive), véase más abajo.

For the latest news on spanish for babel see the Spanish forum. You may use it to report bugs, make suggestions, etc., too.

More about spanish for babel (in Spanish):

For the Spanish hyphenation patterns, see:

About

The style file for babel, provides lots of new features to allow a true Spanish look and feel regarding typography, following mainly the books on the subject by José Martínez de Sousa. Thus, you will have, amongst others:

  • Translations following the International TEX conventions, as well as date (with both "de" and "del" variants before the year).
  • Shorthands like << and >> (for guillemets), non breakable dashes, raised ¿ and ¡ (for all uppercase texts), etc.
  • Dots followed by digits replaced by decimal commas.
  • Spanish ordinals and abbreviations, with the preceptive dot included.
  • Accented functions: lím, máx, etc.
  • In case spanish is the main language, the layout is adjusted: enumerate, itemize, lists with ñ, footnotes with asteriscs, lowercase roman with small caps, etc.

Instalación

Si se tiene TeXLive, la forma más sencilla de instalarlo es descargando el siguiente paquete en un archivo ZIP con la estructura necesaria. Todo lo que hay que hacer es descomprimirlo en el lugar adecuado, que puede ser texmf-local (se conservan los archivos que instaló TeXLive) o texmf-dist (pedirá permiso para reemplazar los existentes). Por ejemplo, la siguiente imagen muestra cómo descomprimirlo en el directorio texmf-dist de mi sistema (la ruta exacta será distinta en otras computadoras; lo importante es que lo último sea el directorio texmf elegido):

Instalador de Windows

Descarga de spanish 5.0i (archivo ZIP para TeXLive) (incluye manual en español).

Si se quiere instalarlo a mano, hay que tener en cuenta lo que sigue.

El paquete viene en dos variantes: como dtx/ins o como archivos desempaquetados. La última contiene dos archivos (spanish.ldf and romanidx.sty) que reemplazan spanish.ldf and romanidx.tex (obsérvese el cambio de extensión de romanidx) en el directorio de babel (spanish.sty no cambia en absoluto y esbst se distribuirá como un paquete separado, pues no es estrictamente parte de babel), pero hay que señalar que se necesita el dtx si se quiere componer la referencia (que también está disponible como PDF).

The package comes in two flavours - as dtx/ins installer and as unpacked files. The latter contains two files (spanish.ldf and romanidx.sty) which replaces spanish.ldf and romanidx.tex (note romanidx has changed its extensión) under the babel directory (spanish.sty does not change at all and esbst will be distributed as a separate package, as strictly is not part of babel), but note you still need the dtx file if you want to typeset the reference (which is available as PDF file as well).

Bugs and known problems

El contenido de label en enumitem no admite ordenes frágiles. Pero spanish 4 añade una: \es@listquot. Está corregido en la versión 5.0, pero una solución para la 4 es añadir en el preámbulo tras cargar spanish:

\makeatletter
\let\savees@listquot\es@listquot
\def\es@listquot{\protect\savees@listquot}
\makeatletter

Por un problema en dcolumn (véase LaTeX bug report tools/3759 (dcolumn conflict with icomma package), el punto decimal puede fallar en ese paquete. Una solución rápida es:

\usepackage[spanish]{babel}
\decimalpoint
\usepackage{dcolumn}
\newcolumntype{.}{D{.}{\esperiod}{-1}}
\makeatletter
\addto\shorthandsspanish{\let\esperiod\es@period@code}
\makeatother
\begin{document}
etc.

A present?
The packages listed here are free - you don't have to pay anything to use them. However, if you have found them useful enough as to give me a little present, I would be very grateful. Just go to the following wish list at Amazon.

And more...
division.pdf. On Spanish hyphenation, in Spanish (PDF, 129k).

Portadadot
TEX / LaTEX / XMLdot
Packages (English)dot
Titlesecdot
Enumitemdot
Spanishdot
Tensinddot
Accentsdot
Memdot
Glossdot
Esindexdot
Estilo y tipografíadot
Contact / Contactodot
Librodot
Área personaldot

Google
Buscar en este sitio:

Compartir en del.icio.us Compartir en digg Compartir en Googlebookmark Compartir en Yahoo Compartir en facebook Compartir en meneame

Valid XHTML 1.0 Strict
Wish List

Made with TEX on
5/2/2010

© 2000-2010
Javier Bezos
All Rights Reserved