[OS X TeX] Adding menu item and shortcut to TeXShop
Kirk Lowery
empirical.humanist at gmail.com
Sun Feb 15 17:06:12 CET 2009
On Sun, Feb 15, 2009 at 11:04 AM, Herbert Schulz <herbs at wideopenwest.com> wrote:
>
> On Feb 15, 2009, at 9:20 AM, Herbert Schulz wrote:
>
>>
>> On Feb 15, 2009, at 7:28 AM, Kirk Lowery wrote:
>>
>>> I've been trying to add XeLaTeX to the Typeset menu item in TeXShop. I
>>> modified KeyEquivalents.plist but apparently it only will modify the
>>> short cut for an already existing menu item. Or is
>>> KeyEquivalents.plist the right way to do this and I'm doing it wrong?
>>>
>>> So, to start with, is it possible to add a menu item to TeXShop's default
>>> menus?
>>>
>>> Kirk
>>
>>
>> Howdy,
>>
>> The KeyEquivalents.plist file is meant to be a way to change keyboard
>> shortcuts. There seems to be a problem with it and it doesn't work as
>> advertised. It is NOT meant to change the Menu System. this can only be
>> changed by working with resources and re-compiling TeXShop.
>>
>> You can only get xelatex as an engine file which is observable in the drop
>> down list on the Source/Preview Window's Tool Bar. The easiest way to tell
>> TeXShop to use the xelatex engine is to place the line
>>
>> %%!TEX TS-program = xelatex
>>
>> at the top of your file. I'd also add the line
>>
>> %%!TEX encoding = UTF-8 Unicode
>>
>> after it to guarantee TeXShop knows how to read and save the file.
>>
>> I've made a Template file (stored in ~/Library/TeXShop/Templates) which
>> has those lines as well as my ``standard'' preamble for setting up fonts.
>>
>> Good Luck,
>>
>> Herb Schulz
>> (herbs at wideopenwest dot com)
>>
>
>
> Howdy,
>
> One thing I forgot to mention... Once you have that line at the top of your
> file TeXShop will execute that engine using the Typeset->Typeset (Cmd-T)
> menu item.
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)
Thanks for the tip. I do include that line in the source document, but
when I "cmd-shift-B" to invoke BibTeX, cmd-t reruns BibTeX and I have
to manually reset it to XeLaTeX again.
Kirk
More information about the macostex-archives
mailing list