Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
115 lines (79 sloc) 2.82 KB
# specify thh main file and all the files that you are including
SOURCE= main.tex $(wildcard local*.tex) $(wildcard chapters/*.tex)
# After manual creation of fine-tuned index and TOC.
final:
cp main.toc.tex main.toc
cp main.ind.tex main.ind
xelatex main
# specify your main target here:
pdf: main.bbl main.pdf #by the time main.pdf, bib assures there is a newer aux file
all: pod cover
complete: index main.pdf
fix:
for i in `seq 1 7`; do xelatex main; done;
index: main.ind
main.pdf: main.aux
xelatex main
main.aux: $(SOURCE)
xelatex -no-pdf main
#create only the book
main.bbl: $(SOURCE) localbibliography.bib
xelatex -no-pdf main
biber main
main.ind:
makeindex main.idx
xelatex main
#create a png of the cover
cover: FORCE
convert main.pdf\[0\] -quality 100 -background white -alpha remove -bordercolor "#999999" -border 2 cover.png
cp cover.png googlebooks_frontcover.png
convert -geometry 50x50% cover.png covertwitter.png
convert main.pdf\[0\] -quality 100 -background white -alpha remove -bordercolor "#999999" -border 2 -resize x495 coveromp.png
display cover.png
googlebooks: googlebooks_interior.pdf
googlebooks_interior.pdf: complete
cp main.pdf googlebooks_interior.pdf
pdftk main.pdf cat 1 output googlebooks_frontcover.pdf
openreview: openreview.pdf
openreview.pdf: main.pdf
pdftk main.pdf multistamp orstamp.pdf output openreview.pdf
proofreading: proofreading.pdf
paperhive:
git branch gh-pages
git checkout gh-pages
git add proofreading.pdf versions.json
git commit -m 'prepare for proofreading' proofreading.pdf versions.json
git push origin gh-pages
git checkout master
echo "langsci.github.io/BOOKID"
firefox https://paperhive.org/documents/new
proofreading.pdf: main.pdf
pdftk main.pdf multistamp prstamp.pdf output proofreading.pdf
blurb: blurb.html blurb.tex biosketch.tex biosketch.html
blurb.tex: blurb.md
pandoc -f markdown -t latex blurb.md>blurb.tex
blurb.html: blurb.md
pandoc -f markdown -t html blurb.md>blurb.html
biosketch.tex: blurb.md
pandoc -f markdown -t latex biosketch.md>biosketch.tex
biosketch.html: blurb.md
pandoc -f markdown -t html biosketch.md>biosketch.html
#housekeeping
clean:
rm -f *.bak *~ *.backup *.tmp \
*.adx *.and *.idx *.ind *.ldx *.lnd *.sdx *.snd *.rdx *.rnd *.wdx *.wnd \
*.log *.blg *.ilg \
*.aux *.toc *.cut *.out *.tpm *.bbl *-blx.bib *_tmp.bib \
*.glg *.glo *.gls *.wrd *.wdv *.xdv *.mw *.clr \
*.run.xml \
chapters/*aux chapters/*~ chapters/*.bak chapters/*.backup\
langsci/*/*aux langsci/*/*~ langsci/*/*.bak langsci/*/*.backup
realclean: clean
rm -f *.dvi *.ps *.pdf
chapterlist:
grep chapter main.toc|sed "s/.*numberline {[0-9]\+}\(.*\).newline.*/\\1/"
podcover:
bash podcovers.sh
edit:
mvim -c ':set spell spelllang=de' -c ':nnoremap <F15> ]s' -c ':nnoremap <F14> [s' chapters/*.tex main.tex local*.tex
FORCE: