Alessio Caiazza is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

nolith / ruby-beamer

My template for beamer slides with ruby code examples

Clone this repository (size: 534.4 KB): HTTPS / SSH
hg clone https://bitbucket.org/nolith/ruby-beamer
hg clone ssh://hg@bitbucket.org/nolith/ruby-beamer

ruby-beamer / Makefile

LATEX = latex
BIBTEX = bibtex
L2H = latex2html
PDFLATEX = ps2pdf
DVIPS = dvips
PS2PDF = ps2pdf -dPDFSETTINGS=/prepress 

RERUN = "(There were undefined references|Rerun to get (cross-references|the bars) right)"
RERUNBIB = "No file.*\.bbl|Citation.*undefined"

GOALS = slides.ps.gz slides.pdf
DVIFILES = slides.dvi

COPY = if test -r $*.toc; then cp $*.toc $*.toc.bak; fi 
RM = rm -f

all: slides handout
        
rb_sources: sources/* 
        cd sources; make
        
        
slides: ruby.slides.pdf

handout: ruby.article.pdf

ruby.slides.pdf:        *.tex *.sty rb_sources images/*
#cd images; make
                                pdflatex ruby.slides.tex    

ruby.article.pdf:       *.tex *.sty rb_sources images/*
#cd images; make
                                pdflatex ruby.article.tex

clean:
                                rm -f *.pdfsync *.aux *.log *.bbl *.blg *.brf *.cb *.ind *.idx *.ilg  \
                                *.inx *.ps *.dvi *.pdf *.toc *.out *.url *~ *.out *.log *.bm *.bak \#*\# \
                                *.nav *.snm
                                cd sources; make clean

SOURCEFILES = beamerthemeruby.sty brianbib.sty images keyval.tex listings.cfg \
              listings.sty lstlang1.sty lstlang2.sty lstlang3.sty lstmisc.sty lstpatch.sty \
              Makefile ruby.bib ruby.sty rubytheme.sty slides.tex sources xkeyval.def xkeyval.sty xkeyval.tex \
              licenza.tex introduzione.tex tipi\ di\ dato.tex ruby.slides.tex ruby.article.tex

source.tar.bz2: clean
        rm -rf tmp; \
        mkdir tmp; \
        cp -r $(SOURCEFILES) tmp; \
        cd tmp; \
        find ./ | grep \\.svn | xargs rm -rf; \
        tar -cvvjf source.tar.bz2 *; \
        cp source.tar.bz2 ..

source: source.tar.bz2