yihui/knitr — Issue #107: Default format for \Sexpr
Author: dmenne
Created: 2012-01-25 07:32:02+00:00
State: open

Different default fonts for numbers and text is an unfortunate choice.

The value is \Sexpr{3}, and shouts \Sexpr{"Hello"}.

gives:

The value is 3, and shouts \texttt{Hello}.

It can be overriden by

knit_hooks$set(inline = function(x) x)

which I am sure everyone will do, so I suggest to make it the default