[OS X TeX] TeXShop manual on editing
Michael Sharpe via MacOSX-TeX
macosx-tex at email.esm.psu.edu
Tue Apr 20 19:58:15 CEST 2021
The following shell script may help. Save it as an executable in your path named, e.g., tsprocess.
----------CUT HERE--------
#!/bin/bash
open -a "TeXShop" "$1" # this will make $1 the front document whether or not already open
/bin/rm -f "${1%.*}.aux"
exec osascript <<END
tell application "TeXShop"
activate
delay 1
typeset (front document)
end tell
END
exit $?
----------CUT HERE--------
Then you can add tsprocess followed by the name of your current emacs tex job to your emacs tex processing script and it will tell TeXShop to process the same file.
Michael
> On Apr 20, 2021, at 10:14 AM, Herbert Schulz <herbs at wideopenwest.com> wrote:
>
>
>
>> On Apr 20, 2021, at 12:05 PM, Roussanka Loukanova <rl.stpuu at gmail.com> wrote:
>>
>> Howdy,
>> ...
>>> Last days, in my tests with a lot of files for the pstricks, in the rush, I couldn't figure out basic editing commands. So, I've been typing in Aquamacs, and excellently indeed, TeXShop would update automatically the source, which I keep opened in a TeXShop window:
>>>
>>> TeXShop Preferences > Preview > External Editor > Automatic Preview Update
>>>
>>> I had expected this option to update the pdf view in TeXShop, but good for me these days, it updates the .tex source in the opened window. It would be good to have both updated when they get changed in Aquamacs and Skim.
>>>
>>> Best Regards,
>>> Roussanka
>>
>> The usual thing is not to display the source on TeXShop after editing in an external editor but rather to use TeXShop to typeset the file and display the pdf directly. You should not only have Automatic Preview Update checked for External Editor in the Preview tab of TeXShop->Preferences but also the Configure for External Editor item checked in the On Startup section of the
>> source tab in TeXShop->Preferences.
>>
>> This works only once, when I had typed and save a file.tex in Aquamacs, without typesetting, and then I attempt to open file.tex in TexShop: wonderfully it typesets the file.tex file, without opening it, shows the console and the file.pdf!
>>
>> But if I continue typing in file.tex in Aquamacs, TeXShop can't react. I have to close the file.pdf (not necessarily quitting TeXShop) and it typesets it freshly.
>>
>> This is a very nice feature, indeed, as in my case of poor typing skills with TeXShop. It would be even better to be able to typeset again upon modified file.tex.
>>
>> Of course, I better also learn typing quickly enough in TeXShop.
>>
>> Thanks, again and agin!
>> Roussanka
>>
>> How you setup Aquamacs is not something I know about; my days of using emacs have long been gone.
>>
>> Good Luck,
>>
>> Herb Schulz
>> herbs at wideopenwest.com
>
> Howdy,
>
> There should be a way for Aquamacs to tell TeXShop to typeset so you don't need to do it manually. similarly there should be a way to sync between the Source in Aquamacs and the pdf in TeXShop. I have no familiarity woth either of these but there are folks that do that sort of thing. Ask on the list!
>
> Good Luck,
>
> Herb Schulz
> herbs at wideopenwest.com
>
>
>
>
> Powered by Mailbutler <https://urldefense.com/v3/__https://www.mailbutler.io/?utm_source=watermark&utm_medium=email&utm_campaign=watermark-essential-email__;!!Mih3wA!X8kfGbCwxLVZYZZoEMiMzd3Sn8xT3_vJmmLMYvcKCUO_Wq2wNDGajhIky9g-LoI$ >, the email extension that does it all
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: https://urldefense.com/v3/__http://www.tex.ac.uk/faq__;!!Mih3wA!X8kfGbCwxLVZYZZoEMiMzd3Sn8xT3_vJmmLMYvcKCUO_Wq2wNDGajhIk5GuWmfI$
> List Reminders and Etiquette: https://urldefense.com/v3/__https://sites.esm.psu.edu/*gray/tex/__;fg!!Mih3wA!X8kfGbCwxLVZYZZoEMiMzd3Sn8xT3_vJmmLMYvcKCUO_Wq2wNDGajhIk0ZAMCxg$
> List Archives: https://urldefense.com/v3/__http://dir.gmane.org/gmane.comp.tex.macosx__;!!Mih3wA!X8kfGbCwxLVZYZZoEMiMzd3Sn8xT3_vJmmLMYvcKCUO_Wq2wNDGajhIktDq4EaE$
> https://urldefense.com/v3/__https://email.esm.psu.edu/pipermail/macosx-tex/__;!!Mih3wA!X8kfGbCwxLVZYZZoEMiMzd3Sn8xT3_vJmmLMYvcKCUO_Wq2wNDGajhIkqY4R4WY$
> TeX on Mac OS X Website: https://urldefense.com/v3/__http://mactex-wiki.tug.org/__;!!Mih3wA!X8kfGbCwxLVZYZZoEMiMzd3Sn8xT3_vJmmLMYvcKCUO_Wq2wNDGajhIkz3AMJpk$
> List Info: https://urldefense.com/v3/__https://email.esm.psu.edu/mailman/listinfo/macosx-tex__;!!Mih3wA!X8kfGbCwxLVZYZZoEMiMzd3Sn8xT3_vJmmLMYvcKCUO_Wq2wNDGajhIkhN3o42o$
>
----------- 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.