Keyboard shortcut for Smallcaps
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
Re: Keyboard shortcut for Smallcaps
On Mon, Mar 25, 2013 at 4:35 AM, Rasmus K.R. rends...@gmail.com 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
Re: Keyboard shortcut for Smallcaps
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
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
Scrolling with keyboard?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi when correcting / reviewing something, it would be nice to be able to scroll the document, but that the cursor stays on the same position on the screen, i.e. if I scroll one line down, the cursor jumps one line down as well. Is there a keyboard shortcut for this? Or can I define one? Cursor down is not ideal, as I would like to have the cursor in the middle of the screen. Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRUBT+AAoJENvXNx4PUvmC18YH+wbH0ODkqoiyEmsIy2mpePuo RkOR5xRQJxdFJt9C6V+mirDb9dZLYu2emBEjW4kUi6oM1EewHst+h5FttcdTuXPN XcsFdSh1/QR3fC+h1xhnxHFBl+FTMhy6ftfho777sJ7meM8KUbWk7DCkw3uG5CGJ t7tbNI989nxclJVbNmZchx74ObFfWlYYorB+oehrPJhjopqQNCLFHg/lvCy0ieVl a3bAeXudx0a0nfIGvbIh/Dx8teChyAdtf3TwzkzEEcbVtI6tjWeUPVUran25ZCbE H8ED8EWGXt/PEsyBUoiZNpGQ9tAG3LH/SVMB22ebitN0xl+lCPbdPpdn3nGxDVk= =6Ugi -END PGP SIGNATURE-
Re: Scrolling with keyboard?
On Mon, Mar 25, 2013 at 10:12 AM, Rainer M Krug r.m.k...@gmail.com wrote: when correcting / reviewing something, it would be nice to be able to scroll the document, but that the cursor stays on the same position on the screen, i.e. if I scroll one line down, the cursor jumps one line down as well. Is there a keyboard shortcut for this? Or can I define one? Cursor down is not ideal, as I would like to have the cursor in the middle of the screen. This has been discussed before in a different context, namely making LyX behave like a typewriter machine. One partial solution is proposed here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg86552.html . Add new shortcut and assign: command-sequence break-paragraph; screen-recenter to shift+return Adapt it to your needs. Come to think about it, we could revive the old and unpopular http://www.lyx.org/trac/ticket/6692 . Essentially we could come up with a 'Review' or 'View only' mode in LyX that would Disable Editing and temporarily append 'screen-recenter' to the up/down and pgup/pgdown commands. This way the document would be read-only and always centered on the screen, thus facilitating reviewing the document. I think it should be rather straightforward to implement this as all the necessary LFUNs are already there. Regards, Liviu
Re: Keyboard shortcut for Smallcaps
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
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: Scrolling with keyboard?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/03/13 10:25, Liviu Andronic wrote: On Mon, Mar 25, 2013 at 10:12 AM, Rainer M Krug r.m.k...@gmail.com wrote: when correcting / reviewing something, it would be nice to be able to scroll the document, but that the cursor stays on the same position on the screen, i.e. if I scroll one line down, the cursor jumps one line down as well. Is there a keyboard shortcut for this? Or can I define one? Cursor down is not ideal, as I would like to have the cursor in the middle of the screen. This has been discussed before in a different context, namely making LyX behave like a typewriter machine. One partial solution is proposed here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg86552.html . Add new shortcut and assign: command-sequence break-paragraph; screen-recenter to shift+return Adapt it to your needs. Perfect - I assigned command-sequence up; screen-recenter to Shift-Ctrl-up and command-sequence down; screen-recenter to Shift-Ctrl-down Thanks a lot, Rainer Come to think about it, we could revive the old and unpopular http://www.lyx.org/trac/ticket/6692 . Essentially we could come up with a 'Review' or 'View only' mode in LyX that would Disable Editing and temporarily append 'screen-recenter' to the up/down and pgup/pgdown commands. This way the document would be read-only and always centered on the screen, thus facilitating reviewing the document. I think it should be rather straightforward to implement this as all the necessary LFUNs are already there. Regards, Liviu - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRUDstAAoJENvXNx4PUvmC6ncH+wS867r1uUu2MENu2AAnn/M3 YqDbHPSgGXkrU16jrkZFO2tOVqJMGXbrON0QmbGFjr2aKdlEqVMh7YFRLyrnu2t7 ueG3M20Nmna6g+C8c6uqD9UyDv+jqs7Bx8KQPcG6RkR3AxM7f4IkBqDmiPMaP5kQ jVZV+jC7Y3vVVwnkGM+CY2LbTe3h75hE1Aed5054cWxst6kJVjYDw6PoQTZPoF6L 8MnEspHmMRK0tYGtX1kA60l3c+k2GKYOo0Ngh9Cmcf5EexDZUFpuo1Z+/mWpM/mw pVdn2LP0sslGUtlXajL2Fz0lgr3LbfpCbiGjL7qUMynaz1QPBySWNtB65UKzNZo= =l12P -END PGP SIGNATURE-
Re: Cross-Reference to figure
On 22. mars 2013 10:17, Matthias Schmidt wrote: When I insert a cross-reference to a figure, the cross-reference writes there the number of the chapter with the figure. How is the way, to write there the number of the figure instead of the number of the chapter? What you insert, is a cross reference to a label. (Not to the figure itself.) If the label is placed inside the caption for your (floating) figure, then this will work as intended. The label will pick up the figure number, and so any reference to that label will print the figure number. If the label is placed inside the floating figure but outside the caption, then it might refer to the chapter number instead. (Especially if the label comes before the caption). Generally, a label will look backwards in the text, and use the first numbered entity it finds. That might be a figure caption, or a chapter/section/subsection, or an enumeration. So, put your label inside the caption, or immediately after the caption. Then, the cross reference will print the figure number. Helge Hafting
Re: Creating pdf forms template
- Original Message - From: Rainer M Krug r.m.k...@gmail.com -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am really looking forward to a working example - but could we please keep this discussion on lyx-users, as it has nothing to do with devel? Thanks, Rainer Dear Rainer This discussion was made in both user and developers lists because my questions has two purposes: 1. to have a working example of forms in lyx and 2. To make developers realize that a toolbox for form design should be made for native support for this inside lyx (as you can see my example is full of ERT code) Regards Alex
Re: Automatic scrolling upon entering math mode inside a caption
Uwe Stöhr uwestoehr at web.de writes: Am 27.09.2010 22:06, schrieb Will: Hmm, I didn't realize this was important before, but it seems I only have this problem when I have View Source open on the bottom of the window. This is because the source window shows you with the default settings only the content of the current paragraph. So depending on the amount your have already in your caption, it needs more space to display the new math code. This old thread was the only mention I could find of this problem ... but I still experience this behavior in LyX 2 regardless of what is open or not open at the bottom of the window (in particular, regardless of whether View Source is open), so there must be more to the story. Whenever the cursor enters a math mode element that is inside any kind of box (Figure caption, LyX note, etc.), via pointing device or arrow keys, the contents of the editing window are immediately scrolled to place the math mode element at the top. I am running LyX 2.0.0 on Ubuntu 11.10 x86_64. I could not find any bug reports on this topic, so I wonder if any others are having the same problem. Thomas
Re: Automatic scrolling upon entering math mode inside a caption
On Mon, Mar 25, 2013 at 11:08 AM, Thomas Coffee thomasmcof...@gmail.com wrote: Whenever the cursor enters a math mode element that is inside any kind of box (Figure caption, LyX note, etc.), via pointing device or arrow keys, the contents of the editing window are immediately scrolled to place the math mode element at the top. On closer examination, the behavior is actually more complex: it appears that upon entering or creating a math mode element inside a box, LyX attempts to scroll the math mode element (if necessary and possible) such that vertical space appearing below it in the editing window is greater than or equal to the vertical extent of the box. (I previously believed it tried to place the math mode element at the top because all my examples were done inside boxes greater than the height of the window.) Can anyone reproduce this? Thomas
Keyboard shortcut for Smallcaps
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
Re: Keyboard shortcut for Smallcaps
On Mon, Mar 25, 2013 at 4:35 AM, Rasmus K.R. rends...@gmail.com 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
Re: Keyboard shortcut for Smallcaps
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
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
Scrolling with keyboard?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi when correcting / reviewing something, it would be nice to be able to scroll the document, but that the cursor stays on the same position on the screen, i.e. if I scroll one line down, the cursor jumps one line down as well. Is there a keyboard shortcut for this? Or can I define one? Cursor down is not ideal, as I would like to have the cursor in the middle of the screen. Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRUBT+AAoJENvXNx4PUvmC18YH+wbH0ODkqoiyEmsIy2mpePuo RkOR5xRQJxdFJt9C6V+mirDb9dZLYu2emBEjW4kUi6oM1EewHst+h5FttcdTuXPN XcsFdSh1/QR3fC+h1xhnxHFBl+FTMhy6ftfho777sJ7meM8KUbWk7DCkw3uG5CGJ t7tbNI989nxclJVbNmZchx74ObFfWlYYorB+oehrPJhjopqQNCLFHg/lvCy0ieVl a3bAeXudx0a0nfIGvbIh/Dx8teChyAdtf3TwzkzEEcbVtI6tjWeUPVUran25ZCbE H8ED8EWGXt/PEsyBUoiZNpGQ9tAG3LH/SVMB22ebitN0xl+lCPbdPpdn3nGxDVk= =6Ugi -END PGP SIGNATURE-
Re: Scrolling with keyboard?
On Mon, Mar 25, 2013 at 10:12 AM, Rainer M Krug r.m.k...@gmail.com wrote: when correcting / reviewing something, it would be nice to be able to scroll the document, but that the cursor stays on the same position on the screen, i.e. if I scroll one line down, the cursor jumps one line down as well. Is there a keyboard shortcut for this? Or can I define one? Cursor down is not ideal, as I would like to have the cursor in the middle of the screen. This has been discussed before in a different context, namely making LyX behave like a typewriter machine. One partial solution is proposed here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg86552.html . Add new shortcut and assign: command-sequence break-paragraph; screen-recenter to shift+return Adapt it to your needs. Come to think about it, we could revive the old and unpopular http://www.lyx.org/trac/ticket/6692 . Essentially we could come up with a 'Review' or 'View only' mode in LyX that would Disable Editing and temporarily append 'screen-recenter' to the up/down and pgup/pgdown commands. This way the document would be read-only and always centered on the screen, thus facilitating reviewing the document. I think it should be rather straightforward to implement this as all the necessary LFUNs are already there. Regards, Liviu
Re: Keyboard shortcut for Smallcaps
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
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: Scrolling with keyboard?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/03/13 10:25, Liviu Andronic wrote: On Mon, Mar 25, 2013 at 10:12 AM, Rainer M Krug r.m.k...@gmail.com wrote: when correcting / reviewing something, it would be nice to be able to scroll the document, but that the cursor stays on the same position on the screen, i.e. if I scroll one line down, the cursor jumps one line down as well. Is there a keyboard shortcut for this? Or can I define one? Cursor down is not ideal, as I would like to have the cursor in the middle of the screen. This has been discussed before in a different context, namely making LyX behave like a typewriter machine. One partial solution is proposed here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg86552.html . Add new shortcut and assign: command-sequence break-paragraph; screen-recenter to shift+return Adapt it to your needs. Perfect - I assigned command-sequence up; screen-recenter to Shift-Ctrl-up and command-sequence down; screen-recenter to Shift-Ctrl-down Thanks a lot, Rainer Come to think about it, we could revive the old and unpopular http://www.lyx.org/trac/ticket/6692 . Essentially we could come up with a 'Review' or 'View only' mode in LyX that would Disable Editing and temporarily append 'screen-recenter' to the up/down and pgup/pgdown commands. This way the document would be read-only and always centered on the screen, thus facilitating reviewing the document. I think it should be rather straightforward to implement this as all the necessary LFUNs are already there. Regards, Liviu - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRUDstAAoJENvXNx4PUvmC6ncH+wS867r1uUu2MENu2AAnn/M3 YqDbHPSgGXkrU16jrkZFO2tOVqJMGXbrON0QmbGFjr2aKdlEqVMh7YFRLyrnu2t7 ueG3M20Nmna6g+C8c6uqD9UyDv+jqs7Bx8KQPcG6RkR3AxM7f4IkBqDmiPMaP5kQ jVZV+jC7Y3vVVwnkGM+CY2LbTe3h75hE1Aed5054cWxst6kJVjYDw6PoQTZPoF6L 8MnEspHmMRK0tYGtX1kA60l3c+k2GKYOo0Ngh9Cmcf5EexDZUFpuo1Z+/mWpM/mw pVdn2LP0sslGUtlXajL2Fz0lgr3LbfpCbiGjL7qUMynaz1QPBySWNtB65UKzNZo= =l12P -END PGP SIGNATURE-
Re: Cross-Reference to figure
On 22. mars 2013 10:17, Matthias Schmidt wrote: When I insert a cross-reference to a figure, the cross-reference writes there the number of the chapter with the figure. How is the way, to write there the number of the figure instead of the number of the chapter? What you insert, is a cross reference to a label. (Not to the figure itself.) If the label is placed inside the caption for your (floating) figure, then this will work as intended. The label will pick up the figure number, and so any reference to that label will print the figure number. If the label is placed inside the floating figure but outside the caption, then it might refer to the chapter number instead. (Especially if the label comes before the caption). Generally, a label will look backwards in the text, and use the first numbered entity it finds. That might be a figure caption, or a chapter/section/subsection, or an enumeration. So, put your label inside the caption, or immediately after the caption. Then, the cross reference will print the figure number. Helge Hafting
Re: Creating pdf forms template
- Original Message - From: Rainer M Krug r.m.k...@gmail.com -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am really looking forward to a working example - but could we please keep this discussion on lyx-users, as it has nothing to do with devel? Thanks, Rainer Dear Rainer This discussion was made in both user and developers lists because my questions has two purposes: 1. to have a working example of forms in lyx and 2. To make developers realize that a toolbox for form design should be made for native support for this inside lyx (as you can see my example is full of ERT code) Regards Alex
Re: Automatic scrolling upon entering math mode inside a caption
Uwe Stöhr uwestoehr at web.de writes: Am 27.09.2010 22:06, schrieb Will: Hmm, I didn't realize this was important before, but it seems I only have this problem when I have View Source open on the bottom of the window. This is because the source window shows you with the default settings only the content of the current paragraph. So depending on the amount your have already in your caption, it needs more space to display the new math code. This old thread was the only mention I could find of this problem ... but I still experience this behavior in LyX 2 regardless of what is open or not open at the bottom of the window (in particular, regardless of whether View Source is open), so there must be more to the story. Whenever the cursor enters a math mode element that is inside any kind of box (Figure caption, LyX note, etc.), via pointing device or arrow keys, the contents of the editing window are immediately scrolled to place the math mode element at the top. I am running LyX 2.0.0 on Ubuntu 11.10 x86_64. I could not find any bug reports on this topic, so I wonder if any others are having the same problem. Thomas
Re: Automatic scrolling upon entering math mode inside a caption
On Mon, Mar 25, 2013 at 11:08 AM, Thomas Coffee thomasmcof...@gmail.com wrote: Whenever the cursor enters a math mode element that is inside any kind of box (Figure caption, LyX note, etc.), via pointing device or arrow keys, the contents of the editing window are immediately scrolled to place the math mode element at the top. On closer examination, the behavior is actually more complex: it appears that upon entering or creating a math mode element inside a box, LyX attempts to scroll the math mode element (if necessary and possible) such that vertical space appearing below it in the editing window is greater than or equal to the vertical extent of the box. (I previously believed it tried to place the math mode element at the top because all my examples were done inside boxes greater than the height of the window.) Can anyone reproduce this? Thomas
Keyboard shortcut for Smallcaps
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
Re: Keyboard shortcut for Smallcaps
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
Re: Keyboard shortcut for Smallcaps
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
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
Scrolling with keyboard?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi when correcting / reviewing something, it would be nice to be able to scroll the document, but that the cursor stays on the same position on the screen, i.e. if I scroll one line down, the cursor jumps one line down as well. Is there a keyboard shortcut for this? Or can I define one? Cursor down is not ideal, as I would like to have the cursor in the middle of the screen. Thanks, Rainer - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRUBT+AAoJENvXNx4PUvmC18YH+wbH0ODkqoiyEmsIy2mpePuo RkOR5xRQJxdFJt9C6V+mirDb9dZLYu2emBEjW4kUi6oM1EewHst+h5FttcdTuXPN XcsFdSh1/QR3fC+h1xhnxHFBl+FTMhy6ftfho777sJ7meM8KUbWk7DCkw3uG5CGJ t7tbNI989nxclJVbNmZchx74ObFfWlYYorB+oehrPJhjopqQNCLFHg/lvCy0ieVl a3bAeXudx0a0nfIGvbIh/Dx8teChyAdtf3TwzkzEEcbVtI6tjWeUPVUran25ZCbE H8ED8EWGXt/PEsyBUoiZNpGQ9tAG3LH/SVMB22ebitN0xl+lCPbdPpdn3nGxDVk= =6Ugi -END PGP SIGNATURE-
Re: Scrolling with keyboard?
On Mon, Mar 25, 2013 at 10:12 AM, Rainer M Krugwrote: > when correcting / reviewing something, it would be nice to be able to scroll > the document, but that > the cursor stays on the same position on the screen, i.e. if I scroll one > line down, the cursor > jumps one line down as well. > > Is there a keyboard shortcut for this? Or can I define one? Cursor down is > not ideal, as I would > like to have the cursor in the middle of the screen. > This has been discussed before in a different context, namely making LyX behave like a typewriter machine. One partial solution is proposed here: http://www.mail-archive.com/lyx-users@lists.lyx.org/msg86552.html . Add new shortcut and assign: command-sequence break-paragraph; screen-recenter to shift+return Adapt it to your needs. Come to think about it, we could revive the old and unpopular http://www.lyx.org/trac/ticket/6692 . Essentially we could come up with a 'Review' or 'View only' mode in LyX that would "Disable Editing" and temporarily append 'screen-recenter' to the up/down and pgup/pgdown commands. This way the document would be read-only and always centered on the screen, thus facilitating reviewing the document. I think it should be rather straightforward to implement this as all the necessary LFUNs are already there. Regards, Liviu
Re: Keyboard shortcut for Smallcaps
> 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
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: Scrolling with keyboard?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 25/03/13 10:25, Liviu Andronic wrote: > On Mon, Mar 25, 2013 at 10:12 AM, Rainer M Krugwrote: >> when correcting / reviewing something, it would be nice to be able to scroll >> the document, >> but that the cursor stays on the same position on the screen, i.e. if I >> scroll one line down, >> the cursor jumps one line down as well. >> >> Is there a keyboard shortcut for this? Or can I define one? Cursor down is >> not ideal, as I >> would like to have the cursor in the middle of the screen. >> > This has been discussed before in a different context, namely making LyX > behave like a > typewriter machine. > > One partial solution is proposed here: > http://www.mail-archive.com/lyx-users@lists.lyx.org/msg86552.html . > > Add new shortcut and assign: command-sequence break-paragraph; screen-recenter > > to shift+return > > Adapt it to your needs. Perfect - I assigned command-sequence up; screen-recenter to Shift-Ctrl-up and command-sequence down; screen-recenter to Shift-Ctrl-down Thanks a lot, Rainer > > > Come to think about it, we could revive the old and unpopular > http://www.lyx.org/trac/ticket/6692 . Essentially we could come up with a > 'Review' or 'View > only' mode in LyX that would "Disable Editing" and temporarily append > 'screen-recenter' to the > up/down and pgup/pgdown commands. This way the document would be read-only > and always centered > on the screen, thus facilitating reviewing the document. I think it should be > rather > straightforward to implement this as all the necessary LFUNs are already > there. > > Regards, Liviu > - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRUDstAAoJENvXNx4PUvmC6ncH+wS867r1uUu2MENu2AAnn/M3 YqDbHPSgGXkrU16jrkZFO2tOVqJMGXbrON0QmbGFjr2aKdlEqVMh7YFRLyrnu2t7 ueG3M20Nmna6g+C8c6uqD9UyDv+jqs7Bx8KQPcG6RkR3AxM7f4IkBqDmiPMaP5kQ jVZV+jC7Y3vVVwnkGM+CY2LbTe3h75hE1Aed5054cWxst6kJVjYDw6PoQTZPoF6L 8MnEspHmMRK0tYGtX1kA60l3c+k2GKYOo0Ngh9Cmcf5EexDZUFpuo1Z+/mWpM/mw pVdn2LP0sslGUtlXajL2Fz0lgr3LbfpCbiGjL7qUMynaz1QPBySWNtB65UKzNZo= =l12P -END PGP SIGNATURE-
Re: Cross-Reference to figure
On 22. mars 2013 10:17, Matthias Schmidt wrote: When I insert a cross-reference to a figure, the cross-reference writes there the number of the chapter with the figure. How is the way, to write there the number of the figure instead of the number of the chapter? What you insert, is a cross reference to a label. (Not to the figure itself.) If the label is placed inside the caption for your (floating) figure, then this will work as intended. The label will pick up the figure number, and so any reference to that label will print the figure number. If the label is placed inside the floating figure but outside the caption, then it might refer to the chapter number instead. (Especially if the label comes before the caption). Generally, a "label" will look backwards in the text, and use the first numbered entity it finds. That might be a figure caption, or a chapter/section/subsection, or an enumeration. So, put your label inside the caption, or immediately after the caption. Then, the cross reference will print the figure number. Helge Hafting
Re: Creating pdf forms template
- Original Message - From: "Rainer M Krug"-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am really looking forward to a working example - but could we please keep this discussion on lyx-users, as it has nothing to do with devel? Thanks, Rainer Dear Rainer This discussion was made in both user and developers lists because my questions has two purposes: 1. to have a working example of forms in lyx and 2. To make developers realize that a toolbox for form design should be made for native support for this inside lyx (as you can see my example is full of ERT code) Regards Alex
Re: Automatic scrolling upon entering math mode inside a caption
Uwe Stöhr web.de> writes: > > Am 27.09.2010 22:06, schrieb Will: > > > Hmm, I didn't realize this was important before, but it seems I only > > have this problem when I have "View Source" open on the bottom of the > > window. > > This is because the source window shows you with the default settings > only the content of the current paragraph. So depending on the amount > your have already in your caption, it needs more space to display the > new math code. This old thread was the only mention I could find of this problem ... but I still experience this behavior in LyX 2 regardless of what is open or not open at the bottom of the window (in particular, regardless of whether "View Source" is open), so there must be more to the story. Whenever the cursor enters a math mode element that is inside any kind of box (Figure caption, LyX note, etc.), via pointing device or arrow keys, the contents of the editing window are immediately scrolled to place the math mode element at the top. I am running LyX 2.0.0 on Ubuntu 11.10 x86_64. I could not find any bug reports on this topic, so I wonder if any others are having the same problem. Thomas
Re: Automatic scrolling upon entering math mode inside a caption
On Mon, Mar 25, 2013 at 11:08 AM, Thomas Coffeewrote: > Whenever the cursor enters a math mode element that is inside any kind of box > (Figure caption, LyX note, etc.), via pointing device or arrow keys, the > contents of the editing window are immediately scrolled to place the math mode > element at the top. On closer examination, the behavior is actually more complex: it appears that upon entering or creating a math mode element inside a box, LyX attempts to scroll the math mode element (if necessary and possible) such that vertical space appearing below it in the editing window is greater than or equal to the vertical extent of the box. (I previously believed it tried to place the math mode element at the top because all my examples were done inside boxes greater than the height of the window.) Can anyone reproduce this? Thomas