AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Uwe Stöhr wrote:


There are already some shortcuts. Highlight some parts of your
formula and then press Alt+c and then r. This leads to upright
characters (\mathrm).
Alt+c and c gives for example \mathbb.


This changes to mathtt (typewriter - as given in the LyX menu for short 
cuts and the short cut docu (German version)) in my version (1.6.7 
Greman/WinVista) - of course with the modication in your important PS.



After typing Alt+c the LyX status bar will show you the available
characters connected to the Alt+c shortcut. For more shortcuts have a
look at the LyX menu Tools-Preferences-Editing-Shortcuts.


I looked around there, but I couldn't find anything for \mathbb. :( If 
it is possible for \mathtt, I wonder if it could be done for \mathbb as 
well?



regards
Uwe

p.s. Note that on LyX with German menus, Alt+c becomes Alt+z


That's really important. I tried Alt+c first. ;)

Thx for your input.

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: short cuts: fonts in math mode

2010-08-13 Thread Paul A. Rubin

On 8/12/2010 6:22 PM, Uwe Stöhr wrote:

There are already some shortcuts. Highlight some parts of your formula
and then press Alt+c and then r. This leads to upright characters
(\mathrm).

Alt+c and c gives for example \mathbb.

After typing Alt+c the LyX status bar will show you the available
characters connected to the Alt+c shortcut. For more shortcuts have a
look at the LyX menu Tools-Preferences-Editing-Shortcuts.



