Angus Leeming wrote: >> Instead of the use_latex_path bool >> - result = subst(s, "$$FName", params_.filename); >> + string subst_path = use_latex_path ? >> + latex_path(params_.filename) : params_.filename; >> + result = subst(s, "$$FName", subst_path); >> you could also define a $$LName variable. Then the converter would be >> able to tell which format it wants. > > Good idea.
Actually, it's not. We'd have to define additional variables for $$FName, $$Basename, $$FPath, $$Tempname and $$Sysdir That's just too error prone and confusing. Much better to pass an additional argument to the private doSubstitution member function. -- Angus