Guenter Milde wrote: >>> 2) tell lyx that, to generate the pdf (via pdflatex), it must do 3 >>> passes >>> (pass 0): generate the FILE.tex from FILE.lyx (as all documents, I >>> think) >>> (pass 1): pdflatex FILE.tex (as all documents?) >>> (pass 2): pdflatex FILE-frn.tex (this file is auto-generated!) >>> (pass 3): pdflatex FILE.tex (include the FILE-frn.pdf) >> I did not find any suggestion on the web > This is not easily done currently. There might be a way of (ab)using the > support for literate programming with noweb (as done by sweave support) or > to use an external inset for your purpose.
mmm I don't know how "clean" this solution is, but I think I find a way... http://github.com/ZeeD/frontespizio basically I use the "OutputType" directive (no documentation about, I just found this in some .layout files) to tell lyx that I'm *not* gonna create a simple .tex file... then I tell lyx that, to generate the pdf, I must run the 3 passes... but 1) Can I use a custom OutputType? LyX tells me: LyX: Unknown output type `frontispiece' [around line 9 of file ~/.lyx/layouts/frontespizio.module current token: 'frontispiece' context: ''] 2) How can I tell lyx to generate the .tex? Now I use an *ugly* command to convert directly from lyx (with Frontespizio) to pdf: \format "frontispiece" "" "Frontespizio" "" "" "" "document" \converter "frontispiece" "pdflatex" "lyx -e pdflatex \"$$i.lyx\" && pdflatex \"$$o\" && pdflatex \"$$i-fnt.tex\" && pdflatex \"$$o\"" "" -- By ZeD
