Apologies for incomplete http here is the full address:<div><br></div><div><a href="http://code.google.com/p/texworks/issues/detail?id=261#c50">http://code.google.com/p/texworks/issues/detail?id=261#c50</a></div><div><br></div>
<div>Paul<br><br><div class="gmail_quote">On 10 February 2011 17:46, Paul A Norman <span dir="ltr"><<a href="mailto:paul.a.norman@gmail.com">paul.a.norman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear Amartyo, <div><br></div><div>Here is a Script that may help a little, change as needed.</div><div><br></div><div><a href="http://code.google.com/p/texworks/issues/detail?id=261" target="_blank">http://code.google.com/p/texworks/issues/detail?id=261</a></div>
<div><br></div><div><span style="font-family:arial, sans-serif;font-size:13px"><pre style="font-size:12px;white-space:pre-wrap;overflow-x:hidden;overflow-y:hidden;padding-left:0.7em">Searching within Large Paragraph(s) located by syncTeX from Tw Previewer.
Out of discussion: - <a href="http://tug.org/mailman/htdig/texworks/2011q1/003737.html" rel="nofollow" style="color:rgb(0, 0, 204)" target="_blank">http://tug.org/mailman/htdig/texworks/2011q1/003737.html</a>
Standard Tw Find does not give multiple results for a Find performed within in a Selected area.
INSTALLATION: Unzip anywhere under your Scripts folder (new folder or existing one or none).
USAGE: Triple Click the target paragraph / select paragraph(s) first, then run this script. Shortcut Alt+L & ALt+S
If multiple results are found, a drop down selection box is presented to the User to choose from, otherwise if one result it found - the chosen result is jumped to and highlighted.
Script has much room for improvement ...
And could be partially automated if we had access to a global varible that could be updated at this point in PDFdocument.cpp Line 1464 (ver 0.3 rev 729)
TeXDocument::openDocument(QFileInfo(curDir, filename).canonicalFilePath(), true, true, synctex_node_line(node));
<a href="http://code.google.com/p/texworks/issues/detail?id=472" rel="nofollow" style="color:rgb(0, 0, 204)" target="_blank">http://code.google.com/p/texworks/issues/detail?id=472</a></pre></span>Regards,</div><div>paul</div>
<div><div></div><div class="h5"><div><br>
<div class="gmail_quote">On 5 February 2011 21:38, Stefan Löffler <span dir="ltr"><<a href="mailto:st.loeffler@gmail.com" target="_blank">st.loeffler@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<div><div></div><div><br>
On 2011-02-04 14:58, amartyo banerjee wrote:<br>
> At the place where I work, we are very interested in adding to the<br>
> 'Jump to Source' feature in TeXworks such that one can jump to a<br>
> particular character or word in the source file that has been<br>
> highlighted in the output pdf file. It would make it much easier to<br>
> work with the LaTeX files we use in production, which often contain<br>
> very large paras.<br>
><br>
> I understand that similar functionality is implemented in TeXShop and iTeXMac2.<br>
><br>
> Is any work already being done to implement this feature? If so when<br>
> might it be available, either in svn or a release version?<br>
><br>
> If nobody else is already planning / working on it, I would appreciate<br>
> any and all pointers on how to go about implementing this feature.<br>
> Like I said, it really needs to implemented in my workplace. Also,<br>
> what would be required to get this incorporated into TexWorks, once it<br>
> is complete?<br>
<br>
</div></div>As is stated in the source code of SyncTeX [1] (which is used for<br>
synchronization in Tw), "[Access to column numbers] is not yet fully<br>
supported in TeX, the default implementation returns 0 which means the<br>
whole line." Some short tests on TL'10 support that. So, at the moment<br>
it would seem that the main problem is on the TeX side of things - I'm<br>
not sure if any work is done to solve this right now. So it would<br>
probably be best to ask for this feature on a TeX list. Once that is<br>
implemented, it should be straight-forward to get it up and running in Tw.<br>
<br>
Of course, in principle other approaches exist, such as using some<br>
string search routines to find the word that was clicked. But that is<br>
far from reliable. Just imagine a word occurring several times in a<br>
line. Or think about the complexities TeX offers, with nested commands,<br>
etc. So I think SyncTeX is the better alternative here.<br>
<br>
HTH<br>
Stefan<br>
<br>
[1] <a href="http://itexmac.sourceforge.net/SyncTeX.html" target="_blank">http://itexmac.sourceforge.net/SyncTeX.html</a><br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>