On Fri, Jul 07, 2023 at 11:33:17AM +0300, Udicoudco wrote: > On Fri, Jul 7, 2023 at 11:30 AM Udicoudco <udifog...@gmail.com> wrote: > > \let\Scott_ > Sorry, it should be \let\foo_ of course... I mixed things a bit :) > Attached a corrected example.
Wow, that's creative! It did not work for me. I think the difference is that with knitr, it is the knitr script that is called before LaTeX is called. So I get an error from knitr: Error: Failed to parse the inline R code: mean(x\foo draws) (Reason: <text>:1:7: unexpected '\\' 1: mean(x\ ^) Perhaps I need to modify the chain, and inject a script before knitr is called that can do something similar to your approach. Thanks, Scott
signature.asc
Description: PGP signature
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel