Vito De Tullio wrote:
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
This is documented in the Customization manual.
1) Can I use a custom OutputType? LyX tells me:
No. The allowed types are hardcoded.
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\"" ""
LyX will generate tex if it thinks it needs to do so. If you want to
convert TeX to something else, you can define a converter for that.
rh