[Tex/LaTex] Set default output format in layout in Lyx

lyxlyx-layouts

I am writing a layout for a class file.

The corresponding class file specifies several \RequirePackage calls with the [dvips] option, and hence trying to compile the document using pdflatex or any of the other pdf renderers fails.

Unfortunately, pdf output is the default in Lyx. Is there a way to set the default output format to dvi in the layout file?

Best Answer

From Help > Customization:

OutputFormat [format] The file format (as defined in the LyX preferences) produced by this document class. It is mainly useful when OutputType is literate and one wants to define a new type of literate document. The format is reset to “docbook” or “latex” when the corresponding OutputType parameter is encountered.

So in your layout file you could put

OutputFormat dvi
Related Question