On Thu, Jul 26, 2012 at 11:44 AM, Jacob Wegelin
<
jacobw...@fastmail.fm> wrote:
*snip*
> but on the Mac OS 10.6.8 on which MacTeX-2012 is installed and on which the
> tex subcaption example throws an error, those commands return nothing.
If you run 'sudo tlmgr info caption' does it report that the package
is installed? If it's not installed, run 'sudo tlmgr install caption'
and then see if 'kpsewhich subcaption.sty' returns anything. If it is
already installed, then we'll need to check some paths to see why
kpsewhich isn't finding it.
> By manually copying caption.sty, subcaption.sty, and caption3.sty to the
> directory in which I am trying to run the sample code on the MacTeX-2012
> computer, I got the sample code to run on that computer.
>
> But is there some long-term, elegant, preferably automatic solution, which
> will survive updates to LaTeX and moving to new computers, and does not
> require placing style files by hand into various directories?
Well, since the caption package is included with TeX Live, the best
solution would be to have TeX Live install it. Then TeX Live can keep
it up to date.
> ~/Documents/tmp/ExampleLaTeX> kpsewhich -var-value=TEXMFHOME | xargs ls
> ls: /Users/bnw/Library/texmf: No such file or directory
> ~/Documents/tmp/ExampleLaTeX>
This is another solution in case we can't get TeX Live to work
properly for some reason. If you create the missing directory, you can
place the .sty files in that directory, and run 'texhash
/Users/bnw/Library/texmf'. (The texhash program indexes all the files
in that directory.) kpsewhich should then be able to find the files
you've added to the /Users/bnw/Library/texmf directory.
--Kevin