Link to home
Start Free TrialLog in
Avatar of dportabella
dportabella

asked on

Fink & latex. sty path?

Hello,

I have a MacOSX with Fink installed.

Using Fink, I have installed latex (default place: /sw/bin/latex)

Which is the path where latex is looking for the .sty files?

I have tried several places without success, including /sw/share/texmf-dist/tex/latex/


DAvid
Avatar of ravenpl
ravenpl
Flag of Poland image

I don't know, but maybe You can find it by Yourself straceing the latex?

strace latex file.tex 2>&1 | grep ".sty"
Avatar of dportabella
dportabella

ASKER

ravenpl,

I didn't know about "strace". You mean this project, right?
http://sourceforge.net/projects/strace/

I downloaded it, however it seems that it is not compatible with MacOSX.

any other idea?

----------------
> ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-apple-darwin8.10.1
checking host system type... i686-apple-darwin8.10.1
checking for supported operating system... NO!
configure: error: operating system darwin8.10.1 is not supported by strace

ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Arty K
Also BSD systems may have 'truss' instead of 'strace'.
I have tried ktrace,
and I find out the config file used: /sw/share/texmf/web2c/texmf.cnf

Here are the directories that latex is searching:
TEXMFMAIN = /sw/share/texmf
TEXMFDIST = /sw/share/texmf-dist
TEXMFLOCAL = /sw/share/texmf-local
TEXMFSYSVAR = /sw/var/lib/texmf
TEXMFSYSCONFIG = /sw/etc/texmf-config
TEXMFHOME = $HOME/Library/texmf
TEXMFVAR = $HOME/.texmf-var
TEXMFCONFIG = $HOME/.texmf-config
TEXMF = {!!$TEXMFCONFIG,!!$TEXMFVAR,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFMAIN,!!$TEXMFLOCAL,!!$TEXMFDIST}

------------
I have placed ucs.sty (and related files) to /sw/share/texmf-dist/tex/latex/ucs/
However, latex still does not find ucs.sty.

I've seen that there is an option of latex that helps you trace the directories it is looking:
latex -kpathsea-debug=255 test.tex

With this, I can see that latex is looking into that directory, but for some reason it does not find the file:
++++++++
...
kdebug:kpse_normalize_path (/sw/share/texmf-dist/tex/latex//) => 1
kdebug:hash_lookup(ucs.sty.tex) => (nil)
kdebug:hash_lookup(ucs.sty.tex) => (nil)
kdebug:hash_lookup(ucs.sty) => (nil)
kdebug:hash_lookup(ucs.sty) => (nil)
...
++++++++
I even have tried to put a simple file as /sw/share/texmf-dist/tex/latex/iucs.sty
but latex does not find it.


What can be the problem??

Nopius,
Can you please tell me where to download "truss"?
It is not installed in my system, nor in the Fink database.
truss is solaris/bsd related. Since Your is macosx, truss will not work as well. Those 3 tools (truss ktrace strace) do same thing on different OSes.
You have tried
/sw/share/texmf-dist/tex/latex/ucs/ucs.sty or /sw/share/texmf-dist/tex/latex/ucs.sty
The latter should work. Also not it has to be lowercase filename...
Yes, I have tried both:

/sw/share/texmf-dist/tex/latex/ucs/ucs.sty
/sw/share/texmf-dist/tex/latex/ucs.sty

they are lower case.
Hmm, I don't know then. Maybe ktrace is showing the error latex is receiving from stat stat64 or open syscalls?
A colleague solved the problem.
>When you manually add files to your TeX tree you must always
>run some program that will reindex your tree. On my system (Linux) it is
>`texhash', on Windows I think it is `initexmf' or something like that. I
>don't know what it is on MacOSX.

ravenpl, the "ktrace" utility probed to be very useful also, so I will give you the points.