- string format = documentClass().outputFormat();
- if (format == "latex") {
- if (useNonTeXFonts)
- // FIXME: In this context, this means "xetex or luatex"
- // with fontspec. We cannot differentiate further here.
- // But maybe use a more appropriate string.
- return "xetex";
- if (encoding().package() == Encoding::japanese)
- return "platex";
- }
- return format;