[OS X TeX] Multiple-page editing

Alain Schremmer schremmer.alain at gmail.com
Sat Dec 19 18:43:15 EST 2009


On Dec 19, 2009, at 6:19 PM, Herbert Schulz wrote:

>
> On Dec 19, 2009, at 5:02 PM, Peter Dyballa wrote:
>
>>
>> Am 19.12.2009 um 19:10 schrieb Alain Schremmer:
>>
>>> OK, I will go the the site and see if they explain how to set up  
>>> TeXShop to use it.
>>
>>
>> I think there is nothing you can set in TeX Shop. After the first  
>> successful run TeX Shop will open a PDF viewer window. When you  
>> close it, I think, it will stay closed when run TeX again  
>> successfully. After this first run you just open the PDF file in  
>> Skim and when you allow Skim to automatically reload the file  
>> you're done.
>>
>> --
>> Greetings
>>
>>  Pete
>>
>> Imbecility, n.:
>> 	A kind of divine inspiration, or sacred fire affecting censorious  
>> critics of this dictionary.
>> 				– Ambrose Bierce: _The Devil's Dictionary_
>>
>
> Howdy,
>
> Nope... if you close the preview the next time you compile it opens  
> again.
>
> TeXShop is designed to be aid in compiling and previewing with  
> external editors but not the other way around.

Actually, http://sourceforge.net/apps/mediawiki/skim-app/index.php? 
title=TeX_and_PDF_Synchronization says:

> Editor script for TeXShop
>
> TeXShop does not have a built-in script for Skim to call. But you  
> can write a custom script to do open TeXShop from Skim. An example  
> script is the following.
>
>
> #!/bin/bash
>
> file="$1"
> line="$2"
>
> [ "${file:0:1}" == "/" ] || file="${PWD}/${file}"
> [ "${line}" == "" ] && line=1
>
> exec osascript \
>   -e "set texFile to POSIX file \"${file}\"" \
>   -e "tell application \"TeXShop\"" \
>   -e "  activate" \
>   -e "  open texFile" \
>   -e "  tell front document" \
>   -e "    refreshtext" \
>   -e "    goto line ${line}" \
>   -e "  end tell" \
>   -e "end tell"
>
> Save it to e.g. /usr/local/bin/texshop, make it executable, and set  
> the editor command in Skim's preferences to texshop (you may need  
> to use the full path) and the editor arguments to "%file" %line.
>
>


Of course, I am not going to go anywhere near that sort of things.  
But I thought that might be more in your line.

Regards
--schremmer


More information about the MacOSX-TeX mailing list