Discussion:
[OS X TeX] Failing to locate style files
Christopher Brewster
2008-02-01 17:17:45 UTC
Permalink
In compiling my thesis with latex, I get messages that it cannot
locate some style files:
---
! LaTeX Error: File `ellipsis.sty' not found.
! LaTeX Error: File `epigraph.sty' not found.
---

However, when I issue the command 'locate ellipsis.sty' I get:
/usr/local/texlive/2007/texmf-dist/tex/latex/ellipsis/ellipsis.sty
and for epigraph.sty:
/usr/local/texlive/2007/texmf-dist/tex/latex/epigraph/epigraph.sty

What is going wrong?

Thanks,
Christopher



*****************************************************
Department of Computer Science, University of Sheffield
Regent Court, 211 Portobello Street
Sheffield S1 4DP UNITED KINGDOM
Web: http://www.dcs.shef.ac.uk/~kiffer/
Tel: +44(0)114-22.21967 Fax: +44 (0)114-22.21810
Skype: christopherbrewster
SkypeIn (UK): +44 (20) 8144 0088
SkypeIn (US): +1 (617) 381-4281
*****************************************************
Corruptissima re publica plurimae leges. Tacitus. Annals 3.27
David Watson
2008-02-01 17:55:04 UTC
Permalink
I think you should try "kpsewhere ellipsis.sty" etc., to make sure
that these are in your texmf tree.

You probably need to run a "sudo texhash"
Post by Christopher Brewster
In compiling my thesis with latex, I get messages that it cannot
---
! LaTeX Error: File `ellipsis.sty' not found.
! LaTeX Error: File `epigraph.sty' not found.
---
/usr/local/texlive/2007/texmf-dist/tex/latex/ellipsis/ellipsis.sty
/usr/local/texlive/2007/texmf-dist/tex/latex/epigraph/epigraph.sty
What is going wrong?
Thanks,
Christopher
*****************************************************
Department of Computer Science, University of Sheffield
Regent Court, 211 Portobello Street
Sheffield S1 4DP UNITED KINGDOM
Web: http://www.dcs.shef.ac.uk/~kiffer/
Tel: +44(0)114-22.21967 Fax: +44 (0)114-22.21810
Skype: christopherbrewster
SkypeIn (UK): +44 (20) 8144 0088
SkypeIn (US): +1 (617) 381-4281
*****************************************************
Corruptissima re publica plurimae leges. Tacitus. Annals 3.27
-------------------------- Helpful Info --------------------------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
List Archive: http://tug.org/pipermail/macostex-archives/
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
Peter Dyballa
2008-02-01 21:03:03 UTC
Permalink
Post by Christopher Brewster
! LaTeX Error: File `ellipsis.sty' not found.
! LaTeX Error: File `epigraph.sty' not found.
---
Locate just finds the files in the file system, without any respect
to applications that might like to use them. Kpsewhich finds them as
if TeX would try to find them.

Maybe you forgot to run 'sudo texhash' to make them know to TeX (like
locate TeX just searches a set of files for names, and these "hash"
files need to be re-generated after a change of TeX in its systematic
trees, i.e. in /usr/local/texlive/).

--
Greetings

Pete

We have to expect it, otherwise we would be surprised.
Matthew Leingang
2008-02-02 15:53:29 UTC
Permalink
Dear Christopher,

Did you resolve your problem? Are you using TeXShop? Were the files
available before but suddenly not? Then sometimes I find the problem
magically goes away if you quit and restart TeXShop.

Just a stab in the dark. Good luck.

