>>>>> "R" == R Lahaye <[EMAIL PROTECTED]> writes:
R> Jean-Marc Lasgouttes wrote: >> >>>>> "R" == R Lahaye <[EMAIL PROTECTED]> writes: >> R> Hmmm, I had that in mind too, but couldn't find the actual code R> that calls the HTML viewer. Do you know where that happens? >> It is just one of the viewers (in converter.C, I guess). Why do >> you need to access this code? Can't you do everything in >> lib/configure.m4? What feature is missing? R> We should start with using the full path for the file to be viewed: R> ${HTML_VIEWER} "file:///full/path/to/document.html" which should R> work for all viewers (well it does for mozilla and netscape). R> A wrapper, that should come with the viewer, then automatically R> converts this into ${HTML_VIEWER} -remote R> "openurl(file:///full/path/to/document.html, new-window)" in case R> the viewer is running already. R> The latter is not a task for LyX! R> So: first step would be to make LyX use the full-path to the html R> file. OK, in case you have not found it yet, the code is in converters.C, method Format::view. I really thought \viewer commands could contain $$ variables, but it seems that the file name is just appended to them. WHat you could do it: 1/ if command name does not contain token_from do commandname += ' ' + token_base; 2/ substitute token_base with the name of the file. This will allow both \viewer "html" "netscape" and \viewer "html" "mozilla file:/$$i:" to work. In converters, $$i is a relative path, and what you want for the viewer is probably a full path. To avoid confusing people, you may want to choose another name for the variable, like $$fi (Full Input name). JMarc