On Mon, Jul 06, 2015 at 11:25:57AM +0200, Liviu Andronic wrote:
> On Mon, Jul 6, 2015 at 11:08 AM, Jean-Marc Lasgouttes
> <lasgout...@lyx.org> wrote:
> > Le 06/07/2015 00:44, Scott Kostyshak a écrit :
> >>
> >> chktex is enabled as follows:
> >>
> >> enable = params().isLatex() && !lyxrc.chktex_command.empty();
> >>
> >> This excludes it from running when knitr is in the document. Is there
> >> any easy way to have it run on the .tex file that is ultimately
> >> produced by knitr?
> >
> >
> > Continued: it would be nice if chktex was able to read sweave/knitr files. A
> > possibility could be to create a chktex wrapper that comments out these
> > chunks before calling chktex.
> >
> But what happens when the chunks are then replaced by valid LaTeX code
> (e.g. xtable(iris))? Shouldn't this be chktex'ed, too?

Ideally yes. In fact I think all chunks are replaced by valid LaTeX
code.

Scott

Reply via email to