namespace {
-const int LYX_FORMAT = 236;
+const int LYX_FORMAT = 237;
} // namespace anon
<< "\\begin_document\n";
// now write out the buffer parameters.
- ofs << "\n\\begin_header\n";
+ ofs << "\\begin_header\n";
params().writeFile(ofs);
ofs << "\\end_header\n";
-
+
// write the text
ofs << "\n\\begin_body\n";
text().write(*this, ofs);
void Buffer::makeLinuxDocFile(string const & fname,
OutputParams const & runparams,
- bool body_only)
+ bool body_only)
{
ofstream ofs;
if (!openFileWrite(ofs, fname))
ofs << " PUBLIC \"-//OASIS//DTD DocBook V4.2//EN\"";
string preamble = params().preamble;
+ if (runparams.flavor != OutputParams::XML ) {
+ preamble += "<!ENTITY % output.print.png \"IGNORE\">\n";
+ preamble += "<!ENTITY % output.print.pdf \"IGNORE\">\n";
+ preamble += "<!ENTITY % output.print.eps \"IGNORE\">\n";
+ preamble += "<!ENTITY % output.print.bmp \"IGNORE\">\n";
+ }
+
string const name = runparams.nice ? ChangeExtension(pimpl_->filename, ".sgml")
: fname;
preamble += features.getIncludedFiles(name);