Last active
December 11, 2015 20:19
-
-
Save emersonmx/4654772 to your computer and use it in GitHub Desktop.
Script para gerar um arquivo dvi a partir de uma arquivo .tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Se houver mais de 1 arquivos .tex no diretório de execução, o latexmk não vai | |
# saber o que fazer. Se for seu caso, você deve especificar o arquivo a ser | |
# construido. | |
latexmk -pvc -view=none # arquivo.tex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Script para criar um pacote de distribuição (arquivos .dvi, .pdf e .ps) do | |
# documento latex. | |
if test $# != 1 | |
then | |
echo "Usage: $0 <project_name>" | |
else | |
latexmk -pdfdvi -ps | |
mkdir -p dist/ | |
tar -cjf dist/$1.tar.bz2 $1.pdf $1.dvi $1.ps | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Script que limpa (remove) TODOS os arquivos gerados pelo latexmk | |
# e do diretorio dist. | |
latexmk -C | |
rm -rf dist/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment