<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
On 2012-03-24 21:46, <a class="moz-txt-link-abbreviated" href="mailto:navarro@us.es">navarro@us.es</a> wrote:
<blockquote cite="mid:8a655c971c6b1ef364bacd6b515fc648@us.es"
type="cite">I am trying to configure a tool to launch Yap to do
a forward search to the <acronym class="acronym">DVI</acronym>
location corresponding to the current line of the source file <code
class="filename">mydoc.tex</code>.</blockquote>
<br>
A (typesetting) tool probably is not the right place to implement
this. It's intended to process a (source) file as a whole, and thus
has no notion of a cursor position.<br>
<br>
I'd suggest implementing this as a script. Have a look at the
launchPdf.js and toogleBold.js scripts coming with TeXworks to see
how to run external programs and how to get the current cursor
position (from there, you only need to count line breaks to get the
line number).<br>
<br>
HTH<br>
Stefan<br>
</body>
</html>