[Tex/LaTex] Correctly configuring TexWorks to work with TexLive (TUGs version)

installinglinuxtexlivetexworks

I just downloaded TL 2010 but the packages don't seem available to TexWorks. Before I was using the version of TL supplied via Synaptic. But that was not being kept up to date so I had to download TUGs version into what will be a separately maintained directory.

But I don't know how to configure my editors (TexWorks is the primary editor I use, TexMaker is my secondary editor) to be able to tap into the new package repository I've created. I'm working within Debian Squeeze.

I used default paths in my installation.

It was suggested I edit the .profile file – this is where I'm at at the moment:

# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
    . "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

PATH=/usr/local/texlive/2010/bin/i386-linux:$PATH 

MANPATH=/usr/local/texlive/2010/texmf/doc/man:$MANPATH 

INFOPATH=/usr/local/texlive/2010/texmf/doc/info:$INFOPATH

Best Answer

I'm working with Debian Squeeze, TL2010 and TeXworks, too.

This is how I did it:

  1. Use synaptic to uninstall all packages starting with "texlive-"
  2. Download and unpack TL2010 installer
  3. Open "Root Terminal, start installer with "./install-tl"
  4. Select option "Create symlinks to standard directories" (by using this there is no need to edit any files like .profile)
  5. Start installation of TeXlive
  6. Test TeXlive with "pdflatex sample2e"
  7. "apt-get update" and "apt-get install perl-tk perl-doc equivs"
  8. Create and install texlive-local_2009-1_all.deb (see http://www.tug.org/texlive/debian.html)
  9. "apt-get install texworks" (this should NOT install any TeX related packages except texworks itself!)
  10. Test TeXworks
  11. "tlmgr update --all" (to test if the update mechanism of TeXlive works fine)