Add Thesis post.
authorW. Trevor King <wking@drexel.edu>
Wed, 17 Nov 2010 12:24:42 +0000 (07:24 -0500)
committerW. Trevor King <wking@drexel.edu>
Wed, 17 Nov 2010 12:24:42 +0000 (07:24 -0500)
.gitignore
Makefile
posts/LaTeX.mdwn
posts/Thesis.mdwn [new file with mode: 0644]
posts/Thesis/Makefile [new file with mode: 0644]

index ca87a89dd976f5d11b8b2824b0ace4ed16d62b86..aa3a10ecebca6ea2a437689a70bcad0c8f4aac75 100644 (file)
@@ -15,6 +15,8 @@ posts/drexel-thesis/drexel-thesis/
 /posts/sawsim/README.rst
 /posts/sawsim/sawsim.pdf
 /posts/sawsim/sawsim/
+posts/Thesis/thesis/
+posts/Thesis/draft.pdf
 /posts/XSLT/chapter/chapter.html
 /posts/XSLT/code/index.shtml
 /posts/Xmodmap/_Xmodmap
index 51acdb40dd40e03117c4bb62abc4b24ca67768d7..32dee291590bdc14bf5d3e2c6bf1184aab75a311 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
 # Build everything necessary to compile the wiki.
 
 SUBDIRS = posts/drexel-thesis posts/Hooke posts/problempack posts/rel-vcs \
-       posts/sawsim posts/yacc2dot posts/Xmodmap posts/XSLT/chapter posts/XSLT/code
+       posts/sawsim posts/Thesis posts/yacc2dot posts/Xmodmap \
+       posts/XSLT/chapter posts/XSLT/code
 TARGETS = all clean
 
 all :
index 5a543f43bed8eb3e6582bcf74a013c1d9f7ee114..ea76896a0b9024e33bd3264164ddc249cba09532 100644 (file)
@@ -5,12 +5,9 @@ Hate repeating yourself?  Love macros?  [LaTeX][] lets you write
 bit tricky to get things *just right*, but once you figure it out,
 it's easy to reuse the code.
 
-[[!template id=gitrepo repo=thesis]]
-
 Take a look at [my packages][code], the [Drexel Liki page][liki], the
 source for most of my [papers][] (if you scroll to the bottom of a
-paper's HTML, there is a `source files` link), and my thesis (in
-progress).
+paper's HTML, there is a `source files` link), and my [[thesis]].
 
 If you're interested in LaTeX and graphics, you'll probably be
 interested in [[Asymptote]] and [[PGF]].
diff --git a/posts/Thesis.mdwn b/posts/Thesis.mdwn
new file mode 100644 (file)
index 0000000..5261717
--- /dev/null
@@ -0,0 +1,14 @@
+[[!template id=gitrepo repo=thesis]]
+
+The source for my Ph.D. thesis (in progress).  A [[draft|draft.pdf]]
+is compiled after each commit.  I use the [[drexel-thesis]] class,
+which I also maintain.
+
+Exciting features: [[SCons]] build; [[Asymptote]]/asyfig, [[PGF]], and
+[PyMOL][] figures.
+
+[PyMOL]: http://www.pymol.org/
+
+[[!tag tags/latex]]
+[[!tag tags/papers]]
+[[!tag tags/theory]]
diff --git a/posts/Thesis/Makefile b/posts/Thesis/Makefile
new file mode 100644 (file)
index 0000000..214df30
--- /dev/null
@@ -0,0 +1,22 @@
+REPO = http://www.physics.drexel.edu/~wking/code/git/thesis.git
+PACKAGE = thesis
+
+.PHONY : all checkout clean
+
+all : draft.pdf
+
+clean :
+       rm -rf $(PACKAGE) draft.pdf
+
+$(PACKAGE) :
+       git clone $(REPO) $@
+
+checkout : $(PACKAGE)
+       (cd $(PACKAGE) && git pull)
+
+.PHONY : $(PACKAGE:%=%/tex/thesis.pdf)
+$(PACKAGE:%=%/tex/thesis.pdf) : checkout
+       (cd $(PACKAGE:%=%/tex) && scons)
+
+draft.pdf : $(PACKAGE:%=%/tex/thesis.pdf)
+       cp $(PACKAGE:%=%/tex/thesis.pdf) $@