return pimpl_->spacing;
}
+
PDFOptions & BufferParams::pdfoptions()
{
return pimpl_->pdfoptions;
return pimpl_->pdfoptions;
}
+
VSpace const & BufferParams::getDefSkip() const
{
return pimpl_->defskip;
lex >> float_placement;
} else if (prefixIs(token, "\\pdf_") || token == "\\use_hyperref") {
- string toktmp;
- toktmp = pdfoptions().readToken(lex, token);
+ string toktmp = pdfoptions().readToken(lex, token);
if (!toktmp.empty()) {
lyxerr << "PDFOptions::readToken(): Unknown token: " <<
toktmp << endl;
// The optional packages;
docstring lyxpreamble(from_ascii(features.getPackages()));
+ // PDF support. Hyperref manual: "Make sure it comes last of your loaded
+ // packages, to give it a fighting chance of not being over-written,
+ // since its job is to redefine many LATEX commands."
+ // Has to be put into lyxpreamble (preserving line-counting for error
+ // parsing).
+ odocstringstream oss;
+ pdfoptions().writeLaTeX(oss);
+ lyxpreamble += oss.str();
+
// this might be useful...
lyxpreamble += "\n\\makeatletter\n";
lyxpreamble += from_utf8(features.getBabelOptions());
}
- // PDF support. Hypreref manual: "Make sure it comes last of your loaded
- // packages, to give it a fighting chance of not being over-written,
- // since its job is to redefine many LATEX commands."
- // Has to be put into lyxpreamble (preserving line-counting for error
- // parsing).
- odocstringstream oss;
- pdfoptions().writeLaTeX(oss);
- lyxpreamble += oss.str();
-
lyxpreamble += "\\makeatother\n\n";
int const nlines =