Monday, November 14, 2011

install new latex package in ubuntu / make revtex4-1 work

download
 https://authors.aps.org/revtex4/revtex4-1.zip
install
sudo  unzip revtex4-1-tds.zip -d /usr/share/texmf-texlive/
(sudo texhash)

update natbib:
 download
  http://www.ctan.org/pkg/natbib
 (http://mirrors.ctan.org/macros/latex/contrib/natbib.zip)
backup
 tar cfz texbackup.tgz /usr/share/texmf-texlive/bibtex/bst/natbib/ /usr/share/texmf-texlive/tex/latex/natbib/
 rm /usr/share/texmf-texlive/bibtex/bst/natbib/*
 rm /usr/share/texmf-texlive/tex/latex/natbib/*
install
  unzip natbib.zip
  mv natbib/*.bst /usr/share/texmf-texlive/bibtex/bst/natbib/
  mv natbib/* /usr/share/texmf-texlive/tex/latex/natbib/
  cd /usr/share/texmf-texlive/tex/latex/natbib/
  latex natbib.ins
  mktexlsr /usr/share/texmf-texlive/

1 comment: