[OS X TeX] preview jumps to top of page
Claus Gerhardt
gerhardt at math.uni-heidelberg.de
Mon Nov 14 16:50:10 EST 2005
Let me post again my mail from June 3, 2005 in which I offered two
Applescripts to switch easily between these two modes.
Claus
Below are two Applescripts that activate "Single page" resp.
"MultiPage" mode. They should be saved as TeXShop's Macros and
triggered by keyboard shortcuts. In the System preferences the option
"Enable assistive devices" has to be selected.
Claus
do_menu("TeXShop", "Preview", "Display Format", "Multipage")
on do_menu(app_name, menu_name, menu_item1, menu_item2)
try
-- bring the target application to the front
tell application app_name
activate
end tell
tell application "System Events"
tell process app_name
tell menu bar 1
tell menu bar item menu_name
tell menu 1
tell menu item menu_item1
tell menu 1
click menu item menu_item2
end tell
end tell
end tell
end tell
end tell
end tell
end tell
return true
on error error_message
return false
end try
end do_menu
--Next script
do_menu("TeXShop", "Preview", "Display Format", "Single Page")
on do_menu(app_name, menu_name, menu_item1, menu_item2)
try
-- bring the target application to the front
tell application app_name
activate
end tell
tell application "System Events"
tell process app_name
tell menu bar 1
tell menu bar item menu_name
tell menu 1
tell menu item menu_item1
tell menu 1
click menu item menu_item2
end tell
end tell
end tell
end tell
end tell
end tell
end tell
return true
on error error_message
return false
end try
end do_menu
On Nov 14, 2005, at 17:46, Gary L. Gray wrote:
>
> On Nov 9, 2005, at 2:21 PM, Herbert Schulz wrote:
>
>> On Nov 9, 2005, at 1:16 PM, Herbert Schulz wrote:
>>
>>> Howdy,
>>>
>>> Right now the only way to not have it do that is to use MultiPage
>>> or Double MultiPage as the Preveiw->Display Format. You can move
>>> by screen fulls by using Space and Shift-Space in the Preview
>>> window.
>>>
>>> Good Luck,
>>>
>>> Herb Schulz
>>> (herbs at wideopenwest.com)
>>>
>>
>> Howdy,
>>
>> Of course I have that backwards: use Single Page or Double Page
>> rather than MultiPage or Double MultiPage.
>
> Herb,
>
> I had no idea that setting the "Display Format" to "Single Page"
> avoiding this jumping problem. Maybe this has been mentioned
> before, but it was news to me and it has saved me a ton of eye
> strain. I used to use "MultiPage" with a full page in view so that
> it would not "jump" and now I can set the magnification to higher
> value and not have the page jumping to the top with each typeset.
>
> I still hope that Dick gets this fixed since I prefer the
> "MultiPage" view, but now it is not as important as it used to be. :-)
>
> Thank you!
>
> -- Gary
> ------------------------- Info --------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
>
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the MacOSX-TeX
mailing list