AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Jannick Asmus wrote:

Paul Rubin wrote:

Jannick Asmus jannick.news at gmail.com writes:



If you want to use a macro to convert arbitrary symbols to mathcal,
create a new macro (let's call it \mc). Before fiddling with the TeX
box, we want to add an argument. If the macro toolbar is displaying,
click the second icon (tooltip = Append argument -- I won't attempt
to describe the icon).  If not, or if you can't sort out the icons,
use Edit  Math  Macro Definition  Append Argument. The macro now
shows a LaTeX argument placeholder #1 in braces. In the TeX box,
highlight #1 (which should be automatically filled in) and type
\mathcal (which will somewhat unhelpfully convert #1 to down-arrow
infinity -- ignore that). Now, in any math formula, type \mc followed
by a space to get an inset. Anything you type in the inset is set in
mathcal. If you highlight content and type \mc space, the highlighted
content is converted.


That sounds easy too. This is for tomorrow since it is late in my time
zone now.


I tried - and it works smoothly.

For reasons of compatibility I am asking myself how such a solution 
translates to the corresponding tex file? If it is to sent to some 
journal, they do not like any macros - as I have experienced. So are 
there any routines which eliminate macros in a tex file?


I know this is another topic already.

Thanx for your replies.

Best wishes,
J. 





Re: AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Paul Rubin
Jannick Asmus jannick.news at gmail.com writes:

 For reasons of compatibility I am asking myself how such a solution 
 translates to the corresponding tex file?

If I use \sX as a short form of \mathcal{X}, then the .tex file will contain
\global\long\def\sX{\mathcal{X}} at the point where I define it (in the body,
although it could be moved manually to the preamble) and \sX in the formulas.

 If it is to sent to some 
 journal, they do not like any macros - as I have experienced. So are 
 there any routines which eliminate macros in a tex file?

I have used macros for sets and matrices (set in boldface) in articles submitted
to journals (including INFORMS journals, and they're a bit picky) with no
problems.  I don't know of a way to globally search and replace them in LyX
(maybe a forthcoming feature in LyX 2.0?), but it certainly could be done by
running the .tex file through a text editor (or sed if you are a Linux fan).

/Paul



AW: AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Paul Rubin wrote:


I have used macros for sets and matrices (set in boldface) in
articles submitted to journals (including INFORMS journals, and
they're a bit picky) with no problems.  I don't know of a way to
globally search and replace them in LyX (maybe a forthcoming feature
in LyX 2.0?), but it certainly could be done by running the .tex file
through a text editor (or sed if you are a Linux fan).


I think this might be a good feature for LyX - especially if more 
complex maros are used which cannot be easily decoded by search  
replace in some text editor.


J. 





AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Paul Rubin wrote:

Jannick Asmus jannick.news at gmail.com writes:



I added a column for German menus since some of the short cuts differ
from the English ones.

Paul, could you have a look at the wiki page, because this is the
first time that I posted something there? I hope that everything is
alright. n.a. should mean not available.


Looks great.  Thank you.

One question: did you try Alt-z h and Alt-z i for mathcal?  According
to the German version of menus.bind, they both bind to the lfun
font-emph, which is what produces mathcal in my (US) version with the
binding Alt-c e. If one of those works, try Alt-z k for mathbb


Yes, that works as you say. When I tested I typed in small letters 
only - so it did not come out as I wanted it to be. I added that in the 
wiki (http://wiki.lyx.org/LyX/MathInLyX#toc4). But I am not sure about 
\mbox.


Thanks for your help again !

Best wishes,
J. 





AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Jannick Asmus wrote:

Paul Rubin wrote:

Jannick Asmus jannick.news at gmail.com writes:



If you want to use a macro to convert arbitrary symbols to mathcal,
create a new macro (let's call it \mc). Before fiddling with the TeX
box, we want to add an argument. If the macro toolbar is displaying,
click the second icon (tooltip = Append argument -- I won't attempt
to describe the icon).  If not, or if you can't sort out the icons,
use Edit  Math  Macro Definition  Append Argument. The macro now
shows a LaTeX argument placeholder #1 in braces. In the TeX box,
highlight #1 (which should be automatically filled in) and type
\mathcal (which will somewhat unhelpfully convert #1 to down-arrow
infinity -- ignore that). Now, in any math formula, type \mc followed
by a space to get an inset. Anything you type in the inset is set in
mathcal. If you highlight content and type \mc space, the highlighted
content is converted.


That sounds easy too. This is for tomorrow since it is late in my time
zone now.


I tried - and it works smoothly.

For reasons of compatibility I am asking myself how such a solution 
translates to the corresponding tex file? If it is to sent to some 
journal, they do not like any macros - as I have experienced. So are 
there any routines which eliminate macros in a tex file?


I know this is another topic already.

Thanx for your replies.

Best wishes,
J. 





Re: AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Paul Rubin
Jannick Asmus jannick.news at gmail.com writes:

 For reasons of compatibility I am asking myself how such a solution 
 translates to the corresponding tex file?

If I use \sX as a short form of \mathcal{X}, then the .tex file will contain
\global\long\def\sX{\mathcal{X}} at the point where I define it (in the body,
although it could be moved manually to the preamble) and \sX in the formulas.

 If it is to sent to some 
 journal, they do not like any macros - as I have experienced. So are 
 there any routines which eliminate macros in a tex file?

I have used macros for sets and matrices (set in boldface) in articles submitted
to journals (including INFORMS journals, and they're a bit picky) with no
problems.  I don't know of a way to globally search and replace them in LyX
(maybe a forthcoming feature in LyX 2.0?), but it certainly could be done by
running the .tex file through a text editor (or sed if you are a Linux fan).

/Paul



AW: AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Paul Rubin wrote:


I have used macros for sets and matrices (set in boldface) in
articles submitted to journals (including INFORMS journals, and
they're a bit picky) with no problems.  I don't know of a way to
globally search and replace them in LyX (maybe a forthcoming feature
in LyX 2.0?), but it certainly could be done by running the .tex file
through a text editor (or sed if you are a Linux fan).


I think this might be a good feature for LyX - especially if more 
complex maros are used which cannot be easily decoded by search  
replace in some text editor.


J. 





AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Paul Rubin wrote:

Jannick Asmus jannick.news at gmail.com writes:



I added a column for German menus since some of the short cuts differ
from the English ones.

Paul, could you have a look at the wiki page, because this is the
first time that I posted something there? I hope that everything is
alright. n.a. should mean not available.


Looks great.  Thank you.

One question: did you try Alt-z h and Alt-z i for mathcal?  According
to the German version of menus.bind, they both bind to the lfun
font-emph, which is what produces mathcal in my (US) version with the
binding Alt-c e. If one of those works, try Alt-z k for mathbb


Yes, that works as you say. When I tested I typed in small letters 
only - so it did not come out as I wanted it to be. I added that in the 
wiki (http://wiki.lyx.org/LyX/MathInLyX#toc4). But I am not sure about 
\mbox.


Thanks for your help again !

Best wishes,
J. 





AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Jannick Asmus wrote:

Paul Rubin wrote:

Jannick Asmus  gmail.com> writes:



If you want to use a macro to convert arbitrary symbols to mathcal,
create a new macro (let's call it \mc). Before fiddling with the TeX
box, we want to add an argument. If the macro toolbar is displaying,
click the second icon (tooltip = "Append argument" -- I won't attempt
to describe the icon).  If not, or if you can't sort out the icons,
use Edit > Math > Macro Definition > Append Argument. The macro now
shows a LaTeX argument placeholder #1 in braces. In the TeX box,
highlight #1 (which should be automatically filled in) and type
\mathcal (which will somewhat unhelpfully convert #1 to down-arrow
infinity -- ignore that). Now, in any math formula, type \mc followed
by a space to get an inset. Anything you type in the inset is set in
mathcal. If you highlight content and type \mc space, the highlighted
content is converted.


That sounds easy too. This is for tomorrow since it is late in my time
zone now.


I tried - and it works smoothly.

For reasons of compatibility I am asking myself how such a solution 
translates to the corresponding tex file? If it is to sent to some 
journal, they do not like any macros - as I have experienced. So are 
there any routines which eliminate macros in a tex file?


I know this is another topic already.

Thanx for your replies.

Best wishes,
J. 





Re: AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Paul Rubin
Jannick Asmus  gmail.com> writes:

> For reasons of compatibility I am asking myself how such a solution 
> translates to the corresponding tex file?

If I use \sX as a short form of \mathcal{X}, then the .tex file will contain
\global\long\def\sX{\mathcal{X}} at the point where I define it (in the body,
although it could be moved manually to the preamble) and \sX in the formulas.

> If it is to sent to some 
> journal, they do not like any macros - as I have experienced. So are 
> there any routines which eliminate macros in a tex file?

I have used macros for sets and matrices (set in boldface) in articles submitted
to journals (including INFORMS journals, and they're a bit picky) with no
problems.  I don't know of a way to globally search and replace them in LyX
(maybe a forthcoming feature in LyX 2.0?), but it certainly could be done by
running the .tex file through a text editor (or sed if you are a Linux fan).

/Paul



AW: AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Paul Rubin wrote:


I have used macros for sets and matrices (set in boldface) in
articles submitted to journals (including INFORMS journals, and
they're a bit picky) with no problems.  I don't know of a way to
globally search and replace them in LyX (maybe a forthcoming feature
in LyX 2.0?), but it certainly could be done by running the .tex file
through a text editor (or sed if you are a Linux fan).


I think this might be a good feature for LyX - especially if more 
complex maros are used which cannot be easily "decoded" by search & 
replace in some text editor.


J. 





AW: AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Paul Rubin wrote:

Jannick Asmus  gmail.com> writes:



I added a column for German menus since some of the short cuts differ
from the English ones.

Paul, could you have a look at the wiki page, because this is the
first time that I posted something there? I hope that everything is
alright. "n.a." should mean "not available".


Looks great.  Thank you.

One question: did you try Alt-z h and Alt-z i for mathcal?  According
to the German version of menus.bind, they both bind to the lfun
font-emph, which is what produces mathcal in my (US) version with the
binding Alt-c e. If one of those works, try Alt-z k for mathbb


Yes, that works as you say. When I tested I typed in small letters 
only - so it did not come out as I wanted it to be. I added that in the 
wiki (http://wiki.lyx.org/LyX/MathInLyX#toc4). But I am not sure about 
\mbox.


Thanks for your help again !

Best wishes,
J. 





AW: AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Jean-Marc Lasgouttes wrote:

Le 12 août 10 à 23:40, Jannick Asmus a écrit :

Is just checked the short cut list in the config, but I couldn't
find this neat thing beither for
\mathbb nor \mathcal. Is it possible that \mathbb is hidden
somewhere as short cut as well?


I had the same question, but the LyX code seems to imply that this is
not the case.


Thanks for pointing that out. I think I will think about Paul's macro 
solution for \mathbb then.


Merci encore une fois.

Bonne nuit,
J. 





AW: AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Paul Rubin wrote:

Jannick Asmus jannick.news at gmail.com writes:


Thx for the tips. I will try that out although macros are pretty new
to me.


Someplace in the document body, click Insert  Math  Macro and a new
macro inset will be created. Change \newmacroname to whatever you
like (say \sX for a macro to write a set X in mathcal). There are two
blue insets, the first labeled 'TeX' (this is the LaTeX code for the
macro) and the second labeled 'LyX' (used only if you want the macro
to display differently in the GUI than the way the LaTeX code would
normally display -- I have never had the need to use it). In the TeX
box, type the LaTeX code (let's use \mathcal{S}).  That's all you
need to do.  Now, in any math inset, type \sX and LyX should
automatically replace it with \mathcal{X}.


This is sooo simple. And it works. Thanks for that!


If you want to use a macro to convert arbitrary symbols to mathcal,
create a new macro (let's call it \mc). Before fiddling with the TeX
box, we want to add an argument. If the macro toolbar is displaying,
click the second icon (tooltip = Append argument -- I won't attempt
to describe the icon).  If not, or if you can't sort out the icons,
use Edit  Math  Macro Definition  Append Argument. The macro now
shows a LaTeX argument placeholder #1 in braces. In the TeX box,
highlight #1 (which should be automatically filled in) and type
\mathcal (which will somewhat unhelpfully convert #1 to down-arrow
infinity -- ignore that). Now, in any math formula, type \mc followed
by a space to get an inset. Anything you type in the inset is set in
mathcal. If you highlight content and type \mc space, the highlighted
content is converted.


That sounds easy too. This is for tomorrow since it is late in my time 
zone now.



/Paul


Your help is much appreciated. Great thingy, this LyX !!!

Good night,
J. 





AW: AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Jean-Marc Lasgouttes wrote:

Le 12 août 10 à 23:40, Jannick Asmus a écrit :

Is just checked the short cut list in the config, but I couldn't
find this neat thing beither for
\mathbb nor \mathcal. Is it possible that \mathbb is hidden
somewhere as short cut as well?


I had the same question, but the LyX code seems to imply that this is
not the case.


Thanks for pointing that out. I think I will think about Paul's macro 
solution for \mathbb then.


Merci encore une fois.

Bonne nuit,
J. 





AW: AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Paul Rubin wrote:

Jannick Asmus jannick.news at gmail.com writes:


Thx for the tips. I will try that out although macros are pretty new
to me.


Someplace in the document body, click Insert  Math  Macro and a new
macro inset will be created. Change \newmacroname to whatever you
like (say \sX for a macro to write a set X in mathcal). There are two
blue insets, the first labeled 'TeX' (this is the LaTeX code for the
macro) and the second labeled 'LyX' (used only if you want the macro
to display differently in the GUI than the way the LaTeX code would
normally display -- I have never had the need to use it). In the TeX
box, type the LaTeX code (let's use \mathcal{S}).  That's all you
need to do.  Now, in any math inset, type \sX and LyX should
automatically replace it with \mathcal{X}.


This is sooo simple. And it works. Thanks for that!


If you want to use a macro to convert arbitrary symbols to mathcal,
create a new macro (let's call it \mc). Before fiddling with the TeX
box, we want to add an argument. If the macro toolbar is displaying,
click the second icon (tooltip = Append argument -- I won't attempt
to describe the icon).  If not, or if you can't sort out the icons,
use Edit  Math  Macro Definition  Append Argument. The macro now
shows a LaTeX argument placeholder #1 in braces. In the TeX box,
highlight #1 (which should be automatically filled in) and type
\mathcal (which will somewhat unhelpfully convert #1 to down-arrow
infinity -- ignore that). Now, in any math formula, type \mc followed
by a space to get an inset. Anything you type in the inset is set in
mathcal. If you highlight content and type \mc space, the highlighted
content is converted.


That sounds easy too. This is for tomorrow since it is late in my time 
zone now.



/Paul


Your help is much appreciated. Great thingy, this LyX !!!

Good night,
J. 





AW: AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Jean-Marc Lasgouttes wrote:

Le 12 août 10 à 23:40, Jannick Asmus a écrit :

Is just checked the short cut list in the config, but I couldn't
find this neat thing beither for
\mathbb nor \mathcal. Is it possible that \mathbb is hidden
somewhere as short cut as well?


I had the same question, but the LyX code seems to imply that this is
not the case.


Thanks for pointing that out. I think I will think about Paul's macro 
solution for \mathbb then.


Merci encore une fois.

Bonne nuit,
J. 





AW: AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Paul Rubin wrote:

Jannick Asmus  gmail.com> writes:


Thx for the tips. I will try that out although macros are pretty new
to me.


Someplace in the document body, click Insert > Math > Macro and a new
macro inset will be created. Change \newmacroname to whatever you
like (say \sX for a macro to write a set X in mathcal). There are two
blue insets, the first labeled 'TeX' (this is the LaTeX code for the
macro) and the second labeled 'LyX' (used only if you want the macro
to display differently in the GUI than the way the LaTeX code would
normally display -- I have never had the need to use it). In the TeX
box, type the LaTeX code (let's use \mathcal{S}).  That's all you
need to do.  Now, in any math inset, type \sX and LyX should
automatically replace it with \mathcal{X}.


This is sooo simple. And it works. Thanks for that!


If you want to use a macro to convert arbitrary symbols to mathcal,
create a new macro (let's call it \mc). Before fiddling with the TeX
box, we want to add an argument. If the macro toolbar is displaying,
click the second icon (tooltip = "Append argument" -- I won't attempt
to describe the icon).  If not, or if you can't sort out the icons,
use Edit > Math > Macro Definition > Append Argument. The macro now
shows a LaTeX argument placeholder #1 in braces. In the TeX box,
highlight #1 (which should be automatically filled in) and type
\mathcal (which will somewhat unhelpfully convert #1 to down-arrow
infinity -- ignore that). Now, in any math formula, type \mc followed
by a space to get an inset. Anything you type in the inset is set in
mathcal. If you highlight content and type \mc space, the highlighted
content is converted.


That sounds easy too. This is for tomorrow since it is late in my time 
zone now.



/Paul


Your help is much appreciated. Great thingy, this LyX !!!

Good night,
J.