Angus Leeming wrote: > Georg Baum wrote: >>> Of course, if the converter command was run from the master buffer >>> dir, the situation would be different, since $$FName would always >>> be the right variable to use. >> >> This would work. I don't know very well all the capabilities of >> external templates. Angus, if this does not break anything, > > Well, since nobody uses them, we can't break anything > by fiddling with them ;-) > >> I propose not to introduce a new variable but to >> change the meaning of $$FName from >> "The filename exactly as the user entered it" >> to >> "The absolute filename (if the user entered an absolute >> name) or the filename relative to the master document >> (if the user entered a relative name)" > > Sounds like a plan.
Incidentally, Georg, we received a report some time back that LyX was unable to compile latex files containing references to cyrillic file names. The solution is to use MakeLatexName, so: out << "\includegraphics{" << MakeLatexName(relative_file) << "}"; As you're looking at this stuff, could you just shove them in? Regards, -- Angus