On 15.05.08, Rich Shepard wrote:
> On Thu, 15 May 2008, Angel Amat wrote:
>> Hello, I am using latexcad to draw some diagrams with equations. The
>> problem is that i can not insert this diagrams in the lyx document. I have
>> copy the LATEXCAD.STY to the folder in which is the lyx document and I
>> have written in the preamble of the documment \usepackage{latexcad}. The
>> next is thousand errors.
LyX usually does the latex run in a temp dir, but does not know that
latexcad.sty should be moved there.
> First, the style file needs to be placed with all the other LyX style
> files, not in your document directory.
LaTeX style files (LyX has *.layout files).
> 'locate *.sty' or 'whereis *.sty' will show you the path to those
> files.
The documentation of your latex distribution will also tell you the
latex search path.
> Move latexcad.sty there.
If it is locally installed, preferabely use a local path (like
/usr/local/share/texmf/tex/latex/...)
On Unix systems with TeXLive, you can also use ~/texmf/tex/latex
> Second, as root run 'texhash'.
(not needed with ~/texmf/)
> Third, from within LyX, run 'reconfigure'.
Not needed for styles that are only specified in the latex preamble.
Günter