I've just installed a gantt chart package, which I'm trying to use it in LyX.
I attempted to use the first minimal example, but this failed in LyX with
LaTeX Error: File 'forloop.sty' not found. However, compiling the pdf from raw LaTeX works fine. I attempted both creating the example file from scratch, and exporting the LaTeX (plain) from LyX, and attempting a manual
pdflatex example.tex. This worked in both cases.
Back in LyX, I tried following the instructions on the wiki. Specifically,
$ kpsewhich forloop.sty ./forloop.sty $ sudo texhash texhash: Updating /etc/texmf/ls-R... texhash: Updating /usr/share/texmf/ls-R... texhash: Updating /usr/share/texmf-dist/ls-R... texhash: Updating /var/lib/texmf/ls-R... texhash: Done.
Then in LyX, Tools→Reconfigure and restart. It still failed with the same error. How can I fix this problem in LyX?
I'm using LyX 2.1.1 and on Arch Linux. pdflatex details are below.
$ pdflatex --version pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2014/Arch Linux) kpathsea version 6.2.0 ... Compiled with libpng 1.6.13; using libpng 1.6.13 Compiled with zlib 1.2.8; using zlib 1.2.8 Compiled with poppler version 0.26.5
Details of the LyX file
I created a new LyX file, and put the following into the header.
I then created ERT and copy pasted from the first minimal example here, from