[OS X TeX] type regular double-quote in TeXShop?
Herbert Schulz
herbs at wideopenwest.com
Thu Jul 18 15:44:43 CEST 2019
> On Jul 18, 2019, at 8:27 AM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
>
> That’s essentially the solution that Herb Schulz already posted.
>
>> On 18 Jul2019, at 4:42 AM, Luis Sequeira <lfsequeira at gmail.com> wrote:
>>
>>
>> There are a few ways to handle this.
>>
>> First, an explanation.
>>
>> What is happening when you press the double quote "
>> is that TeXShop auto completion kicks in and types ``'' (around the selected text, if any).
>>
>> That is what you normally want to happen, and I would not want to turn this off (although it can be done by editing the ~/Library/TeXShop/Keyboard/autocompletion.plist file).
>>
>> But what if you want to at some point (perhaps within a verbatim environment where you including programming code, for example) actually want to type the double quote character into your LaTeX source?
>>
>> One option is to type it somewhere else, like TextEdit, and copy it and paste it.
>> A nuisance.
>>
>> Below is the solution I came up with for this exact purpose, and that I have been using successfully for some years now.
>>
>> There is another useful feature of TeXShop: Key Bindings.
>> So I went into
>>
>> Source->Key Bindings->Edit Key Bindings File...
>>
>> and I added a new one. I used Option-" for input and a quote for output.
>>
>> So now all I have to do to get a double quote is to press the same key I would have, except with the Option modifier.
>>
>> The trick is to assign it to something that is easy to remember and that you would not use for a different purpose. Since I would have no use for the æ character that is normally typed with option-quote, that made it ideal.
>>
>> Luís Sequeira
>
> ---
> Murray Eisenberg murrayeisenberg at gmail.com
> 503 King Farm Blvd #101 Home (240)-246-7240
> Rockville, MD 20850-6667 Mobile (413)-427-5334
>
Howdy,
The only real difference is that my solution uses Macros, which require a Cmd key based shortcut, while Luis' solution uses Key Bindings so can use Alt key based `shortcuts'.
Finally, it is possible to create global keyboard `shortcuts' that will be active in all applications that use Apple's Text Framework. You can download Keybindings.zip from <https://herbs.github.io> for more information.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the macostex-archives
mailing list