Discussion:
Keyboard shortcut for Smallcaps
Rasmus K.R.
2013-03-25 08:35:08 UTC
Permalink
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
Scott Kostyshak
2013-03-25 08:48:33 UTC
Permalink
Post by 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
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
Rasmus K. Rendsvig
2013-03-25 09:00:19 UTC
Permalink
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
Jürgen Spitzmüller
2013-03-25 08:51:09 UTC
Permalink
Post by 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
Post by Rasmus K.R.
Rasmus
Rasmus K.R.
2013-03-25 09:38:31 UTC
Permalink
Post by Jürgen Spitzmüller
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
Jürgen Spitzmüller
2013-03-25 10:21:32 UTC
Permalink
Post by 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

Loading...