I started using the awesome knitr package, and although I like the idea of using tikz graphics, it is not always very practical (time consuming). Thus, I finish switching between the old old pdf and tikz . Mathematical expressions, as a rule, are not processed equally in both devices; It is much more convenient for me to use LaTeX syntax in tikz , but it becomes difficult to read it in pdf , and vice versa.
Were there any attempts to provide a platform for seamless switching from one notation to another? Something like the translate(x, from="plotmath", to="tex", ams=TRUE, ...) function translate(x, from="plotmath", to="tex", ams=TRUE, ...) , which can be connected internally using knitr to the device you are using. How can this be done?
source share