Advertisement
britodfbr

tex_gen_pdf.sh

Sep 17th, 2014
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.13 KB | None | 0 0
  1. #!/bin/bash
  2. # tex_gen_pdf.sh
  3. # função: Executar os comandos latex, bibtex e makeindex de forma simplificada
  4. # autor: Ricardo Brito do Nascimento britodfbrgmail.com
  5. # exemplo: tex_gen_pdf.sh <arquivo>
  6. #
  7. #
  8.  
  9.  
  10. function tex (){
  11.  pdflatex --interaction=nonstopmode $1
  12.  pdflatex --interaction=nonstopmode $1
  13.  bibtex $(basename $1 .tex)
  14.  pdflatex --interaction=nonstopmode $1
  15.  bibtex $(basename $1 .tex)
  16.  makeindex $(basename $1 .tex).glo -s $(basename $1 .tex).ist -t $(basename $1 .tex).glg -o $(basename $1 .tex).gls
  17.  makeindex -s $(basename $1 .tex).ist -t $(basename $1 .tex).nlg -o $(basename $1 .tex).ntn $(basename $1 .tex).not
  18.  
  19.  pdflatex --interaction=nonstopmode $1
  20.  bibtex $(basename $1 .tex)
  21.  makeindex $(basename $1 .tex).glo -s $(basename $1 .tex).ist -t $(basename $1 .tex).glg -o $(basename $1 .tex).gls
  22.  makeindex -s $(basename $1 .tex).ist -t $(basename $1 .tex).nlg -o $(basename $1 .tex).ntn $(basename $1 .tex).not
  23.  
  24.  pdflatex --interaction=nonstopmode $1
  25.  pdflatex --interaction=nonstopmode $1
  26.  pdflatex --interaction=nonstopmode $1
  27.  [ -e $(basename $1 .tex).pdf ] && evince $(basename $1 .tex).pdf&  
  28. }
  29. tex $@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement