On Thu, Apr 15, 2010 at 01:33:53PM +0200, Pavel Sanda wrote: > > ok. btw can you post the correct yap command for the documentation?
That would be \forward_search "yap -1 -s $$n$$t $$o" (no typos here, that is right $$n$$t, sigh). However, I think that we need \forward_search_dvi and \forward_search_pdf instead of simply \forward_search. Then, there is another issue. Some applications require that the files are quoted. However, there is no way to embed a quote in a preference string. For example, SumatraPDF performs a forward search when it receives the DDE command [ForwardSearch("file.pdf","file.tex",142,0,0,1)], where the quotes are essential, but the following line is not correctly parsed: \forward_search "CMCDDE SUMATRA control [ForwardSearch(\"$$o\",\"$$t\",$$n,0,0,1)]" even escaping the inner quotes. This could be overcome by introducing $$T and $$O for having the files automatically quoted like this: command = subst(command, "$$T", "\\\"" + texname + "\\\""); command = subst(command, "$$O", "\\\"" + outname + "\\\""); otherwise one has to use wrapper scripts. > do you think its good idead to add this entry into edit context menu > under bookmarks jump? That's fine with me, but I leave the decision where to add it to our GUI experts. -- Enrico