3

I have the following code

\documentclass{article}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{gfsartemisia-euler}
\usepackage[T1]{fontenc}
\begin{document}
$$\lim_{t\to a}{f(t)}$$
\end{document}

and the result is

I found that removing \usepackage[spanish]{babel} the problem is solved, but I need to write in spanish and I like the font. are there some code like \usetikzlibrary{babel} which allows to use tikz and spanish together (\usetikzlibrary{babel} allows to use <-> in draws with spanish babel)

  • 2
    May be \unaccentedoperators after the babel package? – Manuel May 16 '15 at 14:26
  • @Manuel genius!! it works!, LaTeX has multiple and unknowed commands for everything. – Luis Felipe May 16 '15 at 14:30
  • Don't use $$, see Why is \[ … \] preferable to $$? – egreg May 16 '15 at 14:50
5

If you move \usepackage[T1]{fontenc} to before \usepackage[spanish]{babel} you get something that looks sort of correct, is this what you want?

Spanish

MWE:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}
\usepackage{gfsartemisia-euler}
\usepackage{amsmath}
\begin{document}
$$\lim_{t\to a}{f(t)}$$
\end{document}
|improve this answer|||||
  • Question: What does ´\usepackage[T1]{fontenc}´? because in Font Catalogue : tug.dk/FontCatalogue/gfsartemisia-euler says add both, – Luis Felipe May 16 '15 at 14:39
  • I think \usepackage[T1]{fontenc} provides more detailed fonts. This thread: (tex.stackexchange.com/questions/664/…) says that it adds more glyphs to the available characters. For example, without fontenc, the letter ö is created by putting dots over the letter o while with the package, there is an actual glyph for ö. Short story: the fonts are ugly without fontenc, according to my experience. – user49901 May 16 '15 at 14:52
2

Spanish babel offers a switch to have accented or unnacented operators (lim/lím, max/máx, min/mín, inf/ínf, mod/mód, etc.). It seems to work with the switch

\unaccentedoperators

In any case, I would wait for another answer because this just removes the addition made by babel leaving the original unaccented operators. There seems to be a problem with the accent char in a certain font loaded by gfsartemisia-euler, and it would be better to get an answer that does solve the problem (so you can have freedom between accented or unaccented operators).

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.