Nico Winger wrote:
> hello,
>
> I have created a document class and a template for the guidelines of the
> Berufsakademie Stuttgart. The class has already been used and works, but I
> would like to make it a little more professional. For formating the text I
> used the scrartcle-class and some LaTeX-Commands set as Preamble. I tried now
> to format with LyX-commands, but this just works for the text written in LyX.
> With transformating in PDFlatex the LyX-commands are ineffective. Can the
> LaTeX-Preamble be a reason of this? I have a little example (part of the
> document class), perhaps s.b. can help me... thank you
>
Yes, this is as it should be: The LyX commands only affect the
presentation in LyX itself, not the output to LaTeX. If you want to
affect the LaTeX, then you need to add the relevant commands to the
preamble. Thus, for example:
> # Input general definitions
> Input scrartcl.layout
>
>
> Preamble
> \usepackage[paper=a4paper,left=3.5cm,right=1.5cm,top=2.5cm,bottom=2.0cm]{geometry}
> \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 section
> SecNumDepth 4
> TocDepth 4
>
>
> # Change a bit Part and Part
> # Die Änderungen ändern lediglich den Zustand im LyX-Umfeld, wie krieg ich
> das hin, dass sich auch der LaTeX-PDF-Text ändert?!
>
> Counter
> Name section
> Within chapter
> End
>
the preceding change has to be made in the preamble. I can't at the
moment remember what the command is to do that, but you can find it in
the /LaTeX Companion/, to be sure, or perhaps by googling "latex change
section numbering". Someone here probably knows, too.
> #This should be the titel of the cover, but all arguments work only in the
> LyX-tex, but not in the PDF-file...
> Style Deckblatt_Titel
> Margin Static
> LabelType Static
> LabelString "Titel:"
> LabelSep x
> LabelFont
> Shape Italic
> Size Small
> Color blue
> EndFont
> Align center
> TextFont
> Family Italic
> Size larger
> Series bold
> EndFont
> BottomSep 2.0
> Spacing Onehalf
>
> End
>
Here again, relevant commands need to be entered into the preamble. The
koma-script classes provide a lot of flexibility here. See scrguide.pdf
for the details.
Richard
--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://bobjweil.com/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto