Hi,

I am stuck trying to use a LaTeX style file with Lyx. Being relatively
new to Lyx and not knowing much about LaTeX does not help me either!
Therefore my call for help to you out there:
I followed the example in 6.2.2 of the "Customizing Lyx" manual (vs.
1.1.6). What I could not figure out: into which directory does the
"myclass.sty" file in the example have to go?

Should I rather go to the users-mailing list for the remaining question?
I'll ask it anyway:

The style file I am trying to use is for journals of Meteorological
Societies, "amets.sty".
I made a new layout file by using the "article.layout" file to produce
an "amets.layout" in ~/.lyx/layouts. Its beginning is:

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article,amets.sty]{article( AMetS)}
# Article 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.
Preamble
        \usepackage{amets}
EndPreamble
# Input general definitions
Input stdclass.inc


I have not made any changes to stdclass.inc, and I don't know where to
put the "amets.sty" file.
I am including the amets.sty file here for my next questions:
After I change in Lyx: Layout->Document   to article( AMetS)
should I not be able to see paragraph environments like
asection
asubsection etc. ?

Thank you very much for your help (because if I can't get that to work,
I'll have to switch back to MS bloatware)!

Georg

===================================================================
amets.sty
% released with readrms3.tex


%   File: rms3.sty   Rev cm3
%   LaTeX style file for: Royal Meteorological Society 
%   Quarterly Journal
%   [Computer Modern fonts only]

%   Created: Page Bros (Norwich) Ltd 1995

\typeout{}
\typeout{Ramon de Elia & N. Badrinath , McGill Univ. Aug 1999:VER 1.0}
\typeout{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% headings

%asection

\newcounter{asection}
\newlength{\aboveaheadskip}
\setlength{\aboveaheadskip}{18pt plus 24pt minus 6pt}

\def\asection#1{\setcounter{asubsection}{0} 
 \refstepcounter{asection}
 \vskip\aboveaheadskip
 {\raggedright\theasection.\quad{\bf#1}\par}
 \vskip6pt}

%asubsection

\newcounter{asubsection}
\def\theasubsection{\alph{asubsection}}

\def\asubsection#1{\stepcounter{asubsection}
 \setcounter{asubsubsection}{0}
 \vskip12pt plus 9pt minus 3pt
 {\raggedright{\it\theasubsection}.\quad{\it#1}\par}
 \vskip3pt}

%asubsubsection
\newcounter{asubsubsection}
\def\theasubsubsection{\arabic{asubsubsection}}

\def\asubsubsection#1{\stepcounter{asubsubsection}
 \setcounter{asubsubsubsection}{0}
 \vskip12pt plus 9pt minus 3pt
 {\raggedright\theasubsubsection)\quad{\sc#1}\par}
 \vskip3pt}

%asubsubsubsection
\newcounter{asubsubsubsection}
\def\theasubsubsubsection{\roman{asubsubsubsection}}

\def\asubsubsubsection#1{\stepcounter{asubsubsubsection}
 \vskip12pt plus 9pt minus 3pt
 {\raggedright(\theasubsubsubsection)\quad{\it#1}\par}
 \vskip3pt}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hoffset=0.5in
\oddsidemargin=0.0in
\textwidth=6.0in
\textheight=8.5in
\topmargin=0.5in
\headheight=0.0in
\headsep=0.0in
\renewcommand{\baselinestretch}{1.66}


%%%%%%%%%%%%%%%%%%% APPENDIX Numbering %%%%%%%%%%%
\def\multiappendix#1{
 {\centering{\bf Appendix\ #1}\par}
 \vskip6pt
%\setcounter{figure}{0}
%\def\thefigure{#1.\arabic{figure}}
%\def\fnum@figure{Figure #1.\thefigure}
\setcounter{equation}{0}
\def\theequation{#1. \arabic{equation}}
\def\@eqnnum{{\rm (#1.\theequation)}}
\def\bhead##1{\vskip0pt plus 9pt minus 3pt
 {\centering{\it##1}\par}
 \vskip3pt}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% This function 'multifig' has been created to be able to
%% put the figures of the appendixes in the back of the file,
%% so that numbering will not be disrupted.
\def\multifig#1{
 {\centering{}\par}
 \vskip6pt
\setcounter{figure}{0}
\def\thefigure{#1.\arabic{figure}}
\def\fnum@figure{Figure #1.\thefigure}
\def\bhead##1{\vskip0pt plus 9pt minus 3pt
 {\centering{\it##1}\par}
 \vskip3pt}
}
%%
% Title of List of figures to Figure Captions
\renewcommand{\listfigurename}{Figure Captions}
\renewcommand{\listtablename}{Table Captions}

% Putting ':' in Figure and Table captions.
%\renewcommand{\@caption}[3]{%
%  \par
%  \addcontentsline{\ext@figure}{#1}%
%    {\protect\numberline{\the#1:}{\ignorespaces #3}}%
% \begingroup
%  \@parboxrestore
%   \if@minipage
%     \@setminipage
%   \fi
%   \normalsize
%   \@makecaption{\fnum@#1}{\ignorespaces #3}\par
%    \endgroup}

% Eliminate Page number in listoffigure command.
\renewcommand*{\l@figure}[2]{%
 Figure\setlength\@tempdima{1.3em}%
\noindent\hspace*{1.5em}#1\hfil\newline}
% Eliminate Page number in listoftables command.
\renewcommand*{\l@table}[2]{%
 Table\setlength\@tempdima{1.3em}%
\noindent\hspace*{1.5em}#1\hfil\newline}
begin:vcard 
n:Mayr;Georg
tel;fax:+43 512 507 2924
tel;work:+43 512 507 5459
x-mozilla-html:FALSE
org:University of Innsbruck;Meteorology and Geophysics
adr:;;Innrain 52;Innsbruck;;A-6020;Austria
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;0
fn:Georg Mayr
end:vcard

Reply via email to