Shortcut

mauvia
2014-01-16
2014-01-16
  • mauvia

    mauvia - 2014-01-16

    It is not clear to me how I could do the following.

    I want to have a shortcut such that if I press ALT+' I get the accent `

    More in general I want to insert additional shortcuts such that if I press "ALT + something" I get some character of my choice. I find this very convenient, for characters I do not have on my keyboard) and I am doing this with Winedt editor.

    Is it possible to do similar things in texstudio?

    Thanks
    Maurizio

     
  • Tim Hoffmann

    Tim Hoffmann - 2014-01-16

    Yes, you can do this as a User Macro:
    Macros -> Edit Macros ...
    1. Create a new macro of type normal (i.e. it just inserts the text you specfied.
    2. Choose an arbitrary name, e.g. 'Accent'
    3. Type the accent in the text field.

    Then go to Options -> Shorcuts and assign Alt + ' to it.

    With this solution you will need one Macro per key.

    There's also a related solution using a script. Here, you can handle arbitrary many replacements, however this does not work with Alt+... because it does not catch a key sequence but translates the character before writing it to the editor.

     


Anonymous

Cancel  Add attachments