Re: Keyboard shortcut for Smallcaps

2013-03-25 Thread Jürgen Spitzmüller
Am Montag 25 März 2013, 09:38:31 schrieb Rasmus K. R.:
> Thank you, Jürgen. This gives me the same result as Scott's answer, though I
> can  see a difference in source: `\noun{x}` as a result of `font-noun`,
> `\textsc{x}` from `textstyle-update shape 3`.

The difference is explained (briefly) here:
http://wiki.lyx.org/FAQ/Fonts#semantic-markup

Jürgen


Re: Keyboard shortcut for Smallcaps

2013-03-25 Thread Rasmus K . R .
> If you mean "noun", then the function is called font-noun (here, it is bound 
> to Alt+C+C).
> 

Thank you, Jürgen. This gives me the same result as Scott's answer, though I 
can 
see a difference in source: `\noun{x}` as a result of `font-noun`, `\textsc{x}` 
from `textstyle-update shape 3`.

For defining shortcuts, `font-noun` seems to work well as it does not reset the 
text size to normal as `textstyle-update` does.

Best,
Rasmus



Re: Keyboard shortcut for Smallcaps

2013-03-25 Thread Rasmus K. Rendsvig
Hi Scott,

Thank you very much for the fast reply.


> I haven't tested this much, but try textstyle-update shape 3


Works perfectly! Thank you!


> The way to discover LFUNs is either to start LyX with -dbg action
> (from the command line, if Linux) or to enable user actions in the
> messages pane. You can also see a list of LFUNs and descriptions of
> them in the help menu.
>

Thank you for the tip, I will play around with that next tip I am in search!

Best,
Rasmus


Re: Keyboard shortcut for Smallcaps

2013-03-25 Thread Jürgen Spitzmüller
Am Montag 25 März 2013, 08:35:08 schrieb Rasmus K. R.:
> I cannot seem to be able to figure out how to request smallcaps using a lyx
> function, so I have not been able to set a keyboard shortcut.
> 
> I have been able to set a shortcut for "Apply Last Text Style" by calling
> the function "textstyle-apply", but would prefer a direct shortcut.
> 
> I've played around with various commands, but cannot seem to find the
> correct one, and I was unable to look it up in the list of LyX functions.
> 
> Help would be appreciated,

If you mean "noun", then the function is called font-noun (here, it is bound 
to Alt+C+C).

Jürgen

> Rasmus


Re: Keyboard shortcut for Smallcaps

2013-03-25 Thread Scott Kostyshak
On Mon, Mar 25, 2013 at 4:35 AM, Rasmus K.R.  wrote:
> Hi!
>
> I'm typesetting a document where I have to apply Smallcaps a lot, using LyX
> 2.0.3.
>
> I cannot seem to be able to figure out how to request smallcaps using a lyx
> function, so I have not been able to set a keyboard shortcut.
>
> I have been able to set a shortcut for "Apply Last Text Style" by calling the
> function "textstyle-apply", but would prefer a direct shortcut.
>
> I've played around with various commands, but cannot seem to find the correct
> one, and I was unable to look it up in the list of LyX functions.
>
> Help would be appreciated,
>
> Rasmus
>

Hi Rasmus,

I haven't tested this much, but try
textstyle-update shape 3

The way to discover LFUNs is either to start LyX with -dbg action
(from the command line, if Linux) or to enable user actions in the
messages pane. You can also see a list of LFUNs and descriptions of
them in the help menu.

Scott


Keyboard shortcut for Smallcaps

2013-03-25 Thread Rasmus K . R .
Hi!

I'm typesetting a document where I have to apply Smallcaps a lot, using LyX 
2.0.3.

I cannot seem to be able to figure out how to request smallcaps using a lyx 
function, so I have not been able to set a keyboard shortcut.

I have been able to set a shortcut for "Apply Last Text Style" by calling the 
function "textstyle-apply", but would prefer a direct shortcut.

I've played around with various commands, but cannot seem to find the correct 
one, and I was unable to look it up in the list of LyX functions.

Help would be appreciated,

Rasmus