Hi all, I'm trying to figure out the magic behind $ (the dollar sign) in LaTeX mode, with no luck.
In LaTeX mode when, say, 2+2=4 is highlighted and the $ is pressed, $2+2=4$ is what you get.
Who (what command or code) does this task?
In general: How to discover the command performed by a shortcut? Is there a way?
Many thanks in advance.
-- ßlue
On Jul 4, 2011, at 4:19 AM, ßlue ßlue wrote:
Hi all, I'm trying to figure out the magic behind $ (the dollar sign) in LaTeX mode, with no luck.
In LaTeX mode when, say, 2+2=4 is highlighted and the $ is pressed, $2+2=4$ is what you get.
Who (what command or code) does this task?
In general: How to discover the command performed by a shortcut? Is there a way?
Menu: Bundles/Select Bundle Item.
In the dialog's search field, click on the magnifier and select "Key Equivalent". Now you can enter your shortcut, and the matching command(s) will show.
Gerd
Gerd Knops-2 wrote:
Menu: Bundles/Select Bundle Item.
In the dialog's search field, click on the magnifier and select "Key Equivalent". Now you can enter your shortcut, and the matching command(s) will show.
Thank you Gerd for your very useful and fast answer! Very good to know!
But in the case of the $ shortcut (in LaTeX mode) it doesn't work. Any idea? (I have an Italian keyboard, does it matter?)
TIA
On Mon, Jul 4, 2011 at 17:40, ßlue ßlue bblue@mac.com wrote:
Gerd Knops-2 wrote:
Menu: Bundles/Select Bundle Item.
In the dialog's search field, click on the magnifier and select "Key Equivalent". Now you can enter your shortcut, and the matching command(s) will show.
Thank you Gerd for your very useful and fast answer! Very good to know!
But in the case of the $ shortcut (in LaTeX mode) it doesn't work. Any idea?
In the Bundle Editor, in the LaTeX bundle, you can find a Preferences item called “Miscellaneous”. Inside that, the “smartTypingPairs” property for LaTeX is redefined to include the $ sign, along with the usual suspects. That's where this particular behaviour comes from.
HTH, Martin
Martin Kühl-3 wrote:
In the Bundle Editor, in the LaTeX bundle, you can find a Preferences item called “Miscellaneous”. Inside that, the “smartTypingPairs” property for LaTeX is redefined to include the $ sign, along with the usual suspects. That's where this particular behaviour comes from.
Thanks Martin, this sound interesting! I'm so sorry, but I'm can't find the way you show.
In Bundles > Bundles Editor > Show Bundle Editor I can find the LaTeX bundle, but the Preferences inside it is a command (invoking configure.py), not something containing a Miscellaneous section...
On the other hand, the command Bundles > LaTeX > Preferences… opens a dialog with two section: Typesetting and Viewing. No Miscellaneous at all...
Thanks for your efforts guys!
On Jul 4, 2011, at 9:25, ßlue ßlue wrote:
I'm so sorry, but I'm can't find the way you show.
In Bundles > Bundles Editor > Show Bundle Editor I can find the LaTeX bundle, but the Preferences inside it is a command (invoking configure.py), not something containing a Miscellaneous section...
On the other hand, the command Bundles > LaTeX > Preferences… opens a dialog with two section: Typesetting and Viewing. No Miscellaneous at all...
You want the item in the bundle *named* “Miscellaneous”, which is of type preferences:
Kevin Reid-3 wrote:
You want the item in the bundle *named* “Miscellaneous”, which is of type preferences:
Great! Thank you Kevin!
And thank you, again, Gerd and Martin.