Re: Boxing multiline equations : variations

2001-06-28 Thread krzys

>sorry, my example was not for the multiline stuff.
>this is very special, so write direct to
>comp.text.tex

Thank you very much for your help. Actually, I won't
write to them, I don't want to do some TeX
programming. I am very happy with LyX, and I want to
say this a great idea and great work.
It's just "funny" to notice sometimes how most
powerful tools suffer by nature of a lack of
flexibility ... (or something like that ...).

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif





Re: ieee class document and images

2001-06-28 Thread A. Gunes Koru


I had this problem before and searched the internet.. I remember that I
found a solution and added it to the end of my IEEEtran.cls file. Please
see the attachment. You will make use of it like below (this is how I
could end one of my papers). In this example "gunes" and "tian" are *.eps
files. You give the filenames as a parameter after {biography}. Pay
attention to the size of your photograph. (should be 25mmx32mm).. I hope
this will be useful

\begin{biography}{gunes}
{A. G{\"u}ne{\c s} Koru}
 received a B.Sc. in Computer Engineering degree from Ege University,
Izmir, Tur key in 1996 and a M.Sc. in Computer Engineering degree from
Dokuz Eylul University in 1998. Currently, he is in the Ph.D. in Computer
Science program in Southern Methodist University, Dallas, TX. He is also
expecting a M.Sc. degree in Software Engineer ing from SMU. His research
interests include software reliability engineering, software testing and
quality assurance, software architecture, and software design.
\end{biography}


\begin{biography}{tian} 
{Dr. Jeff Tian} 
My advisor. 
\end{biography}










***

A. Gunes Koru

Research Assistant, Ph.D. Student

Southern Methodist University
Computer Science and Engineering Department
Science and Information Building Room 317
Dallas, TX 75205


Home: 214 691 5633
Work: 214 768 2005
Cell: 214 893 7311
http://www.seas.smu.edu/~gkoru
Email: [EMAIL PROTECTED]

***

On Thu, 28 Jun 2001, morten wrote:

> hi
> I have solved my IEEE template problem by downloading a ieee class file from
> the internet.
> Now my problem is how to insert the personal images. At the end of the article
> there is room for some kind of "who am I" entry, along with an image. But how
> do I bind an image to this blank rectangle?
> mo 
> -- 
> --
> E-Mail: morten <[EMAIL PROTECTED]>
> Date: 28-Jun-2001
> Time: 19:00:26
> 
> Currently working hard for the LAI at INSA-lyon
> --
> 


%%I added a minor change to the Biography section. May 2, 2001, Dallas, TX. 
%%It takes the photo 25mmx32mm as a parameter
%%A. Gunes Koru
%%
%% IEEEtran.cls
%%
%% (hopefully) minor changes for \LaTeXe
%% by Peter N"uchter (!PN) [EMAIL PROTECTED]
%% all changes marked with !PN
%%
%% WARNING: math font problems and workaround:
%%  Standard math commands like
%%  $\mathbf{N}(0,P(0))$
%%  will not work properly. The reason is, that this is
%%  a simple hack of an old LaTeX2.09 style files.
%%  To get it running, I used the packages
%%  'rawfonts' and 'oldlfont'
%%  They are responsible for the font problems.
%%  This is a known feature, see
%%  http://www.tex.ac.uk/CTAN/latex/bugs.html
%%
%%  WORKAROUND:
%%  Use an additional pair of braces, like
%%  {\mathbf{y}}
%%  to introduce an additional level of scope.
%%  Examples:
%%  $\mathbf{N}(0,P(0))$ but ${\mathbf{N}}(0,P(0))$
%%  $\mathcal{N}(0,P(0))$ but ${\mathcal{N}}(0,P(0))$
%%  $\mathcal{G}_{t}$ but ${\mathcal{G}}_{t}$
%%  $\mathfrak{G}_t$ but ${\mathfrak{G}}_t$
%%
%%
%% Changes: 10.01.1996
%%  \@maxsep removed
%%  \@dblmaxsep removed
%%  \typeout{Upgraded to `IEEEtran.cls' <10-Jan.-1996>.} added
%%  \usepackage{rawfonts} added
%%  \usepackage{oldlfont} added
%%  \renewcommand{\normalsize}{\fontsize{10}{12}\selectfont} added
%%  \AtBeginDocument{\parindent1.0em} added
%%
%% Changes: 14.05.1996
%%  \setlength - bock added.
%%  \renewcommand{\normalsize}{... hopefully fixed!
%%  \topsep defs inserted at pointsize declarations
%% ^^-- this is a little bit tricky. I fiddled around until
%%  I nearly obtained the same result as with LaTeX209.
%%  I think we can live with that now?
%%
%% Changes: 1.5.1997
%%  Inclusion of math-font-problem-section on top of this file!
%%
%%
%% Resulting Differenzes between \LaTeX209 and \LaTeX:
%%  Slightly different formatting.
%%
%%
%  IEEEtran.sty  %%
%%% ===
%%%  @LaTeX-style-file{
%%%author  = "Gerry Murray and Silvano Balemi",
%%%version = "2.5.4",
%%%date= "30-August-1993",
%%%filename= "IEEEtran.sty",
%%%address = "Automatic Control Lab, ETH Zurich, Switzerland"
%%%email   = "[EMAIL PROTECTED],
%%%keywords= "LaTeX, IEEE Transactions, publisher style",
%%%mainserver  = "via E-mail from [EMAIL PROTECTED] ",
%%%docstring   = "This is a LaTeX style file for preparation
%%%   of submission and final versions

ieee class document and images

2001-06-28 Thread morten

hi
I have solved my IEEE template problem by downloading a ieee class file from
the internet.
Now my problem is how to insert the personal images. At the end of the article
there is room for some kind of "who am I" entry, along with an image. But how
do I bind an image to this blank rectangle?
mo 
-- 
--
E-Mail: morten <[EMAIL PROTECTED]>
Date: 28-Jun-2001
Time: 19:00:26

Currently working hard for the LAI at INSA-lyon
--



Re: using if/then/else with sections of text (was Re: bilingual documents ?)

2001-06-28 Thread Herbert Voss

Ralph Boland wrote:
> 
> > http://www.educat.hu-berlin.de/~voss/lyx/IfThen/ifthen.html#ifthen

> In my case I have to deal with proceeding and electronic versions
> of papers or paper vs chapters of my thesis etc.  Rather than
> have multiple copies of these documents and then
> have to update them all when I make a change I would like
> to store them all into one lyx document.  Herbert's solution
> allows me to do this but requires that I use a lot of ERT
> (evil red text) and abandon much of the advantage of
> using lyx over latex.

you can define your own lyx-paragraph-layouts. for example 
save the attached layouts in ~/.lyx/layouts as option.inc
and insert in ~/.lyx/layouts/article.layout the line
Input option.inc

Restart lyx and you'll get two more lyx paragraph-layouts
OptionTrue
OptionFalse

choosing the first the text appears in red and for the
second in green. the boolean variable myOption is predefined
as true, so the text in green will be ignored. changing this
default in latex preamble or anywhere in the text with
\setboolean{myOption}{false}

the red text is ignored. 

Herbert




-- 
http://www.educat.hu-berlin.de/~voss/lyx/

# Extended textclass definition file. 
# Author : Herbert Voss <[EMAIL PROTECTED]>
# 
# General
Preamble
 \usepackage{ifthen}
 \newboolean{myOption}
 \setboolean{myOption}{true}
 \newcommand\OptionTrue[1]{%
\ifthenelse{\boolean{myOption}}{#1}{}
 }
 \newcommand\OptionFalse[1]{%
\ifthenelse{\boolean{myOption}}{}{#1}
 }
EndPreamble

#===
# Style OptionTrue - Herbert Voss 010627
#===
Style OptionTrue
  MarginStatic
  LatexType Command
  LatexName OptionTrue
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
  Font
Color   Red
  EndFont
End

#===
# Style OptionFalse - Herbert Voss 010627
#===
Style OptionFalse
  MarginStatic
  LatexType Command
  LatexName OptionFalse
  ParIndent MM
  ParSkip   0.4
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
  Font
Color   Green
  EndFont
End





using if/then/else with sections of text (was Re: bilingual documents ?)

2001-06-28 Thread Ralph Boland

Herbert Voss wrote:

> Olivier Tubach wrote:
> >
> > is it possible to have in a lyx document :
> >
> > some english text
> > the french translation
> >
> > other chapter
> >
> > some english text
> > the french translation
> >
> > and export only the english version (or the french version) ?
>
> have a look at
>
> http://www.educat.hu-berlin.de/~voss/lyx/IfThen/ifthen.html#ifthen
>
> it's a similiar situation
>
> Herbert
>
> --
> http://www.educat.hu-berlin.de/~voss/lyx/

It is great that latex has support for this capability.
However I consider this capability sufficiently useful
that it would be good if lyx were to support  it in a nice
GUI kind of way.

In my case I have to deal with proceeding and electronic versions
of papers or paper vs chapters of my thesis etc.  Rather than
have multiple copies of these documents and then
have to update them all when I make a change I would like
to store them all into one lyx document.  Herbert's solution
allows me to do this but requires that I use a lot of ERT
(evil red text) and abandon much of the advantage of
using lyx over latex.



Of interest, I also have to send versions of my papers to
my supervisor or to co-authors.

It would be very useful to be able to insert comments in the
middle of a paragraph.  e.g.  (break sentence in two)
   (give reference)

I guess margin comments are supposed to provide this
facility.  However I would like:
  1)  The comment marker to be more visible.
 Like the bright yellow and large box of the Note marker.
  2)  The ability to have the comment appear in
the text rather than have to open up the marker
(like math equations).
This ability needs to controllable on an individual
 comment basis and on a global basis.
  3)  The ability to "go to prev/next comment".  Thus if someone
has marked up my paper with comments I would like to
be able to go through them one at a time.  I would want
to be able to program a key to do this.
  4)   I personally wouldn't want them printed as happens with
margin comments.  Personal tastes may vary here.
I suppose this could be controllable too.
   5)  Note that a Note comment cannot be used here because
 it doesn't allow math equations etc. to be placed in them.


When I teach (my first) university course this fall I may
get my students to do their assignments in lyx.
Then I or my teaching assistants could place our comments directly
into the assignment and send the marked versions back.

It would also be a great tool if conferences/journals would accept lyx files and
have referees return commented lyx files to the authors.  Don't hold your
breath on this one though.


Sorry that I can't volunteer to actually implement any of these features.

Thanks

Ralph Boland





Re: Bibtex/ List with pages

2001-06-28 Thread Paul Borgermans

You may generate pdf files with ps2pdf and the hyperref package, this puts
cross-links with the page numbers after each entry of the bibliography. 

Arnd Geldermann wrote:
> 
> Hi all,
> 
> i am using lyx 1.1.6. and bibtex. I would like to now, if there is any
> possiblity to make list like a
> bibliography, showing not only the references but also the number of the
> used pages from the cite command.
> Has anybody an idea. (Such a list is very usefull to controll the
> citations)
> 
> Thanks Arnd



auto insertion of .lyx files

2001-06-28 Thread Gary Ray (Seattle)

All,
Is there an internal lyx command to insert .lyx files inside a
master file?  What I do is use Matlab
to create a bunch of tables written out in lyx format and then manually I
insert them as LyX files, but I would like a more automatic method.

Thanks,

Gary



Re: bilingual documents ?

2001-06-28 Thread Herbert Voss

Olivier Tubach wrote:
> 
> is it possible to have in a lyx document :
> 
> some english text
> the french translation
> 
> other chapter
> 
> some english text
> the french translation
> 
> and export only the english version (or the french version) ?

have a look at

http://www.educat.hu-berlin.de/~voss/lyx/IfThen/ifthen.html#ifthen

it's a similiar situation

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/





Re: How to change a paragraph's background color

2001-06-28 Thread Herbert Voss

Claus Hentschel wrote:
> 
> Using a colorbox, i.e. (completely in tred, too)
> 
> \colorbox{lightgray}{here is may text which goes over many lines}
> 
have a look at
http://www.educat.hu-berlin.de/~voss/lyx/color/color.html#paragraph

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/




Re: bilingual tests in lyx

2001-06-28 Thread Herbert Voss

"Ramón Flores d'as Seixas" wrote:
> 
> I am proud and lazy user of Lyx. I use lyx for almost all my writing work, but
> there is a task that I don't know how to do it with lyx. As a teacher I need to
> do bilingual test as the following:
> 
> 1) What of the following sentences Qual das seguintes afirmações é falsa:
>is false:
> 
> [ ] Lyx is a great program. O Lyx é um programa óptimo
> [ ] LyX is the first WYSIWYMO Lyx é o primeiro processador de
> document processor. documentos WYSIWYM.

try package parallel

Herbert


-- 
http://www.educat.hu-berlin.de/~voss/lyx/





Re: errors running latex

2001-06-28 Thread Lars Gullik Bjønnes

Kathryn <[EMAIL PROTECTED]> writes:

| here is an example file...
| 
| #This file was created by  Thu Jun 28 20:38:40 2001
| #KLyX 0.10 (C) 1995-1998 Matthias Ettrich and the LyX and KLyX Teams
| \lyxformat 2.15
| \textclass article
| \language default
| \inputencoding latin

This inputencoding looks wrong... shouldn't it be "latin1"?

-- 
Lgb



Re: Beginner: use of Jpeg, Png + lyx preview and html output

2001-06-28 Thread Dekel Tsur

On Wed, Jun 27, 2001 at 08:52:33PM +1000, Kathryn Andersen wrote:
> > The only weakness I see (after several hours trying lyx -I'm using
> > 1.1.6fix2) is about images. You can import .eps files, but a 20K PNG
> > file turns into a 1MB eps file.
> 
> Yep.

Nope. See below.

> Regarding conversions to EPS...
> 
> 1) I found that using the ImageMagic convert program to produce EPS
> files from PNG files does, indeed, make very big files.
> However, if I use Save As.. EPS from Gimp, I get smaller files.
> They are still noticeably bigger than the PNG files, though.

ImageMagic can create small files (only 30% bigger than the original) if you
convert into a level 2 Postscript file (the default is a level 1 file):

  convert file.png eps2:file.eps



errors running latex

2001-06-28 Thread Kathryn

here is an example file...


#This file was created by  Thu Jun 28 20:38:40 2001
#KLyX 0.10 (C) 1995-1998 Matthias Ettrich and the LyX and KLyX Teams
\lyxformat 2.15
\textclass article
\language default
\inputencoding latin
\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 Standard

this is an example ...
\the_end



bilingual documents ?

2001-06-28 Thread Olivier Tubach

Hello,

is it possible to have in a lyx document :

some english text
the french translation

other chapter

some english text
the french translation

and export only the english version (or the french version) ?

Best regards
Olivier Tubach





RE: bilingual tests in lyx

2001-06-28 Thread Juergen Vigna

I do this using a 2 column tabular. In 1.1.6 this should be easily possible as
there you have full paragraph support inside a cell. Oviously you should make
a backup of your documents before doing this as the fileformat of 1.1.6 tabulars
is completely different from versions before and you will not be able to
go back to 1.1.5 if you find that 1.1.6 is not good enough for you!!!)

 Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

"Time is an illusion.  Lunchtime doubly so."
-- Ford Prefect, _Hitchhiker's Guide to the Galaxy_




RE: How to change a paragraph's background color

2001-06-28 Thread Juergen Vigna


On 28-Jun-2001 Claus Hentschel wrote:

> Using a colorbox, i.e. (completely in tred, too)
> 
> \colorbox{lightgray}{here is may text which goes over many lines}

Did you try:

\colorbox{lightgray}{\parbox{\linewidth}{here is may text which goes over many lines}}

   Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen VignaE-Mail:  [EMAIL PROTECTED]
Italienallee 13/N   Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen   Web: http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Many people are unenthusiastic about their work.




Re: erros during LaTex run...

2001-06-28 Thread Dekel Tsur

On Thu, Jun 28, 2001 at 07:44:40PM +1000, Kathryn Wotton wrote:
> > > Hey, 
> > > Ive had a few problems with viewing a preview of any documents ive done in
> > > klyx, sometimes when I do file -> Preview -> view DVI, it comes up with an
> > > alert message saying "there were errors during the LaTex run. One error
> > > detected. You should try to fix it."
> > > I have no idea what the problem is and it just comes up with an error box
> > > somewhere in the document!
> > > Thanks in advance!
> > > Kathryn Wotton
> > 
> > What is written in the dialog which is opened when you click on the error box?
> > 
> > One common problem is when you put the lyx file in a directory whose name
> > contain spaces. You should not do that.
> > 
> It says
> !LaTex Error:File 'latin.def' not found.
> 
> I.116\endinput
> ^^M
> ***(cannot\read from terminal in nonstop modes)

Can you send me a (short) example file ?



Re: erros during LaTex run...

2001-06-28 Thread Kathryn Wotton

On Thu, 28 Jun 2001, Dekel Tsur wrote:

> On Thu, Jun 28, 2001 at 04:59:42PM +1000, Kathryn Wotton wrote:
> > Hey, 
> > Ive had a few problems with viewing a preview of any documents ive done in
> > klyx, sometimes when I do file -> Preview -> view DVI, it comes up with an
> > alert message saying "there were errors during the LaTex run. One error
> > detected. You should try to fix it."
> > I have no idea what the problem is and it just comes up with an error box
> > somewhere in the document!
> > Thanks in advance!
> > Kathryn Wotton
> 
> What is written in the dialog which is opened when you click on the error box?
> 
> One common problem is when you put the lyx file in a directory whose name
> contain spaces. You should not do that.
> 
It says
!LaTex Error:File 'latin.def' not found.

I.116\endinput
^^M
***(cannot\read from terminal in nonstop modes)




bilingual tests in lyx

2001-06-28 Thread Ramón Flores d'as Seixas

Hi:

I am proud and lazy user of Lyx. I use lyx for almost all my writing work, but
there is a task that I don't know how to do it with lyx. As a teacher I need to
do bilingual test as the following: 


1) What of the following sentences Qual das seguintes afirmações é falsa:
   is false:

[ ] Lyx is a great program. O Lyx é um programa óptimo
[ ] LyX is the first WYSIWYMO Lyx é o primeiro processador de 
document processor. documentos WYSIWYM.
[ ] Lyx is a open source program.   O Lyx é um programa de código aberto.
[ ] Lyx is only available for SunOs.O Lyx está disponível unicamente no
sistema operativo SunOs.

2) What of the following sentences  Qual das seguintes afirmações é
   is true: verdadeira:

[ ] Lyx is so complex that only veryO Lyx é tam complexo que só gurus muito
smart gurus can deal with it.   espertos podem tratar com el.
[ ] LyX produces high quality,  O Lyx da lugar a documentos de alta 
professional output.qualidade, totalmente profissionais.
[ ] Lyx is a powerful spreadsheet   O Lyx é umha potente folha de cálculo.
application.
[ ] Lyx is a free vector drawingO Lyx é um aplicativo livre de debuxo
application.vectorial.


I don't know how to implement a test like this using lyx. I would appreciate 
your suggestions.

Sincerely yours
Ramon



How to change a paragraph's background color

2001-06-28 Thread Claus Hentschel

I want to change the background color of some pargraphs (of type 'Quote' but
this should be of no interest IMHO) into light gray. My preamble does
include this:

\usepackage{color}
\definecolor{lightgray}[rgb}0.75,0.75,0.75}

If I do include (in red) \color{lightgray} at the beginning of my Quote
paragraph the text in the complete environment will become lightgray. But I
do want to change the background color, instead! I don't have found any
variable in color.sty like \background or similar to change the background
color in a similar way.

Using a colorbox, i.e. (completely in tred, too)

\colorbox{lightgray}{here is may text which goes over many lines}

will set the background color, BUT the complete text goes into one line
(which of course can't be read off the page).

So is there any latex trick to fix that problem?

Thanks in advance
Claus




Re: erros during LaTex run...

2001-06-28 Thread Dekel Tsur

On Thu, Jun 28, 2001 at 04:59:42PM +1000, Kathryn Wotton wrote:
> Hey, 
> Ive had a few problems with viewing a preview of any documents ive done in
> klyx, sometimes when I do file -> Preview -> view DVI, it comes up with an
> alert message saying "there were errors during the LaTex run. One error
> detected. You should try to fix it."
> I have no idea what the problem is and it just comes up with an error box
> somewhere in the document!
> Thanks in advance!
> Kathryn Wotton

What is written in the dialog which is opened when you click on the error box?

One common problem is when you put the lyx file in a directory whose name
contain spaces. You should not do that.




Re: Outline running past bottom of the page

2001-06-28 Thread Dekel Tsur

On Wed, Jun 27, 2001 at 06:49:11PM +0200, Herbert Voss wrote:
> > Kent Kostuk wrote:
> > 
> > As I mentioned before.  The file that I have attached runs into the
> > footer section of some pages.  I didn't recall doing anything out of
> > the ordinary, but given I am still experimenting there is always the
> > chance I took a wrong turn somewhere.
> 
> you had no standard text, only section, subsection, aso. so latex
> can't formatting this stuff. have a look at the attached file
> it's another solution.

I think that Kent intends to add text between the section and subsections,
so he can't use enumerate instead of section commands.

If printing of the outline is necessary, I suggest trying to redefine the
\section,\subsection and \subsubsection commands.

For example, put the following line in the preamble
\let\oldsubsubsection=\subsubsection
\renewcommand{\subsubsection}[1]{\oldsubsubsection{#1}\pagebreak[0]}

(erase these lines when you have written the text)



Re: Url Package Options

2001-06-28 Thread Dekel Tsur

On Wed, Jun 27, 2001 at 11:30:19AM +0200, Juergen Spitzmueller wrote:
> Good morning!
> 
> How can I change the package options of url.sty?
> I tried to insert \usepackage[T1,hyphens]{url} in the preamble, but I 
> get an error message ["Options clash"] because LyX automatically loads 
> url.sty without these options (if I insert an url-inset).

You can put hyphens in the "Extra Options" field in the document dialog.
This will pass the hyphen option to all packages (it will ignored by
packages that do not have hyphens option), so it might give some unwanted
results. However, there are probably not many package with hyphens option.



Re: floatflt problem

2001-06-28 Thread Herbert Voss



On Thu, 28 Jun 2001, Markus Mohr wrote:

> > insert some ctrl-enter behind last bla or in tex red
> > \vspace{2cm}
> Well, thanks, I thought of that, but it looked to 'wordish' to be the
> right thing. :)
> Especialy that the text is written over the figure doesn't look right.
> Is there a special reason for this behaviour?

too less space for the figure

Herbert




Re: unknown textclass "scrbook"

2001-06-28 Thread Olivier Tubach

Thanks Claus,
I'll try that soom.
thanks again
Olivier





Re: floatflt problem

2001-06-28 Thread Markus Mohr

Hi!

> insert some ctrl-enter behind last bla or in tex red
> \vspace{2cm}
Well, thanks, I thought of that, but it looked to 'wordish' to be the
right thing. :)
Especialy that the text is written over the figure doesn't look right.
Is there a special reason for this behaviour?

thanks
marksu



Re: unknown textclass "scrbook"

2001-06-28 Thread Claus Hentschel

How does MikTex work(?):

While installing MikTeX you have to decide where the default tree of all
(Mik)TeX files will be placed.
By default this is 'C:\Program Files\MikTeX\texmf'.

BTW: I do recommend to install MikTeX into C:\MikTeX instead of 'C:\Program
Files\MikTeX' because that path does not include a space character! (Some
programs can't handle a PATH with space characters included.) I will use
this PATH in the following short description.

The second thing you have to decide is where all local files could be found
by MikTeX, i.e. files which are not part of MikTex itself like any specific
style file. By default those files have to be placed in a directory called
'localtexmf' which lives beside the directory 'texmf'.
Therefore you should use 'C:\MikTeX\localtexmf' to install your personally
needed latex files!

If you want to install any latex style file or package, then do the
following:

1. Ensure that the directory tree C:\MikTeX\localtexmf\tex\latex does
exist

2. Download the package from any CTAN server like www.dante.de  (If you
append a suffix .zip to the directory name in your browser, than the CTAN
server will send you the complete directory as a zip file ;-)

3. Extract that zip file into C:\MikTeX\tex\latex (a new pacage
directory will be created)

4. Check if any file with suffix '.ins' is available (the install file)
If not, there should be any .sty-file and you can step to (6)

5. Open a command prompt and change into that directory. Call latex
yourPackageName.ins. Watch the screen output. You may have to call this
again until you're told all was done correcrtly. Exit your command shell..

6. Call StartMenu->Programs->Miktex2.1->MikTexOptions and press the
'Refresh Now'-Button to referesh the filename database

7. You need to backup only the localtexmf directory tree!! That's what
you have installed and what will not be available if you have to re-install
MikTex (or your system)

If you do follow these hints you will never touch/change any MikTeX
installed file. Therefore you can remove and re-install or upgrade/update
MikTex at any time. After you've restored your localtexmf tree and do what's
described in (6) MikTeX (and LyX ;-) behaves as before!

Claus