I have tried to type variables in R code with LaTeX textgreek and knitr.
The problem is in source code formatting.
There are no delimiting whitespaces in case of greek.
You see?
The source Rnw:
\documentclass{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage{textgreek}
\begin{document}
<<>>=
α <- 1
β <- 2
γ <- α + β
α
β
γ
a <- 1
b <- 2
c <- 3
d <- a + b + c
a
@
\end{document}
How can I fix that?