My issue is that I wrote the following chunk in a rmd knitting to PDF:
A <- matrix(c(1, 2, 1, -1), nrow = 2) b <- c(1,1) matlib::showEqn(A, b, latex = T)
But the output in the tex file is:
1 \cdot x_1 &+& 1 \cdot x_2 &=& 1 \
2 \cdot x_1 &-& 1 \cdot x_2 &=& 1 \
Hence in the PDF I got the latex code printed instead of the function I need.
I know that the problem is with the
verbatim row, but how can you avoid this issue?
Thank you for your help in advance,