This is very useful to know but not visible in the Tools  ...  
Shortcuts dialog.  (If you filter on Alt+C, only boldsymbol and roman 
appear, and the user has to recognize that roman implies \mathrm in math 
mode.)  I've filed an enhancement ticket to add the relevant options to 
the Mathematical Symbols section of Tools  ...  Shortcuts, and in the 
interim I put a table of shortcuts in the wiki 
(http://wiki.lyx.org/LyX/MathInLyX#toc4).


/Paul



AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Paul A. Rubin wrote:


This is very useful to know but not visible in the Tools  ... 
Shortcuts dialog.  (If you filter on Alt+C, only boldsymbol and roman
appear, and the user has to recognize that roman implies \mathrm in
math mode.)  I've filed an enhancement ticket to add the relevant
options to the Mathematical Symbols section of Tools  ... 
Shortcuts, and in the interim I put a table of shortcuts in the wiki
(http://wiki.lyx.org/LyX/MathInLyX#toc4).


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.



/Paul


Best wishes,
J. 





Re: short cuts: fonts in math mode

2010-08-13 Thread Uwe Stöhr

Am 13.08.2010 09:50, schrieb Jannick Asmus:


Alt+c and c gives for example \mathbb.


This changes to mathtt (typewriter - as given in the LyX menu for short
cuts and the short cut docu (German version)) in my version (1.6.7
Greman/WinVista) - of course with the modication in your important PS.


With German menus you get \mathbb with Alt+z k .
the shortcuts are defined in the file menus.bind. So have a look at 
your windows in the folder


~:\Programme\LyX 1.6.7\Resources\bind\de

and open menus.bind with a text editor.

The English shortcuts are defined in the menus.bind in this folder

~:\Programme\LyX 1.6.7\Resources\bind

regards Uwe


AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Uwe Stöhr wrote:

Am 13.08.2010 09:50, schrieb Jannick Asmus:


Alt+c and c gives for example \mathbb.


This changes to mathtt (typewriter - as given in the LyX menu for
short cuts and the short cut docu (German version)) in my version
(1.6.7 Greman/WinVista) - of course with the modication in your
important PS.


With German menus you get \mathbb with Alt+z k .
the shortcuts are defined in the file menus.bind. So have a look at
your windows in the folder

~:\Programme\LyX 1.6.7\Resources\bind\de

and open menus.bind with a text editor.


Sorry for being a bit insisting here. In my version Alt+z k means 
font-noun. I checkeb that both in the config and in the file menu.bind 
(German folder). And I could not find any other bind for \mathbb or 
\mathcal.



The English shortcuts are defined in the menus.bind in this folder

~:\Programme\LyX 1.6.7\Resources\bind

regards Uwe


Best wishes,
J. 





Re: short cuts: fonts in math mode

2010-08-13 Thread Uwe Stöhr

Am 13.08.2010 17:24, schrieb Jannick Asmus:


With German menus you get \mathbb with Alt+z k .
the shortcuts are defined in the file menus.bind. So have a look at
your windows in the folder

~:\Programme\LyX 1.6.7\Resources\bind\de

and open menus.bind with a text editor.


Sorry for being a bit insisting here. In my version Alt+z k means
font-noun.


That is \mathbb. Just use the shortcut Alt+z k and you can see in LyX's 
View source window (menu View-View Source) that \mathbb is created.


regards Uwe


AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Uwe Stöhr wrote:

Am 13.08.2010 17:24, schrieb Jannick Asmus:



Sorry for being a bit insisting here. In my version Alt+z k means
font-noun.


That is \mathbb. Just use the shortcut Alt+z k and you can see in
LyX's View source window (menu View-View Source) that \mathbb is
created.


You are right. Sorry for the noise.

Last question on that: How about a short cut for \mathcal?

Thanks a lot for your patience.

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



Re: AW: short cuts: fonts in math mode

2010-08-13 Thread Paul Rubin
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

/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: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Jannick Asmus wrote:


Last question on that: How about a short cut for \mathcal?


Alt+z h or Alt+z i - in the German menu.

J.



AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Uwe Stöhr wrote:


There are already some shortcuts. Highlight some parts of your
formula and then press Alt+c and then r. This leads to upright
characters (\mathrm).
Alt+c and c gives for example \mathbb.


This changes to mathtt (typewriter - as given in the LyX menu for short 
cuts and the short cut docu (German version)) in my version (1.6.7 
Greman/WinVista) - of course with the modication in your important PS.



After typing Alt+c the LyX status bar will show you the available
characters connected to the Alt+c shortcut. For more shortcuts have a
look at the LyX menu Tools-Preferences-Editing-Shortcuts.


I looked around there, but I couldn't find anything for \mathbb. :( If 
it is possible for \mathtt, I wonder if it could be done for \mathbb as 
well?



regards
Uwe

p.s. Note that on LyX with German menus, Alt+c becomes Alt+z


That's really important. I tried Alt+c first. ;)

Thx for your input.

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: short cuts: fonts in math mode

2010-08-13 Thread Paul A. Rubin

On 8/12/2010 6:22 PM, Uwe Stöhr wrote:

There are already some shortcuts. Highlight some parts of your formula
and then press Alt+c and then r. This leads to upright characters
(\mathrm).

Alt+c and c gives for example \mathbb.

After typing Alt+c the LyX status bar will show you the available
characters connected to the Alt+c shortcut. For more shortcuts have a
look at the LyX menu Tools-Preferences-Editing-Shortcuts.



This is very useful to know but not visible in the Tools  ...  
Shortcuts dialog.  (If you filter on Alt+C, only boldsymbol and roman 
appear, and the user has to recognize that roman implies \mathrm in math 
mode.)  I've filed an enhancement ticket to add the relevant options to 
the Mathematical Symbols section of Tools  ...  Shortcuts, and in the 
interim I put a table of shortcuts in the wiki 
(http://wiki.lyx.org/LyX/MathInLyX#toc4).


/Paul



AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Paul A. Rubin wrote:


This is very useful to know but not visible in the Tools  ... 
Shortcuts dialog.  (If you filter on Alt+C, only boldsymbol and roman
appear, and the user has to recognize that roman implies \mathrm in
math mode.)  I've filed an enhancement ticket to add the relevant
options to the Mathematical Symbols section of Tools  ... 
Shortcuts, and in the interim I put a table of shortcuts in the wiki
(http://wiki.lyx.org/LyX/MathInLyX#toc4).


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.



/Paul


Best wishes,
J. 





Re: short cuts: fonts in math mode

2010-08-13 Thread Uwe Stöhr

Am 13.08.2010 09:50, schrieb Jannick Asmus:


Alt+c and c gives for example \mathbb.


This changes to mathtt (typewriter - as given in the LyX menu for short
cuts and the short cut docu (German version)) in my version (1.6.7
Greman/WinVista) - of course with the modication in your important PS.


With German menus you get \mathbb with Alt+z k .
the shortcuts are defined in the file menus.bind. So have a look at 
your windows in the folder


~:\Programme\LyX 1.6.7\Resources\bind\de

and open menus.bind with a text editor.

The English shortcuts are defined in the menus.bind in this folder

~:\Programme\LyX 1.6.7\Resources\bind

regards Uwe


AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Uwe Stöhr wrote:

Am 13.08.2010 09:50, schrieb Jannick Asmus:


Alt+c and c gives for example \mathbb.


This changes to mathtt (typewriter - as given in the LyX menu for
short cuts and the short cut docu (German version)) in my version
(1.6.7 Greman/WinVista) - of course with the modication in your
important PS.


With German menus you get \mathbb with Alt+z k .
the shortcuts are defined in the file menus.bind. So have a look at
your windows in the folder

~:\Programme\LyX 1.6.7\Resources\bind\de

and open menus.bind with a text editor.


Sorry for being a bit insisting here. In my version Alt+z k means 
font-noun. I checkeb that both in the config and in the file menu.bind 
(German folder). And I could not find any other bind for \mathbb or 
\mathcal.



The English shortcuts are defined in the menus.bind in this folder

~:\Programme\LyX 1.6.7\Resources\bind

regards Uwe


Best wishes,
J. 





Re: short cuts: fonts in math mode

2010-08-13 Thread Uwe Stöhr

Am 13.08.2010 17:24, schrieb Jannick Asmus:


With German menus you get \mathbb with Alt+z k .
the shortcuts are defined in the file menus.bind. So have a look at
your windows in the folder

~:\Programme\LyX 1.6.7\Resources\bind\de

and open menus.bind with a text editor.


Sorry for being a bit insisting here. In my version Alt+z k means
font-noun.


That is \mathbb. Just use the shortcut Alt+z k and you can see in LyX's 
View source window (menu View-View Source) that \mathbb is created.


regards Uwe


AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Uwe Stöhr wrote:

Am 13.08.2010 17:24, schrieb Jannick Asmus:



Sorry for being a bit insisting here. In my version Alt+z k means
font-noun.


That is \mathbb. Just use the shortcut Alt+z k and you can see in
LyX's View source window (menu View-View Source) that \mathbb is
created.


You are right. Sorry for the noise.

Last question on that: How about a short cut for \mathcal?

Thanks a lot for your patience.

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



Re: AW: short cuts: fonts in math mode

2010-08-13 Thread Paul Rubin
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

/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: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Jannick Asmus wrote:


Last question on that: How about a short cut for \mathcal?


Alt+z h or Alt+z i - in the German menu.

J.



AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Uwe Stöhr wrote:


There are already some shortcuts. Highlight some parts of your
formula and then press "Alt+c" and then "r". This leads to upright
characters (\mathrm).
Alt+c and c gives for example \mathbb.


This changes to mathtt (typewriter - as given in the LyX menu for short 
cuts and the short cut docu (German version)) in my version (1.6.7 
Greman/WinVista) - of course with the modication in your important PS.



After typing Alt+c the LyX status bar will show you the available
characters connected to the Alt+c shortcut. For more shortcuts have a
look at the LyX menu Tools->Preferences->Editing->Shortcuts.


I looked around there, but I couldn't find anything for \mathbb. :( If 
it is possible for \mathtt, I wonder if it could be done for \mathbb as 
well?



regards
Uwe

p.s. Note that on LyX with German menus, Alt+c becomes Alt+z


That's really important. I tried Alt+c first. ;)

Thx for your input.

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: short cuts: fonts in math mode

2010-08-13 Thread Paul A. Rubin

On 8/12/2010 6:22 PM, Uwe Stöhr wrote:

There are already some shortcuts. Highlight some parts of your formula
and then press "Alt+c" and then "r". This leads to upright characters
(\mathrm).

Alt+c and c gives for example \mathbb.

After typing Alt+c the LyX status bar will show you the available
characters connected to the Alt+c shortcut. For more shortcuts have a
look at the LyX menu Tools->Preferences->Editing->Shortcuts.



This is very useful to know but not visible in the Tools > ... > 
Shortcuts dialog.  (If you filter on Alt+C, only boldsymbol and roman 
appear, and the user has to recognize that roman implies \mathrm in math 
mode.)  I've filed an enhancement ticket to add the relevant options to 
the Mathematical Symbols section of Tools > ... > Shortcuts, and in the 
interim I put a table of shortcuts in the wiki 
(http://wiki.lyx.org/LyX/MathInLyX#toc4).


/Paul



AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Paul A. Rubin wrote:


This is very useful to know but not visible in the Tools > ... >
Shortcuts dialog.  (If you filter on Alt+C, only boldsymbol and roman
appear, and the user has to recognize that roman implies \mathrm in
math mode.)  I've filed an enhancement ticket to add the relevant
options to the Mathematical Symbols section of Tools > ... >
Shortcuts, and in the interim I put a table of shortcuts in the wiki
(http://wiki.lyx.org/LyX/MathInLyX#toc4).


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".



/Paul


Best wishes,
J. 





Re: short cuts: fonts in math mode

2010-08-13 Thread Uwe Stöhr

Am 13.08.2010 09:50, schrieb Jannick Asmus:


Alt+c and c gives for example \mathbb.


This changes to mathtt (typewriter - as given in the LyX menu for short
cuts and the short cut docu (German version)) in my version (1.6.7
Greman/WinVista) - of course with the modication in your important PS.


With German menus you get \mathbb with Alt+z k .
the shortcuts are defined in the file "menus.bind". So have a look at 
your windows in the folder


~:\Programme\LyX 1.6.7\Resources\bind\de

and open menus.bind with a text editor.

The English shortcuts are defined in the menus.bind in this folder

~:\Programme\LyX 1.6.7\Resources\bind

regards Uwe


AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Uwe Stöhr wrote:

Am 13.08.2010 09:50, schrieb Jannick Asmus:


Alt+c and c gives for example \mathbb.


This changes to mathtt (typewriter - as given in the LyX menu for
short cuts and the short cut docu (German version)) in my version
(1.6.7 Greman/WinVista) - of course with the modication in your
important PS.


With German menus you get \mathbb with Alt+z k .
the shortcuts are defined in the file "menus.bind". So have a look at
your windows in the folder

~:\Programme\LyX 1.6.7\Resources\bind\de

and open menus.bind with a text editor.


Sorry for being a bit insisting here. In my version Alt+z k means 
font-noun. I checkeb that both in the config and in the file "menu.bind" 
(German folder). And I could not find any other bind for \mathbb or 
\mathcal.



The English shortcuts are defined in the menus.bind in this folder

~:\Programme\LyX 1.6.7\Resources\bind

regards Uwe


Best wishes,
J. 





Re: short cuts: fonts in math mode

2010-08-13 Thread Uwe Stöhr

Am 13.08.2010 17:24, schrieb Jannick Asmus:


With German menus you get \mathbb with Alt+z k .
the shortcuts are defined in the file "menus.bind". So have a look at
your windows in the folder

~:\Programme\LyX 1.6.7\Resources\bind\de

and open menus.bind with a text editor.


Sorry for being a bit insisting here. In my version Alt+z k means
font-noun.


That is \mathbb. Just use the shortcut Alt+z k and you can see in LyX's 
View source window (menu View->View Source) that \mathbb is created.


regards Uwe


AW: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Uwe Stöhr wrote:

Am 13.08.2010 17:24, schrieb Jannick Asmus:



Sorry for being a bit insisting here. In my version Alt+z k means
font-noun.


That is \mathbb. Just use the shortcut Alt+z k and you can see in
LyX's View source window (menu View->View Source) that \mathbb is
created.


You are right. Sorry for the noise.

Last question on that: How about a short cut for \mathcal?

Thanks a lot for your patience.

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



Re: AW: short cuts: fonts in math mode

2010-08-13 Thread Paul Rubin
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

/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: short cuts: fonts in math mode

2010-08-13 Thread Jannick Asmus

Jannick Asmus wrote:


Last question on that: How about a short cut for \mathcal?


Alt+z h or Alt+z i - in the German menu.

J.



short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus
I am extensively using the math mode in LyX and 1000 times I have already
typed \mathbb or \mathcal for changing the font. Is there a short cut
for that? If not yet how can it be configured?

Thank you for your help.

Best wishes,
J.
attachment: winmail.dat

Re: short cuts: fonts in math mode

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

 
 I am extensively using the math mode in LyX and 1000 times I have already
 typed \mathbb or \mathcal for changing the font. Is there a short cut
 for that?

Not that I know of.

 If not yet how can it be configured?

You can bind an unused key combination to 'math-insert \mathbb' or 'math-insert
\mathcal'.  (See Help  Shortcuts if you do not know how to create your own
bindings. Do not include the quotes.)  If you use the shortcut inside a mathed
insert with nothing selected, it will create an inset for the font but put the
cursor just to the right of the inset (so you'll need to move back one position
to type in the symbols).  If you have something selected, the selected content
will be switched to the font and the cursor will be positioned just to the right
of the last selected character but still inside the font inset.

Usually, when I'm using either of those fonts, it is for a small number of
repeatedly written symbols.  Rather than creating a shortcut for the font (and
then forgetting what it was), I create macros for the specific symbols at the
front of the document (so that, for instance, \sX expands to \mathcal{X}).

/Paul



AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Paul Rubin wrote:

Jannick Asmus jannick.news at gmail.com writes:



I am extensively using the math mode in LyX and 1000 times I have
already typed \mathbb or \mathcal for changing the font. Is
there a short cut for that?


Not that I know of.


If not yet how can it be configured?


You can bind an unused key combination to 'math-insert \mathbb' or
'math-insert \mathcal'.  (See Help  Shortcuts if you do not know how
to create your own bindings. Do not include the quotes.)  If you use
the shortcut inside a mathed insert with nothing selected, it will
create an inset for the font but put the cursor just to the right of
the inset (so you'll need to move back one position to type in the
symbols).  If you have something selected, the selected content will
be switched to the font and the cursor will be positioned just to the
right of the last selected character but still inside the font inset.

Usually, when I'm using either of those fonts, it is for a small
number of repeatedly written symbols.  Rather than creating a
shortcut for the font (and then forgetting what it was), I create
macros for the specific symbols at the front of the document (so
that, for instance, \sX expands to \mathcal{X}).


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



/Paul


Best wishes,
J. 





Re: short cuts: fonts in math mode

2010-08-12 Thread Jean-Marc Lasgouttes

Le 12 août 10 à 21:11, Jannick Asmus a écrit :
I am extensively using the math mode in LyX and 1000 times I have  
already
typed \mathbb or \mathcal for changing the font. Is there a  
short cut

for that? If not yet how can it be configured?


You get mathcal if you ask for emphasize (Ctrl-E).

JMarc

AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Jean-Marc Lasgouttes wrote:

Le 12 août 10 à 21:11, Jannick Asmus a écrit :

I am extensively using the math mode in LyX and 1000 times I have
already
typed \mathbb or \mathcal for changing the font. Is there a
short cut
for that? If not yet how can it be configured?


You get mathcal if you ask for emphasize (Ctrl-E).


Merci beaucoup.

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?


Thanks.

Best wishes,
J. 





Re: AW: short cuts: fonts in math mode

2010-08-12 Thread Paul Rubin
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}.

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.

/Paul



Re: AW: short cuts: fonts in math mode

2010-08-12 Thread Jean-Marc Lasgouttes

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.


JMarc

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. 





Re: short cuts: fonts in math mode

2010-08-12 Thread Uwe Stöhr

Am 12.08.2010 21:11, schrieb Jannick Asmus:


I am extensively using the math mode in LyX and 1000 times I have already
typed \mathbb or \mathcal for changing the font. Is there a short cut
for that? If not yet how can it be configured?


There are already some shortcuts. Highlight some parts of your formula and then press Alt+c and 
then r. This leads to upright characters (\mathrm).


Alt+c and c gives for example \mathbb.

After typing Alt+c the LyX status bar will show you the available characters connected to the Alt+c 
shortcut. For more shortcuts have a look at the LyX menu Tools-Preferences-Editing-Shortcuts.


regards
Uwe

p.s. Note that on LyX with German menus, Alt+c becomes Alt+z


short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus
I am extensively using the math mode in LyX and 1000 times I have already
typed \mathbb or \mathcal for changing the font. Is there a short cut
for that? If not yet how can it be configured?

Thank you for your help.

Best wishes,
J.
attachment: winmail.dat

Re: short cuts: fonts in math mode

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

 
 I am extensively using the math mode in LyX and 1000 times I have already
 typed \mathbb or \mathcal for changing the font. Is there a short cut
 for that?

Not that I know of.

 If not yet how can it be configured?

You can bind an unused key combination to 'math-insert \mathbb' or 'math-insert
\mathcal'.  (See Help  Shortcuts if you do not know how to create your own
bindings. Do not include the quotes.)  If you use the shortcut inside a mathed
insert with nothing selected, it will create an inset for the font but put the
cursor just to the right of the inset (so you'll need to move back one position
to type in the symbols).  If you have something selected, the selected content
will be switched to the font and the cursor will be positioned just to the right
of the last selected character but still inside the font inset.

Usually, when I'm using either of those fonts, it is for a small number of
repeatedly written symbols.  Rather than creating a shortcut for the font (and
then forgetting what it was), I create macros for the specific symbols at the
front of the document (so that, for instance, \sX expands to \mathcal{X}).

/Paul



AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Paul Rubin wrote:

Jannick Asmus jannick.news at gmail.com writes:



I am extensively using the math mode in LyX and 1000 times I have
already typed \mathbb or \mathcal for changing the font. Is
there a short cut for that?


Not that I know of.


If not yet how can it be configured?


You can bind an unused key combination to 'math-insert \mathbb' or
'math-insert \mathcal'.  (See Help  Shortcuts if you do not know how
to create your own bindings. Do not include the quotes.)  If you use
the shortcut inside a mathed insert with nothing selected, it will
create an inset for the font but put the cursor just to the right of
the inset (so you'll need to move back one position to type in the
symbols).  If you have something selected, the selected content will
be switched to the font and the cursor will be positioned just to the
right of the last selected character but still inside the font inset.

Usually, when I'm using either of those fonts, it is for a small
number of repeatedly written symbols.  Rather than creating a
shortcut for the font (and then forgetting what it was), I create
macros for the specific symbols at the front of the document (so
that, for instance, \sX expands to \mathcal{X}).


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



/Paul


Best wishes,
J. 





Re: short cuts: fonts in math mode

2010-08-12 Thread Jean-Marc Lasgouttes

Le 12 août 10 à 21:11, Jannick Asmus a écrit :
I am extensively using the math mode in LyX and 1000 times I have  
already
typed \mathbb or \mathcal for changing the font. Is there a  
short cut

for that? If not yet how can it be configured?


You get mathcal if you ask for emphasize (Ctrl-E).

JMarc

AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Jean-Marc Lasgouttes wrote:

Le 12 août 10 à 21:11, Jannick Asmus a écrit :

I am extensively using the math mode in LyX and 1000 times I have
already
typed \mathbb or \mathcal for changing the font. Is there a
short cut
for that? If not yet how can it be configured?


You get mathcal if you ask for emphasize (Ctrl-E).


Merci beaucoup.

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?


Thanks.

Best wishes,
J. 





Re: AW: short cuts: fonts in math mode

2010-08-12 Thread Paul Rubin
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}.

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.

/Paul



Re: AW: short cuts: fonts in math mode

2010-08-12 Thread Jean-Marc Lasgouttes

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.


JMarc

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. 





Re: short cuts: fonts in math mode

2010-08-12 Thread Uwe Stöhr

Am 12.08.2010 21:11, schrieb Jannick Asmus:


I am extensively using the math mode in LyX and 1000 times I have already
typed \mathbb or \mathcal for changing the font. Is there a short cut
for that? If not yet how can it be configured?


There are already some shortcuts. Highlight some parts of your formula and then press Alt+c and 
then r. This leads to upright characters (\mathrm).


Alt+c and c gives for example \mathbb.

After typing Alt+c the LyX status bar will show you the available characters connected to the Alt+c 
shortcut. For more shortcuts have a look at the LyX menu Tools-Preferences-Editing-Shortcuts.


regards
Uwe

p.s. Note that on LyX with German menus, Alt+c becomes Alt+z


short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus
I am extensively using the math mode in LyX and 1000 times I have already
typed "\mathbb" or "\mathcal" for changing the font. Is there a short cut
for that? If not yet how can it be configured?

Thank you for your help.

Best wishes,
J.
<>

Re: short cuts: fonts in math mode

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

> 
> I am extensively using the math mode in LyX and 1000 times I have already
> typed "\mathbb" or "\mathcal" for changing the font. Is there a short cut
> for that?

Not that I know of.

> If not yet how can it be configured?

You can bind an unused key combination to 'math-insert \mathbb' or 'math-insert
\mathcal'.  (See Help > Shortcuts if you do not know how to create your own
bindings. Do not include the quotes.)  If you use the shortcut inside a mathed
insert with nothing selected, it will create an inset for the font but put the
cursor just to the right of the inset (so you'll need to move back one position
to type in the symbols).  If you have something selected, the selected content
will be switched to the font and the cursor will be positioned just to the right
of the last selected character but still inside the font inset.

Usually, when I'm using either of those fonts, it is for a small number of
repeatedly written symbols.  Rather than creating a shortcut for the font (and
then forgetting what it was), I create macros for the specific symbols at the
front of the document (so that, for instance, \sX expands to \mathcal{X}).

/Paul



AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Paul Rubin wrote:

Jannick Asmus  gmail.com> writes:



I am extensively using the math mode in LyX and 1000 times I have
already typed "\mathbb" or "\mathcal" for changing the font. Is
there a short cut for that?


Not that I know of.


If not yet how can it be configured?


You can bind an unused key combination to 'math-insert \mathbb' or
'math-insert \mathcal'.  (See Help > Shortcuts if you do not know how
to create your own bindings. Do not include the quotes.)  If you use
the shortcut inside a mathed insert with nothing selected, it will
create an inset for the font but put the cursor just to the right of
the inset (so you'll need to move back one position to type in the
symbols).  If you have something selected, the selected content will
be switched to the font and the cursor will be positioned just to the
right of the last selected character but still inside the font inset.

Usually, when I'm using either of those fonts, it is for a small
number of repeatedly written symbols.  Rather than creating a
shortcut for the font (and then forgetting what it was), I create
macros for the specific symbols at the front of the document (so
that, for instance, \sX expands to \mathcal{X}).


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



/Paul


Best wishes,
J. 





Re: short cuts: fonts in math mode

2010-08-12 Thread Jean-Marc Lasgouttes

Le 12 août 10 à 21:11, Jannick Asmus a écrit :
I am extensively using the math mode in LyX and 1000 times I have  
already
typed "\mathbb" or "\mathcal" for changing the font. Is there a  
short cut

for that? If not yet how can it be configured?


You get mathcal if you ask for emphasize (Ctrl-E).

JMarc

AW: short cuts: fonts in math mode

2010-08-12 Thread Jannick Asmus

Jean-Marc Lasgouttes wrote:

Le 12 août 10 à 21:11, Jannick Asmus a écrit :

I am extensively using the math mode in LyX and 1000 times I have
already
typed "\mathbb" or "\mathcal" for changing the font. Is there a
short cut
for that? If not yet how can it be configured?


You get mathcal if you ask for emphasize (Ctrl-E).


Merci beaucoup.

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?


Thanks.

Best wishes,
J. 





Re: AW: short cuts: fonts in math mode

2010-08-12 Thread Paul Rubin
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}.

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.

/Paul



Re: AW: short cuts: fonts in math mode

2010-08-12 Thread Jean-Marc Lasgouttes

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.


JMarc

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. 





Re: short cuts: fonts in math mode

2010-08-12 Thread Uwe Stöhr

Am 12.08.2010 21:11, schrieb Jannick Asmus:


I am extensively using the math mode in LyX and 1000 times I have already
typed "\mathbb" or "\mathcal" for changing the font. Is there a short cut
for that? If not yet how can it be configured?


There are already some shortcuts. Highlight some parts of your formula and then press "Alt+c" and 
then "r". This leads to upright characters (\mathrm).


Alt+c and c gives for example \mathbb.

After typing Alt+c the LyX status bar will show you the available characters connected to the Alt+c 
shortcut. For more shortcuts have a look at the LyX menu Tools->Preferences->Editing->Shortcuts.


regards
Uwe

p.s. Note that on LyX with German menus, Alt+c becomes Alt+z