tex2pdf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #!/bin/bash # tex2pdf # função: Executar os comandos latex, bibtex e makeindex de forma simplificada # autor: Ricardo Brito do Nascimento britodfbr<at>incolume.com.br # # # Editado por: Ismael Felipe Ferreira dos Santos # Instituto de Fisica, # Universidade Federal de Alagoas # E-mail: ismaellxd@gmail.com # Copyright © 2019 MIT LICENCE # Mudificacoes: Gerar graficos com GNUPlot na saida LaTex de forma correta # e nome mais sugestivo # # # Para facilitar: sudo cp tex2pdf /bin/tex2pdf && sudo chmod 777 /bin/tex2pdf # Para compilar um .tex: tex2pdf <NomeDoArquivo.tex> function tex (){ pdflatex -shell-escape --interaction=nonstopmode $1 pdflatex -shell-escape --interaction=nonstopmode $1 bibtex $(basename $1 .tex) pdflatex -shell-escape --interaction=nonstopmode $1 bibtex $(basename $1 .tex) makeindex $(basename $1 .tex).glo -s $(basename $1 .tex).ist -t $(basename $1 .tex).glg -o $(basename $1 .tex).gls makeindex -s $(basename $1 .tex).ist -t $(basename $1 .tex).nlg -o $(basename $1 .tex).ntn $(basename $1 .tex).not pdflatex -shell-escape --interaction=nonstopmode $1 bibtex $(basename $1 .tex) makeindex $(basename $1 .tex).glo -s $(basename $1 .tex).ist -t $(basename $1 .tex).glg -o $(basename $1 .tex).gls makeindex -s $(basename $1 .tex).ist -t $(basename $1 .tex).nlg -o $(basename $1 .tex).ntn $(basename $1 .tex).not pdflatex -shell-escape --interaction=nonstopmode $1 pdflatex -shell-escape --interaction=nonstopmode $1 pdflatex -shell-escape --interaction=nonstopmode $1 [ -e $(basename $1 .tex).pdf ] && evince $(basename $1 .tex).pdf& } tex $@ rm *.dvi *.gz *.dvi *.bak *.bbl *.blg *.log *.aux *.toc *.lof *.lot |