]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeX.C
"Inter-word Space"
[lyx.git] / src / LaTeX.C
index 50ea8faa4bda3f4a9f8dd46905903068d23d3663..53cf4e9241b19993ac8c5b8257ca291aaf4f16fa 100644 (file)
@@ -21,6 +21,7 @@
 #include "funcrequest.h"
 #include "support/filetools.h"
 #include "support/FileInfo.h"
+#include "support/tostr.h"
 #include "support/lstrings.h"
 #include "support/lyxlib.h"
 #include "support/systemcall.h"
@@ -106,8 +107,9 @@ bool operator!=(Aux_Info const & a, Aux_Info const & o)
  * CLASS LaTeX
  */
 
-LaTeX::LaTeX(string const & latex, string const & f, string const & p)
-               : cmd(latex), file(f), path(p)
+LaTeX::LaTeX(string const & latex, LatexRunParams const & rp,
+            string const & f, string const & p)
+       : cmd(latex), file(f), path(p), runparams(rp)
 {
        num_errors = 0;
        depfile = file + ".dep";
@@ -162,7 +164,7 @@ int LaTeX::run(TeXErrors & terr, LyXFunc * lfun)
        bool rerun = false; // rerun requested
 
        // The class LaTeX does not know the temp path.
-       bufferlist.updateIncludedTeXfiles(lyx::getcwd());
+       bufferlist.updateIncludedTeXfiles(lyx::getcwd(), runparams);
 
        // Never write the depfile if an error was encountered.