Re: clarification customizing manual

2001-03-05 Thread mike.ressler

On Sat, 3 Mar 2001, Herbert Voss wrote:

 Georg Mayr wrote:
  Should I rather go to the users-mailing list for the remaining question?

 this is the list for the documentation of lyx and it has very low
 volume. therefore you should always write to

 lyx-users@...

I semi-disagree. For getting your question answered quickly, you should
indeed go to lyx-users. However, sending it to lyx-docs flags it as
something that could possibly use rewriting in the docs.

Follow Herbert's advice. Also, look at a few of the "derived" layout
files, e.g. aastex.layout (I did that one for the American Astronomical
Society LaTeX package). Seeing how other people did it is always helpful.

Mike

-- 
Mike Ressler
[EMAIL PROTECTED]
OK, I'm lame: I don't have my own website ...




Re: clarification customizing manual

2001-03-05 Thread mike.ressler

On Sat, 3 Mar 2001, Herbert Voss wrote:

> Georg Mayr wrote:
> > Should I rather go to the users-mailing list for the remaining question?
>
> this is the list for the documentation of lyx and it has very low
> volume. therefore you should always write to
>
> lyx-users@...

I semi-disagree. For getting your question answered quickly, you should
indeed go to lyx-users. However, sending it to lyx-docs flags it as
something that could possibly use rewriting in the docs.

Follow Herbert's advice. Also, look at a few of the "derived" layout
files, e.g. aastex.layout (I did that one for the American Astronomical
Society LaTeX package). Seeing how other people did it is always helpful.

Mike

-- 
Mike Ressler
[EMAIL PROTECTED]
OK, I'm lame: I don't have my own website ...




Re: clarification customizing manual

2001-03-03 Thread Herbert Voss

Georg Mayr wrote:
 
 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?

*.sty - files depends to latex and the best way to store these files
is in ~./TeX, your private tex-dir or in /usr/local/share/texmf/latex,
your local tex-dir.

 Should I rather go to the users-mailing list for the remaining question?

this is the list for the documentation of lyx and it has very low
volume. therefore you should always write to

lyx-users@...

 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)}

\DeclareLaTeXClass{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

with this commands in the layout file the amets.sty is loaded
by default.

 # 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.

all lyx-layout files store in ~/.lyx/layouts and all *sty-files see
above.

 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. ?

the lyx-layout files are only for the wysiwyg and you'll see only
that styles which are described in any of the used layout files
in ~/.lyx/layouts or in /usr/share/lyx/layouts. modify your
amets.layout (you can adopt the standard article.layout) store
it in ~/.lyx/layouts, do a edit-reconfigure from within lyx
and restart, than all should work.


Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/




clarification customizing manual

2001-03-03 Thread Georg Mayr

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 

Re: clarification customizing manual

2001-03-03 Thread Herbert Voss

Georg Mayr wrote:
> 
> 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?

*.sty - files depends to latex and the best way to store these files
is in ~./TeX, your private tex-dir or in /usr/local/share/texmf/latex,
your local tex-dir.

> Should I rather go to the users-mailing list for the remaining question?

this is the list for the documentation of lyx and it has very low
volume. therefore you should always write to

lyx-users@...

> 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)}

\DeclareLaTeXClass{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

with this commands in the layout file the amets.sty is loaded
by default.

> # 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.

all lyx-layout files store in ~/.lyx/layouts and all *sty-files see
above.

> 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. ?

the lyx-layout files are only for the wysiwyg and you'll see only
that styles which are described in any of the used layout files
in ~/.lyx/layouts or in /usr/share/lyx/layouts. modify your
amets.layout (you can adopt the standard article.layout) store
it in ~/.lyx/layouts, do a edit->reconfigure from within lyx
and restart, than all should work.


Herbert

-- 
[EMAIL PROTECTED]
http://perce.de/lyx/