--Matthew Leingang
Post by Christopher Brewster
In compiling my thesis with latex, I get messages that it cannot
---
! LaTeX Error: File `ellipsis.sty' not found.
! LaTeX Error: File `epigraph.sty' not found.
---
/usr/local/texlive/2007/texmf-dist/tex/latex/ellipsis/ellipsis.sty
/usr/local/texlive/2007/texmf-dist/tex/latex/epigraph/epigraph.sty
What is going wrong?
Thanks,
Christopher
*****************************************************
Department of Computer Science, University of Sheffield
Regent Court, 211 Portobello Street
Sheffield S1 4DP UNITED KINGDOM
Web: http://www.dcs.shef.ac.uk/~kiffer/
Tel: +44(0)114-22.21967 Fax: +44 (0)114-22.21810
Skype: christopherbrewster
SkypeIn (UK): +44 (20) 8144 0088
SkypeIn (US): +1 (617) 381-4281
*****************************************************
Corruptissima re publica plurimae leges. Tacitus. Annals 3.27
-------------------------- Helpful Info --------------------------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
List Archive: http://tug.org/pipermail/macostex-archives/
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
--
Matthew Leingang
Preceptor in Mathematics
Harvard University

http://www.math.harvard.edu/~leingang/vCard.vcf
Christopher Brewster
2008-02-02 21:35:43 UTC
Permalink
Date: Fri, 1 Feb 2008 22:03:03 +0100
Subject: Re: [OS X TeX] Failing to locate style files
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Post by Christopher Brewster
! LaTeX Error: File `ellipsis.sty' not found.
! LaTeX Error: File `epigraph.sty' not found.
---
Locate just finds the files in the file system, without any respect
to applications that might like to use them. Kpsewhich finds them as
if TeX would try to find them.
Maybe you forgot to run 'sudo texhash' to make them know to TeX (like
locate TeX just searches a set of files for names, and these "hash"
files need to be re-generated after a change of TeX in its systematic
trees, i.e. in /usr/local/texlive/).
--
Greetings
Pete
We have to expect it, otherwise we would be surprised.
I discovered I have two tex installations (texlive and tetex) and this
was causing the problem.
Texlive has the relevant style files while tetex does not (at any as
it was installed).
It appears that without realising I had installed a tex installation
(tetex) when I installed latex2rtf using macports.
This added a line to my path as follows:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
at the beginning of my PATH

Removing this, solved the problem.
Why?
There is nothing in my path that points to the location of texlive.
I thought I could re-order the sequence in the path to solve it.
Also I do not remember what else on my system depends on /opt/local/
bin etc.
ps. Changing the settings for 'Tex distribution' on the system
preferences has no effect.

Thanks for the suggestions, in any case.

Christopher
Richard Koch
2008-02-03 00:48:02 UTC
Permalink
Christopher,

It is possible to make the "TeX Distribution" panel work with the
MacPorts teTeX distribution.
If you installed MacTeX fairly recently, then it contains the
necessary data structure for MacPorts.
Your front end should already respect the choice of distribution made
with the Preference Pane.

However, there is a problem with commands issued from the Terminal.
These commands depend
on your PATH. The TeX Distribution structure adds /usr/texbin to this
PATH; this /usr/texbin is a
symbolic link which changes when you switch distributions with the
Pane, and
points to the binaries of the active TeX distribution. However,
MacPorts adds /opt/local/bin to the START of PATH, so it overrides
the /usr/texbin
which comes later. The solution is to modify your startup script,
which might be .profile, to add
/usr/texbin before /opt/local/bin.

This explains why your kpsewhich couldn't find the style files, since
kpsewhich is run from Terminal.
But again, most front ends won't care how PATH is set.

Dick
Post by Christopher Brewster
I discovered I have two tex installations (texlive and tetex) and
this was causing the problem.
Texlive has the relevant style files while tetex does not (at any as
it was installed).
It appears that without realising I had installed a tex installation
(tetex) when I installed latex2rtf using macports.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
at the beginning of my PATH
Removing this, solved the problem.
Why?
There is nothing in my path that points to the location of texlive.
I thought I could re-order the sequence in the path to solve it.
Also I do not remember what else on my system depends on /opt/local/
bin etc.
ps. Changing the settings for 'Tex distribution' on the system
preferences has no effect.
Continue reading on narkive:
Loading...