Le 27/01/2011 15:02, Jürgen Spitzmüller a écrit :
        if (isDocBook()
            || isLiterate()
            || params().useNonTeXFonts
            || params().encoding().package() == Encoding::japanese) {
                if (formats.empty())
                        return string();
                // return the first we find
                return formats.front()->name();
        }

Perhaps it is enough to take out the isLiterate() condition, given that
sweave can deal with the default view formats? I know nothing of sweave, so
I don't know if this works.

Yes, it would make sense. Why are the others special cases needed, BTW?

JMarc

Reply via email to