# Re: Change math Language - critical

Ignacio, the best solution is to define a math macro: go to the beginning of
your text and click on
Insert -> Math -> Macro
An ERT box will appear, where you can (re)define your macro.  In place of
\newmacroname type \sen.  In the TeX box type:
\mathop \mathrm{sen}\nolimits
In the LyX box simply type:
\mathrm{sen}

That's all, you'll be able to see the coveted "sen" symbol in instant preview
and the output (dvi, eps, pdf) will also be correctly rendered.

I do that all the time with my texts in Portuguese for mathematical symbols
such as sen, senh, sech, cosech, cotan, cosec, etc.

If you want to use the macros in other docs, save them in, say,
Spanish-macros.lyx and then simply do Insert -> File -> Child Document... to
input (not include) the macros in any other doc.

On Saturday 19 May 2012 09:45:31 Julio Rojas wrote:
> What a bummer...
>
> One question. Shouldn't it be better that Lyx recognizes localization
> and instead of using "\sin" uses "\sen"? Is it even possible or
> desirably?
>
> The really good question is why, oh why, LaTeX doesn't do it
> automatically so Lyx has to do it only on-screen.
>
> Regards.
> -------------------------------------------------
> Julio Rojas
> jcredbe...@gmail.com
>
>
> On Sat, May 19, 2012 at 8:48 AM, Ignacio García
>
> <ignacio.gmora...@gmail.com> wrote:
> > On fry 8 May 2012 Kenedy Torcatt wrote
> >
> >> Hey guys... I'm working with lyx in spanish, The mathematical operator
> >> like sin are showing in english "sin". I need this math operators in
> >> spanish, I mean "sen".
> >> How can I do this with lyx? I'm using latest version 2.0.3.
> >>
> >> Thankyou in advance.
> >>
> >> P.S: I already set the language in spanish, everything else is fine
> >
> > (in spanish).
> >
> > The function 'sen' is predefined in the latex package babel-spanish,
> > so you write in math mode the command \sen and you get sen, that's all
> > E.g., in math mode insert
> > \sen space a
> >
> >
> > and the output is
> > sen a
> > This command are not available in the math panels
> >
> > There is info about the functions predefined in Spanish (sen, arcsen,
> > tg,...)
> > in the section 15.1 of the spanish version manual 'Math' (Ecuaciones)
> >
> >
> >
> > I.G.
--
Rudi Gaelzer
Department of Physics
Institute of Physics and Mathematics
Federal University of Pelotas
BRAZIL
Registered linux user # 153741