[OS X TeX] Inserting TeX code via a contextual menu

Claus Gerhardt claus.gerhardt at uni-heidelberg.de
Tue Dec 21 01:29:36 CET 2010


When the service is supposed to get (some dummy) text as input, then, whenever text is selected in TeXShop, the service will appear after a ctrl-click. After trashing LatexIt the service appear at the end of the contextual menu items otherwise in a submenu "Services" together with a bunch of LatexIt services.

Below is a modified service that is expecting text as input.

Claus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.workflow.zip
Type: application/zip
Size: 69327 bytes
Desc: not available
URL: <http://tug.org/pipermail/macostex-archives/attachments/20101221/bd46d1e5/attachment.zip>
-------------- next part --------------


On Dec 20, 2010, at 23:04, Claus Gerhardt wrote:

> You could use TeXShop macros for this, some macros inserting TeX code already exist.
> 
> Another way of doing it would be provided by the application MathFormulas which is part of TeXHelpers. The typeset results of some TeX code is shown and the code will be inserted at the point where the cursor is by clicking on the corresponding image similar as in the Latex panel. If you had the source code of MathFormulas you could define your own examples, or you could write your own application.
> 
> Claus
> 
> 
> On Dec 20, 2010, at 21:20, William Adams wrote:
> 
>> Is something like this already implemented?
>> 
>> Open up AppleScript Editor
>> 
>> <CTRL>-click in a new script
>> 
>> Scroll down to the Folder icons at the bottom, then select some bit of code.
>> 
>> I know we have the Templates button, but this is wonderfully interactive, and allows one to easily indicate where the code should go.
>> 
>> I'd love to be able to have a folder where I could stash all of my TeX code snippets, then insert them thus.
>> 
>> William
>> 
>> -- 
>> William Adams
>> senior graphic designer
>> Fry Communications
>> Sphinx of black quartz, judge my vow.
>> 
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
>> List Archive: http://tug.org/pipermail/macostex-archives/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>> 
> 
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 



More information about the macostex-archives mailing list