On Tue, Sep 19, 2006 at 11:29:11AM +0200, Rainer Dorsch wrote: > Hi Martin, > > thanks for your immediate reply...comments embedded. > > I do not fully understand what the \usepackage in the preamble buys you. When > I remove mysty.sty from the LaTeX system installation, I get an error during > startup of lyx: > > "The document uses a missing TeX class "mysty". > LyX will not be able to produce output." > > This prevents to preview documents and run conversion to LaTeX on the command > line: > > mc:s1 ~/tmp/mysty # lyx -e latex document.lyx > Warning: Document class not available > ---------------------------------------- > The document uses a missing TeX class "mysty". > LyX will not be able to produce output. > Error: Couldn't export file > ---------------------------------------- > No information for exporting the format LaTeX (plain).
I haven't lately tried this. It used to work... at least export to LaTeX.
> mc:s1 ~/tmp/mysty #
>
> Did I miss something....?
>
> Thanks,
> Rainer
>
> Am Dienstag, 19. September 2006 07:08 schrieben Sie:
> > 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
> >
> [...]
>
>
> --
> 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/
--
Martin Vermeer
:wq
pgpmYCxY6TuPT.pgp
Description: PGP signature
