I have sucessfully used the following way:
- Remove tex-live-2009
sudo apt-get remove texlive*
(kile gets uninstalled too)
- Install tex-live-2012 (http://www.tug.org/texlive/acquire-netinstall.html)
- Create modified kile deb package without dependency to old tex using the following shell commands (and then install it)
srcpkg=kile_2.1.0-1ubuntu1_amd64.deb
dstpkg=kile_2.1.0-1ubuntu1_no_texlive_amd64.deb
apt-get download kile
ar x $srcpkg
tar xzf control.tar.gz
# now remove all the tex-live dependencies
pico control
tar c post{inst,rm} md5sums control | gzip -c > control.tar.gz
ar rcs $dstpkg debian-binary control.tar.gz data.tar.lzma
sudo dpkg -i $dstpkg
The number of lines in zref-abspage.sty
is 66 in recent versions. In the history I could not find a hint that could explain more than 28 additional lines. What contains line 94 with two lines before and after?
You can recreate the file, if the sources are installed. Make a scratch directory, copy the file zref.dtx there and unpack it, e.g.:
mkdir /tmp/zref-scratch
cd /tmp/zref-scratch
cp /usr/share/texmf-texlive/source/latex/oberdiek/zref.dtx .
tex zref.dtx
This should generate lots of style files with zref-abspage.sty
among them. Note that you need plain TeX, not LaTeX. Otherwise the documentation would be generated.
The two files can be compared:
diff -u /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty zref-abspage.sty
Are there differences?
If yes, what are the differences? The wrong file can then be renamed (for safety and further analysis) and replaced:
sudo mv -i /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage-saved.sty
sudo cp /tmp/zref-scratch/zref-abspage.sty /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty
If no, Which version you are using? Look into the file zref-abspage.sty
.
My recommendation would be to install the original TeX Live, "howto"s can be found in the net, e.g.:
The alternative is installing manually updated packages in a local TDS tree (for all users) or in the home texmf tree (~/texmf
) for the current user only. The Ubuntu documentation contains a section about LaTeX.
To identify the local tree you can try:
kpsewhich --expand-var '$TEXMFLOCAL'
The home tree usually is ~/texmf
.
If the package provides a .tds.zip
file, then the installation is easy. As example
I am using my bundle to install in the home texmf tree:
wget http://mirror.ctan.org/install/macros/latex/oberdiek.tds.zip
unzip oberdiek.tds.zip -d ~/texmf
In case of the local texmf tree, texhash
needs to be called:
sudo texhash
Best Answer
You very likely have your $HOME containing a final slash /. This expands to // after $HOME in the definition of $TEXMF and thus all of your home is searched.
By default $HOME does not contain this final /, so it might have been added locally in your init files.
Other than that, on Debian/Ubuntu TeX Live you change settings by adding lines to
/etc/texmf/web2c/texmf.cnf
(creating if necessary).