On Thu, Apr 23, 2020 at 09:31:53PM +0200, Dr Eberhard Lisse wrote: > Hi, > > I have a LyX/knitR document which is > > Document -> Settings -> Formats > Default Output Format: PDF (LuaTeX) > > produces PDF without issue. > > Export to TeX > > latexmk pgf.tex > > produces PDF without issue > > > Export to Rnw > > R -e 'library(knitr);knit("pgf.Rnw")' && latexmk pgf.tex > > fails as there is no > > \usepackage[latin9]{luainputenc} > > in the Rnw which is however present in the pgf.tex. > > Should that not be there as determined by the Default Output Format?
I can see why you would expect that. Currently in LyX, from what I understand, the default output format does not affect non-default output. If your default output is set to PDF (LuaTeX) and you export to knitr, LyX thinks "OK they don't want the default output format since they chose a different output". However, I do see your point that if LyX had to guess what flavor of TeX it should write the .Rnw in, choosing the flavor that is in the chain for the default output format is a good guess. This discussion seems somewhat related to the following feature, which is not yet implemented: https://wiki.lyx.org/GSoC/GSoCProjectIdeasFor2014#toc4 Scott
signature.asc
Description: PGP signature
-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users