[Tex/LaTex] Kile and texlive 2012

kiletexliveUbuntu

Since I was not happy about the choice of texlive 2009 from Ubuntu repositories, I installed texlive 2012 manually from the website.

Secondly, I like Kile to write, but when I try to install it, it forces me to install all the packages that i want to avoid (2009 version). So I used equivs and made a dummy Ubuntu package that tricks the OS (Ubuntu 12.04 64-bit) into installing kile without those packages.

The problem is that Kile refuses compile.

When I try to do it, from the output I can see that he does:

  • cd into the right directory
  • executes the pdflatex command

And that's it. The funny thing is that repeating the same exact command via the terminal, the file is compiled correctly (I updated correctly the PATH, after all).

Any ideas on how can I get it to work again?

Best Answer

I have sucessfully used the following way:

  1. Remove tex-live-2009 sudo apt-get remove texlive* (kile gets uninstalled too)
  2. Install tex-live-2012 (http://www.tug.org/texlive/acquire-netinstall.html)
  3. 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