>>>>> "Amir" == Amir Karger <[EMAIL PROTECTED]> writes:

Amir> On Thu, Nov 18, 1999 at 07:20:18PM +0100, Jean-Marc Lasgouttes
Amir> wrote:
>>  - In Customaization.lyx

Amir> Isn't this where you discuss writing new layouts? So why not
Amir> here?

OK, it seems reasonable. Here is the document, for your viewing
pleasure. It could use some more work, so your ideas are welcome.

JMarc

-----------------
#This file was created by <lasgoutt> Fri Nov 19 11:39:18 1999
#LyX 1.0 (C) 1995-1999 Matthias Ettrich and the LyX Team
\lyxformat 2.15
\textclass article
\language default
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize default
\spacing single 
\papersize Default
\paperpackage a4
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Section

Installing a new LaTeX package
\layout Standard

Some installations may not include a LaTeX package that you would like to
 use within LyX.
 For example, you might need FoilTeX.
 Here are the steps involved in getting the package up and running if you
 use teTeX or a web2c based distribution.
\layout Enumerate

Get the package from CTAN.
\layout Enumerate

Read the file 
\family typewriter 
texmf.cnf
\family default 
.
 It describes how to add a local 
\family typewriter 
texmf
\family default 
 directory; follow the instructions.
 You need to insert the name of your local 
\family typewriter 
texmf
\family default 
 directory in 
\family typewriter 
texmf.cnf
\family default 
.
 Under Linux, 
\family typewriter 
/usr/local
\family default 
 is a logical place to install software that did not come with your distribution
, so you might use 
\family typewriter 
/usr/local/texmf
\family default 
.
 To find 
\family typewriter 
texmf.cnf
\family default 
 , run: 
\family typewriter 
kpsewhich texmf.cnf
\layout Enumerate

Create your local 
\family typewriter 
texmf
\family default 
 directory (e.g.
\family typewriter 
/usr/local/texmf
\family default 
).
 You must follow the directory stucture of your existing 
\family typewriter 
texmf
\family default 
 directory (for example, latex packages should go under 
\family typewriter 
/usr/local/texmf/tex/latex/
\family default 
).
\layout Enumerate

Install the package.
 For example, you would unpack the foiltex tarball and create 
\family typewriter 
/usr/local/texmf/tex/latex/foiltex
\family default 
.
 The 
\family typewriter 
foiltex
\family default 
 directory contains various files.
\layout Enumerate

Do: 
\family typewriter 
texhash
\family default 
.
 This should create 
\family typewriter 
/usr/local/texmf/ls-R
\layout Enumerate

>From within LyX, do: 
\family sans 
\bar under 
O
\bar default 
ptions\SpecialChar \menuseparator

\bar under 
R
\bar default 
econfigure
\family default 
.
 Restart LyX.
\layout Standard

Now you should see your new package---for example 
\family sans 
slides (FoilTeX)
\family default 
---under 
\family sans 
\bar under 
L
\bar default 
ayout\SpecialChar \menuseparator

\bar under 
D
\bar default 
ocument
\family default 
, field 
\family sans 
\bar under 
C
\bar default 
lass
\family default 
.
\the_end

Reply via email to