Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I installed LaTeX on my Kubuntu with those commands:

sudo apt-get install abntex
sudo apt-get install texmaker
sudo apt-get install texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-fonts-recommended texmaker

but I also need to use listings package for my assignment paper. Please, help, how to install listings package for LaTeX here?

EDIT:

Ok it turned out that listings wasnt missing it was something different which caused the problem. I found solution which helped me:

mkdir -p /usr/share/texmf-texlive/tex/latex/floatflt
cd /usr/share/texmf-texlive/tex/latex/floatflt
rm -f floatflt.* float*.tex
wget http://mirror.ctan.org/macros/latex/contrib/floatflt/floatflt.ins
wget http://mirror.ctan.org/macros/latex/contrib/floatflt/floatflt.dtx
latex floatflt.ins
texhash /usr/share/texmf-texlive
share|improve this question
2  
Might be best suitable on tex.stackexchange.com –  mtk Jan 28 '13 at 12:10
1  
Hey Katie: rather than editing the answer into your question, it's best to actually provide it as a new answer, which you can then mark as accepted. That keeps the questions and answers nicely separate and makes it easier for future visitors to recognize that there's a solution (rather than just a really long question with updates). –  mattdm Jan 28 '13 at 13:57
    
If the listings package was not missing, then what was the problem? Any error message? –  njsg Jan 28 '13 at 17:05
    
@mtk: Even better: askubuntu.com –  Martin Schröder Jan 29 '13 at 9:25

1 Answer 1

up vote 3 down vote accepted

I recommend you to use apt-file to search for the package that contains a specific file.

If you invoke

apt-file search listings.sty

you should find the package that contains listings.

On my system it's contained in texlive-latex-recommended that you have already installed.

To play it safe i would execute

texhash

to update latex's directory tree.

If you can't get it working after that i'm pretty sure that something else is wrong.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.