Hello,
I'm creating a documentclass and a template for a dissertation and have a
problem with the cover... I wanted to create new environment for each part
of the cover (title, date, name, company etc.). Was no problem in the
LyX-output, but for PDF I have to declare the environments with
LaTeX-Commands (like the way it is done in the letter-layouts)... Does s.o.
have an example of a self-created latex-command? I have to do it to give
every single command its own position on the cover... My first tries look
like this...:
(...)
# Input general definitions
Input scrartcl.layout
Preamble
\usepackage[paper=a4paper,left=3.5cm,right=1.5cm,top=2.5cm,bottom=2.0cm]{geo
metry}
\renewcommand{\sfdefault}{phv}
\sffamily
\fontsize{11}{11}
\linespread{1.5}
\usepackage[T1]{fontenc}
\pagenumbering{Roman}
\usepackage{scrpage2}
\pagestyle{scrheadings}
\ihead[]{}
\ohead[]{}
\chead[]{\pagemark}
\cfoot[]{}
\renewcommand{\pnumfont}{\normalfont\sffamily}
\setkomafont{footnote}{\sffamily}
\setlength{\parindent}{0pt}
\setlength{\parskip}{2ex}
\usepackage[latin1]{inputenc}
Endpreamble
MaxCounter Counter_Section
SecNumDepth 3
TocDepth 3
# Change a bit Part and Part
Style Deckblatt_Titel
LeftMargin MMMMMMM
LatexType Command
LatexName Deckblatt_Titel
LabelType Static
LabelString "Titel:"
LabelSep x
LabelFont
Shape Italic
Color blue
EndFont
TextFont
Family Sans
Series Bold
Size larger
EndFont
BottomSep 2.0
Spacing Other 0.9
Preamble
\newcommand{\Deckblatt_Titel}[1]{\pagebreak\startbreaks\setlength{\marginpar
width}{35mm}}
EndPreamble
End
(...)
With the Preamble in the Style Deckblatt_Titel latex has problems...
Somebody an idea why? Thank you very much...
best wishes
Nico
PS: Thanks for the great work you do with this really great program...