[OS X TeX] Sync with ConTeXt

Axel E. Retif axretif at igo.com.mx
Sun Sep 18 20:22:35 CEST 2005


On Sep 18, 2005, at 9:37 AM, Herbert Schulz wrote:

> On Sep 17, 2005, at 10:50 PM, Axel E. Retif wrote:
>
>> Right now I'm using TeXShop with a 320 pages book of 9 \include(d)  
>> chapters. Jumping from source to pdf always works at first try;  
>> from pdf to source sometimes I have to click in nearby places  
>> until I get to the right place in the source, but it almost always  
>> works.
>
> Howdy,
>
> My experience is that it works fine if you try to look for a region  
> of plain text since otherwise the search has a hard time finding a  
> corresponding match. After all the mark up and output are not a  
> simple one-to-one text match.

Yes, this is what Richard Koch says about it:

--------------
> When using this facility, it helps to know the underlying  
> mechanism. Suppose you click on a spot in the source file. TeXShop  
> obtains the string 20 characters wide centered about the click, and  
> searches for the corresponding string in the pdf file. If it finds  
> this string exactly once, it circles the pdf string in red and  
> declares success. But often, source strings contain formatting  
> commands and do not match output strings; this is certainly true  
> when typesetting mathematics. So if the search fails, TeXShop backs  
> up 5 characters, obtains a new string 20 characters wide, and tries  
> again. It repeats this operation 20 times if necessary, and if none  
> of the tries succeeds it repeats the operation 20 more times  
> looking forward past the original string rather than backward. If  
> none of these search operations succeeds, TeXShop gives up.
>
> Obviously, then, it is best to click on sentences rather than  
> formulas. Paragraphs with heavy markup may not synchronize well.  
> Experiments show, however, that searches usually succeed and  
> clicking can be done without really thinking about selecting an  
> appropriate spot.
>
> Synchronizing from the preview window to the source window works  
> the same way, but there is an additional complication. Projects may  
> contain several source files, inserted using the \include or \input  
> methods. TeXShop handles this complication by assuming that all  
> \include and \input statements occur in the root file, using one of  
> the commands \include{this file}, \input{this file}, or \import 
> {this file}. In the initial implementation, it makes a list of the  
> first twenty such files and searches all of them, declaring success  
> if a string occurs exactly once in exactly one of the files.
-----------------

Best

Axel
------------------------- 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 macostex-archives mailing list