I am attempting to add the subfloat.sty
file to my LaTeX search path. In order to find that path, I executed:
kpsewhich -var-value=TEXMFHOME
which, as expected, gave
/home/max/texmf
However, there are no subdirectories associated with that (seemingly empty) path, and I cannot even cd to ~/texmf
nor copy files to this directory (consequently, I cannot move the .sty
file into any subdirectory). However, I can run LaTeX successfully, including various other packages without error, so obviously it's looking for and finding them in some directory path, just not the one indicated.
Does anyone have any suggestions for how to trouble-shoot this problem?
Best Answer
The package
subfloat.sty
should be added to the LaTeX search path, i.e., if you have an openSUSE Linux machine, generally it is found to be in:/usr/share/texmf/tex/latex/subfloat/
and/or
$HOME/texmf/tex/latex/subfloat/
.If you have never added manually to your LaTeX distribution a package for the only user max, the directory
~/texmf
shouldn't exist. Furthermore, if you haven't added any other path to yourTEXMFHOME
, all the folders containing your LaTeX packages should be grouped in/usr/share/texmf/tex/latex
.The variables
TEXMFHOME
and yourTEXMFDIST
are defined in:which should give as a result
/etc/texmf/web2c/texmf.cnf
.Now, if the result of the following bash script is a message showing the word Yes or the word Nes (to execute a bash script: save it to a file named
compare.sh
, give it the proper permissions viachmod +x compare.sh
and execute it via./compare.sh
):then you could try to follow this procedure:
subfloat.zip
;subfloat.ins
;subfloat.sty
to your LaTeX search path;