Re: Change math Language - critical
On 2012-05-24, Ignacio García wrote: > Rudi Gaelzer gmail.com> writes: >> Ignacio, the best solution is to define a math macro: ... > Well, that's right, BUT _if the document language is Spanish_ none of > that is needed, since babel-spanish does it automatically for you. You > writes simply "\sen" (or "senh", "\tg"...) inside the ecuation. That's > all you have to do. (The set of math predefined functions in Spanish is > available in the Spanish version of the manual "Math", sec. 15.1) However, if you want \sen to look like \sin in the LyX math box (without instant preview), a "dummy" math-macro (i.e. in a comment, note or branch) is your friend. Günter
Re: Change math Language - critical
Rudi Gaelzer gmail.com> writes: > > 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. Well, that's right, BUT _if the document language is Spanish_ none of that is needed, since babel-spanish does it automatically for you. You writes simply "\sen" (or "senh", "\tg"...) inside the ecuation. That's all you have to do. (The set of math predefined functions in Spanish is available in the Spanish version of the manual "Math", sec. 15.1) Thanks for your input Ignacio
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 > > 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
Re: Change math Language - critical
On 2012-05-21, Julio Rojas wrote: > Well Ignacio, If I create an Spanish document, and use "\sin x", Lyx > (on screen) renders it as "sin x". If I use "\sen x", Lyx will render > it (again, on screen) as "\sen x". What I would like is that by using > localization (Spanish), Lyx recognizes that "\sin x" should be > rendered as "sen x". The thing is that I don't know if this a > desirable behavior. > Again, should LaTeX do it automatically? Meaning, in the PDF. This depends. If you have formulas that you use in both, English (or German) and Spanish documents (vie file inclusion or drag and drop) and want the "localized" function names in Spanish, it makes sense to re-define \sin to be rendered as "sen" in the Spanish document. If you only write in Spanish, it is a matter of personal taste whether to write \sin or \sen in the source. You can re-define \sin in the preamble: \renewcommand{\sin}{\sen} With LyX, you can use math-macros to define Spanish function names that render as sen (etc) in LyX also without instant preview. Günter
Re: Change math Language - critical
Well Ignacio, If I create an Spanish document, and use "\sin x", Lyx (on screen) renders it as "sin x". If I use "\sen x", Lyx will render it (again, on screen) as "\sen x". What I would like is that by using localization (Spanish), Lyx recognizes that "\sin x" should be rendered as "sen x". The thing is that I don't know if this a desirable behavior. Again, should LaTeX do it automatically? Meaning, in the PDF. Regards. - Julio Rojas jcredbe...@gmail.com On Sat, May 19, 2012 at 1:01 PM, Ignacio García wrote: > > > 2012/5/19 Julio Rojas >> >> 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 > > > Sorry, I do not understand... What do you mean? > LyX doesn't show the function name "sen" in the math toolbar button, > but otherwise, if the document language is Spanish you can use the latex > command "\sen" right away, and then spanish-babel-latex makes the thing > automatically: in the LyX window the "sen" is shown (if Instant Previw is > on) > and also in PDF output > > Ignacio García > >> >> >> On Sat, May 19, 2012 at 8:48 AM, Ignacio García >> 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. > >
Re: Change math Language - critical
2012/5/19 Julio Rojas > 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 > Sorry, I do not understand... What do you mean? LyX doesn't show the function name "sen" in the math toolbar button, but otherwise, if the document language is Spanish you can use the latex command "\sen" right away, and then spanish-babel-latex makes the thing automatically: in the LyX window the "sen" is shown (if Instant Previw is on) and also in PDF output Ignacio García > > On Sat, May 19, 2012 at 8:48 AM, Ignacio García > 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. >
Re: Change math Language - critical
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 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.
Re: Change math Language - critical
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.
Re: Change math Language - critical
On 2012-05-18, Scott Kostyshak wrote: > From: Kenedy Torcatt [yde...@gmail.com] > Sent: Friday, May 18, 2012 3:30 AM >>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. > Put this in your preamble: > \DeclareMathOperator*{\espsin}{sen} > (also make sure that you are using the amsmath package) Then when you > want to input "sen" in your math inset just put \espsin. Note that you > can choose the name "espsin". E.g. I would use the name \sen for the macro: in the preamble \DeclareMathOperator*{\sen}{sen} and in LyX f(x) = \sen(x). If you do not like the red \sen in the math box, you can also define a dummy math macro (in an inactive branch or a comment). Günter
Re: Change math Language - critical
On 05/18/2012 03:30 AM, 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". Hmm. TeX itself does not seem to recognize $\sen(x)$ -- at least mine doesn't. I've read some Spanish math papers, and have not seen that name for that function. You could define a macro giving an (upright) sen(x) which would function as well as $\sin(x)$. How many different names are involved? What do you call $\log(x)$ in Spanish? -- David L. Johnson If all economists were laid end to end, they would not reach a conclusion. -- George Bernard Shaw
RE: Change math Language - critical
From: Kenedy Torcatt [yde...@gmail.com] Sent: Friday, May 18, 2012 3:30 AM >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. Put this in your preamble: \DeclareMathOperator*{\espsin}{sen} (also make sure that you are using the amsmath package) Then when you want to input "sen" in your math inset just put \espsin. Note that you can choose the name "espsin". Scott