Mael Hilléreau wrote: > Hi, > > I would like to know why LyX adds a '-t letter' option to dvips > command when converting from DVI to PostScript and if there's a way to > avoïd that. > > This is a problem for me since it has the undesirable effect of changing > paper orientation from landscape to portrait in the PostScript file. > > Note that this option is added even if not it is not present in the > 'Preferences>Converters>DVI -> PostScript' dialog. > > Thanks in advance, > > Mael. >
It appears that there's a LyXRC variable "print_landscape_flag" which defaults to print_landscape_flag = "-t landscape"; You can reset it to something else from the Outputs->Printer pane (Qt frontend) of the Edit->Preferences dialog. (See the "Landscape:" field.) string const Converters::dvips_options(Buffer const * buffer) { string result; ... if (buffer->params.orientation == BufferParams::ORIENTATION_LANDSCAPE && buffer->params.papersize2 != BufferParams::VM_PAPER_CUSTOM) result += ' ' + lyxrc.print_landscape_flag; return result; } -- Angus