+2002-08-09 Angus Leeming <leeming@lyx.org>
+
+ * PreviewLoader.C (dumpPreamble): pass Buffer::filePath() to
+ Buffer::makeLaTeXFile() so that LaTeX can find \input files because
+ input@path is now set correctly.
+
2002-08-06 Angus Leeming <leeming@lyx.org>
* PreviewLoader.C: add support for preview.sty 0.73 (currently
// Why on earth is Buffer::makeLaTeXFile a non-const method?
Buffer & tmp = const_cast<Buffer &>(buffer_);
// Dump the preamble only.
- tmp.makeLaTeXFile(os, string(), true, false, true);
+ tmp.makeLaTeXFile(os, buffer_.filePath(), true, false, true);
// Loop over the insets in the buffer and dump all the math-macros.
Buffer::inset_iterator it = buffer_.inset_const_iterator_begin();
+2002-08-09 Angus Leeming <leeming@lyx.org>
+
+ * insetinclude.C (latexString): remove fudge now that I've found out
+ how to enable LaTeX to find the file using input@path.
+
2002-08-09 John Levon <levon@movementarian.org>
* insettext.h:
ostringstream os;
parent().latex(view()->buffer(), os, false, false);
- // This fails if the file has a relative path.
- // return os.str().c_str();
-
- // I would /really/ like not to do this, but don't know how to tell
- // LaTeX where to find a \input-ed file...
- // HELP!
- string command;
- string file = rtrim(split(os.str().c_str(), command, '{'), "}");
-
- if (!AbsolutePath(file))
- file = MakeAbsPath(file, view()->buffer()->filePath());
-
- ostringstream out;
- out << command << '{' << file << '}' << endl;
-
- return out.str().c_str();
+ return os.str().c_str();
}