BASH script for LaTeX generation
eharetea

A simple BASH script for LaTeX rendering.

This script that renders a LaTeX file generates the dvi, converts to pdf, then opens the pdf in xpdf.

Date Created:Friday February 20th, 2009 05:45 PM
Date Modified:Friday February 20th, 2009 06:10 PM


#!/bin/bash
if [ $]
then
NAME=`echo $1 | sed 's/.tex//g'`
latex $1;
dvipdfm $NAME.dvi;
xpdf $NAME.pdf;
exit
fi



#!/bin/bash
## this is used to generate images with pstricks

if [ $]
then
NAME=`echo $1 | sed 's/.tex//g'`
latex $1;
dvips $NAME.dvi;
ps2pdf $NAME.ps;
xpdf $NAME.pdf;
rm $NAME.dvi;
rm $NAME.log;
rm $NAME.aux;
exit
fi



Downloads:
Download: mylatex.sh 120 B
Download: makeps.sh 233 B

Please login or Click Here to register for downloads
Creative Commons License
BASH script for LaTeX generation by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com