#include "support/convert.h"
#include "support/debug.h"
+#include "support/docstream.h"
#include "support/FileName.h"
#include "support/filetools.h"
#include "support/gettext.h"
&& providesScale(ot1, complete, nomath)) {
if (!os.str().empty())
os << ',';
- ostringstream value;
- value << float(scale) / 100;
- os << subst(to_ascii(scaleoption_), "$$val", value.str());
+ os << subst(to_ascii(scaleoption_), "$$val",
+ convert<std::string>(float(scale) / 100));
}
return os.str();
}
os << altFont(osffont_).getLaTeXCode(dryrun, ot1, complete, sc, osf, nomath, scale);
if (!preamble_.empty())
- os << preamble_;
+ os << to_utf8(preamble_);
return os.str();
}
error = true;
continue;
- default:
+ default:
break;
}
switch (static_cast<LaTeXFontTags>(le)) {
lex >> packageoption_;
break;
case LF_PREAMBLE:
- preamble_ = lex.getLongString("EndPreamble");
+ preamble_ = lex.getLongString(from_ascii("EndPreamble"));
break;
case LF_PROVIDES: {
lex.eatLine();