schussman.com logo

Sweave and typeface control

Sweave has a tendency to preclude latex packages from setting typefaces, apparently. Here’s a much simpler fix (R 2.3.0+) than my hacky solution of using \input or \include to typeset the sweave-generated file in a wrapper file. (I suppose I should upgrade my R installation so that I can actually use this, but I shudder at the thought of updating all those packages again. I’ll put it off for just a few more weeks, I think.)

  1. Hi.

    Just a quick note to say that I received another reply off-list suggesting asking whether the order of the \usepackage statements mattered. A little testing reveals that, in my case, this does make a difference, and may mean you don’t need to upgrade just yet. Try putting your typeface stuff AFTER Sweave is loaded.

    Hope this helps,

    Mark


    — Mark Wardle    Nov 9, 06:51 AM    #