On Mon, Sep 18, 2006 at 10:35:25PM +0200, Rainer Dorsch wrote:
> Hello,
> 
> I am wondering, if LyX has support for custom style files, which are 
> distributed with a large document. As an example, if I write my thesis or a 
> manual, somebody might have defined a common style which gives the same look 
> for all documents of a department, call it mysty.sty for now.
> 
> When just using LaTeX, I would include my.sty in the source directory of a 
> document to be distributed and the receiver would run LaTeX, LaTeX would find 
> mysty.sty in the current working directory and everything would work fine.
> 
> With LyX, I have to define an additional mysty.layout file, which is easy 
> enough. How would I distribute now the mysty.sty and mysty.layout to make it 
> as convenient as possible for the recipient to view the document with LyX?
> 
> I tried to include the mysty.sty and the mysty.layout in the document 
> directory, started up LyX for the document directory, but even a reconfigure 
> did not find mysty.
> 
> Next I moved mysty into ~/.lyx/layouts and run reconfigure. LyX found 
> mysty.layout but it did not find the sty file, though it was in the working 
> directory.
> 
> I got it working, only when I installed the .sty file in the LaTeX system 
> installation as well.

What I do in this situation is simply putting the \usepackage{mysty}
into the preamble. It will find it in the current working dir. Don't
bother to reconfigure LyX. -- Martin
 
> To me that looks broken, though I might not have found the trick yet or not 
> have configured something correctly...
> 
> If it is broken like this, is there an easy way to fix that issue? I compile  
> LyX usually myself...
> 
> I put out a very small example, which helps highlighting the issue:
> 
> http://www.alzental-castle.de/~rd/mysty.tgz
> 
> The goal is to display document.lyx within lyx without
> -> installing mysty.sty systemwide
> -> installing mysty.layout in ~/.lyx/layouts (though I could live with this 
> one for now)
> 
> Many thanks,
> Rainer
> 
> -- 
> Rainer Dorsch
> Alzentalstr. 28
> D-71083 Herrenberg
> 07032-919495
> jabber: [EMAIL PROTECTED]
> GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
> Full GPG key: http://pgp.mit.edu/

Attachment: pgpuRbgQe1cbc.pgp
Description: PGP signature

Reply via email to