#include "output_xhtml.h"
#include "OutputParams.h"
#include "TextClass.h"
+#include "texstream.h"
#include "support/debug.h"
#include "support/docstream.h"
// glyphs, except if full-unicode aware backends
// such as XeTeX or LuaTeX are used, and with pLaTeX.
bool const multibyte_possible = runparams.isFullUnicode()
- || (buffer().params().bufferFormat() == "platex"
+ || (buffer().params().encoding().package() == Encoding::japanese
&& runparams.encoding->package() == Encoding::japanese);
if (!multibyte_possible && !runparams.encoding->hasFixedWidth()) {
if (ins == 0)
return docstring();
- TexRow texrow;
odocstringstream ods;
- otexstream os(ods, texrow);
+ otexstream os(ods, false);
ins->getArgs(os, runparams);
ins->getArgument(os, runparams);
//
// NOTE that } is not allowed in blah2.
regex const reg("(.*)\\\\label\\{(.*?)\\}(.*)");
- string const new_cap("\\1\\3},label={\\2");
+ string const new_cap("$1$3},label={$2");
return from_utf8(regex_replace(to_utf8(cap), reg, new_cap));
}