Hello,
I have a custom LaTeX document class called "myreport.cls" which I have
integrated into LyX through the layout file
~/.lyx/layouts/myreport.layout (see it following my signature). This
class just introduces a few variations to the standard LaTeX report
class.
I want to setup the document defaults that show up on the
Layout-->Document menu in LyX to some predetermined values. I've
partially accomplished this but I still have three types of problems:
1. There are some defaults I can't figure out fow to change. I want the
default font to be "times," the default size to be "12," and the default
pagestyle to be "fancy." What shall I write in the layout file to
accomplish this?
2. The "Sides" and "Columns" defaults show up with the changed values
but are not passed to my class file as options so at the end the changes
do nothing. That is, the Layout-->Document menu shows "Sides=2" and
"Columns=2" as requested by the layout file but the printed document
(dvi or PS) is still onesided single column. So, how do I tell LyX that
I want not just to show my defaults in the menu but to actually
translate these into the "twoside" and "twocolumn" options for my class
file?
3. How can I get the layout file to write something to the "Extra
Options" field of the Layout-->Document menu? I thought the last
statement in the attached file would do the trick, but it doesn't. I
would extend the question to the "Float Placement" field also.
I would appreciate any directions you can give me. Thank you in advance,
--
Pedro
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass{report (Nortel)}
# Report textclass definition file. Taken from initial LyX source code
# Author : Matthias Ettrich <[EMAIL PROTECTED]>
# Transposed by Pascal Andr� <[EMAIL PROTECTED]>
# Heavily modifed and enhanced by serveral developers.
# Input general definitions
Input stdclass.inc
# a few changes to the bibliography
Style Bibliography
TopSep 4
LabelString Bibliography
# label font definition
LabelFont
Series Bold
Size Huge
EndFont
End
# Document defaults
Columns 2
Sides 2
PageStyle Fancy
SecNumDepth 3
TocDepth 3
DefaultFont
Family Times
Series Medium
Shape Up
Size 12
Color None
EndFont
ClasOption
Other openright
End