Seno latex español

The google search for the sequence above returns some disturbing webpages. Anyway, for future reference here is how to define a new operator to correctly print out “sen” instead of “sin” in LaTeX formulas:

\newcommand{\sen}{\operatorname{\sen}}

Spanish version of this entry: Buscar la secuencia que da título a esta entrada en google proporciona una serie de enlaces algo curiosos. En todo caso, y para que conste, el comando de arriba es la manera de definir en LaTeX un operador que muestre correctamente “sen” y no “sin” en fórmulas matemáticas.

Breaking news:

The babel package for Spanish (\usepackage[spanish]{babel}) does provide a \sen operator, even if \sin still exists, producing “sin”, which seems to be endorsed by some international standard. I also does other thins (like writing “lím” instead of “lim”). Oh well, the trick still applies for new user-defined operators. To turn all preexisting sins into sens, just put \renewcommand{\sin}{\sen} on your preamble.

Translation: Usando el paquete babel en español se define un operador \sen, y otros quedan redefinidos (p.e. “lím” y no “lim”). Todavía existe \sin, al parecer debe escribirse siempre así según algún estándar. Si da pereza cambiar todos los sin que ya hay en un documento por sens, simplemente vale con poner \renewcommand{\sin}{\sen} en el preámbulo.

 

2 thoughts on “Seno latex español

  1. I’m from Brazil, and I don’t speak spanish very well. So I’ll put it in english. There is a small mistake in the command. The correct way to write is

    “\newcommand{\sen}{\operatorname{sen}}”

    Note that there ins’t a backslash (“\”) in the second “sen”.

    Take care everybody!!! xD

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s