latex - knitr compilation fails with R error message and babel package -
have @ minimal example. works fine when babel package commented out.
\documentclass{article} \usepackage[dutch]{babel} \begin{document} <<>>= abc() #a non-existing function @ \end{document} with babel package error. error depends on language well. no error english, french or italian. error dutch, german or danish. problem seems occur languages have umlauts (ä, ö, ...)
! argument of \language@active@arg" has }. <inserted text> \par l.67 ...\#\# error: not find function "abc"} }\end{kframe} i've run across `}' doesn't seem match anything. example, `\def\a#1{...}' , `\a}' produce error. if proceed now, `\par' i've inserted cause me report runaway argument might root of problem. if `}' spurious, type `2' , go away.
try:
\usepackage[t2a]{fontenc} \usepackage[utf8]{inputenc} \usepackage[dutch,english]{babel} r , latex can have weird text encoding problems when using non-alphanumeric characters.
Comments
Post a Comment