Pages

19 October, 2015

Enable sectioned bibliography in LaTeX/LyX under Linux

Today I switched my dissertation workplace from my corporate MacBook to my Ubuntu Linux PC at home. Nearly everything worked fine, since I already carefully defined all figures and child documents to use relative paths.

However, I got one error that puzzled me:
LaTeX Error: File `bibtopic.sty' not found
Obviously some LaTeX package was missing, which did not happen before under Linux. Now what to do -- in absence of a LaTeX package manager on Linux? 

Answer: Just use your Linux package manager!

So I did a search for "bibtex":
$ aptitude search bibtex
p   bibtex2html                - filters BibTeX files and translates
p   bibtexconv                 - BibTeX Converter                   
p   bibtexconv:i386            - BibTeX Converter                   
p   jbibtex-base               - make a bibliography for ASCII p(La)
p   kbibtex                    - BibTeX editor for KDE              
p   kbibtex:i386               - BibTeX editor for KDE              
p   libtext-bibtex-perl        - Perl extension to read and parse Bi
p   libtext-bibtex-perl:i386   - Perl extension to read and parse Bi
p   nbibtex                    - Powerful, flexible replacement for 
p   nbibtex:i386               - Powerful, flexible replacement for 
p   nbibtex-doc                - Documentation of source code for nb
p   python-bibtex              - Python interfaces to BibTeX and the
p   python-bibtex:i386         - Python interfaces to BibTeX and the
v   python2.7-bibtex           -                                    
v   python2.7-bibtex:i386      -                                    
p   texlive-bibtex-extra       - TeX Live: BibTeX additional styles 
OK, "texlive-bibtex-extra", "additional styles". This was what I was missing and installing this package fixed the problem.
$ sudo aptitude install texlive-bibtex-extra 
Done!

1 comment:

breetlee said...

Thanks for sharing this with us! Some really amazing features.
Juve