Updated Makefile to use/require the use of rubbber and added the
author<mako@atdot.cc> <>
Thu, 18 May 2006 16:43:25 +0000 (12:43 -0400)
committer<mako@atdot.cc> <>
Thu, 18 May 2006 16:43:25 +0000 (12:43 -0400)
"titleref" command and "narrow" environment to the head of each paper.

Makefile
text.tex

index e2c566a88cf81555395ec2748e6b3b4e5424177c..990fa79dd4cc5c7dca101309c5fb0f5f5e689cd2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,27 +1,24 @@
-all: dvi
+#!/usr/bin/make
 
-dvi: text.tex
-       cp text.tex backup.tex
-       latex text.tex
-       latex text.tex
-       latex text.tex
+all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) 
 
-pdf: dvi
-       pdflatex text.tex
 
-viewpdf: pdf
-       evince text.pdf
+%.pdf: %.png
+       png2pdf -p 1.4 -a $< $@
+
+%.pdf: %.tex 
+       rubber -fd $<
 
-ps: dvi
-       dvips -f < text.dvi  > text.ps
+clean: 
+       rubber -d --clean *.tex
+       rm -f *.tmp
+       rm -f figures/*.pdf
 
-final: dvi
-       dvips -f < text.dvi > final.ps
+viewpdf: pdf
+       evince text.pdf
 
 spell:
        aspell -c -t --tex-check-comments -b text.tex
 
-clean:
-       cp text.tex backup.tex
-       rm -f text.{blg,bbl,aux,log,dvi,toc,tex.bak,txt,tex~,ps,pdf} warnings
 
+.PHONY: clean all
index 6c2ae9ced293d0d96bb223a05f65fef96e294c57..ded21a5c07f90944374f83aa88c8b7497b33aec8 100644 (file)
--- a/text.tex
+++ b/text.tex
@@ -4,6 +4,17 @@
 \usepackage[letterpaper,left=1.3in,right=1.3in,top=1.3in,bottom=1.3in]{geometry}
 \usepackage{fancyhdr}
 
+\newcommand{\titleref}[1]{\textsl{#1}}
+\newenvironment{narrow}[2]{%
+  \begin{list}{}{%
+      \setlength{\topsep}{0pt}%
+      \setlength{\leftmargin}{#1}%
+      \setlength{\rightmargin}{#2}%
+      \setlength{\listparindent}{0pt}%
+      \setlength{\itemindent}{0pt}%
+      \setlength{\parsep}{\parskip}}%
+  \item[]}{\end{list}}
+
 \begin{document}
 
 \pagestyle{fancy}

Community Data Science Collective || Want to submit a patch?