Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <olivier.mehani@nicta.com.au>2013-01-08 18:14:49 +1100
committerOlivier Mehani <olivier.mehani@nicta.com.au>2013-01-08 18:24:10 +1100
commit062fc9a4a1b16a42fc5a1140ab7bac1c925ae886 (patch)
tree18fbc06cbf185622aa204a4ca1779b363125822a
parent926c26d71b33f80de3a34dc622cd868c3e79a977 (diff)
Add Makefile; rename package
Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
-rw-r--r--Makefile55
-rw-r--r--README82
-rw-r--r--thesis.tex4
-rw-r--r--unswcover.sty (renamed from UNSWThesis.sty)5
4 files changed, 141 insertions, 5 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..02dc1db
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,55 @@
+TEXMFHOME=/usr/local/share/texmf
+DESTDIR=$(TEXMFHOME)/tex/latex/unswcover
+
+INSTALL=install
+TEXHASH=texhash
+INKSCAPE=inkscape
+LATEX=pdflatex
+BIBTEX=bibtex
+
+STYLE=unswcover.sty
+LOGOSBASE=logo_unsw_short.
+
+LOGOSPS=$(LOGOSBASE:.=.ps)
+LOGOSPDF=$(LOGOSBASE:.=.pdf)
+LOGOS=$(LOGOSPS) $(LOGOSPDF)
+
+PACKAGENAME=unswcover-$(shell date +%Y%m%d)
+
+all: $(LOGOS) thesis.pdf
+
+thesis.aux: thesis.tex
+ $(LATEX) -draftmode -interaction nonstopmode $< > /dev/null
+thesis.pdf: thesis.tex thesis.aux
+ $(BIBTEX) $(<:.tex=.aux)
+ $(LATEX) -halt-on-error -interaction nonstopmode $< > /dev/null
+
+install: $(STYLE) $(LOGOS)
+ $(INSTALL) -m 0755 -d $(DESTDIR)
+ $(INSTALL) -m 0644 $(STYLE) $(LOGOS) $(ARTWORK) $(DESTDIR)
+ $(TEXHASH) $(TEXMFHOME)
+
+package: $(PACKAGENAME).tar.bz2
+$(PACKAGENAME).tar.bz2: $(STYLE) $(LOGOS) $(ARTWORK) README Makefile
+ test ! -d $(PACKAGENAME)
+ for FILE in $^; do\
+ DIR=$(PACKAGENAME)/`dirname $$FILE`; \
+ mkdir -p $$DIR; \
+ cp $$FILE $$DIR; \
+ done
+ tar cjvf $@ $(PACKAGENAME)
+ rm -rf $(PACKAGENAME)
+
+%.ps: %.svg
+ $(INKSCAPE) -P $@ $<
+%.pdf: %.svg
+ $(INKSCAPE) -A $@ $<
+
+clean:
+ rm -f *.pdf *.ps
+ rm -f *.log *.out *.nav *.snm *.toc *.bbl *.bcf *.blg *-blx.bib *.run.xml
+
+real-clean: clean
+ rm -f *.aux
+
+.PHONY: all install package clean real-clean
diff --git a/README b/README
new file mode 100644
index 0000000..8fefa36
--- /dev/null
+++ b/README
@@ -0,0 +1,82 @@
+UNSW Dissertation Cover Page for LaTeX
+======================================
+
+This is a LaTeX package providing a simple way to create a dissertation title
+page for the University of New South Wales.
+
+
+Commands
+========
+
+A titlepage (not using the titlepage environment) can be inserted with
+ \makeunswphdtitlepage
+
+The name of the school can be specified with
+ \unswschool{SCHOOL}
+
+If the thesis is done in cotutelle, the other Uni can be introduced with
+ \unswcotutelle{OTHERUNI}
+
+A more complete front matter including all statements (originality, copyright
+and authenticity) for final publication can be inserted with
+ \makeunswfrontmatter
+
+With this command, a PDF version of the Thesis/Dissertation Sheet can be
+inserted at the back of the titlepage. That file can be specified with
+ \unswdissertationsheet{FILENAME.pdf}
+
+The provided thesis.tex gives an example of use.
+
+
+Installation
+============
+
+The style and support files need to be in the path that LaTeX will search when
+compiling your slides. If in doubt, consult your IT support group for further
+guidance.
+
+Unix
+----
+
+The Makefile will install all the files for you. A simple invocation of "make
+install" will install the files in /usr/local/share/texmf/, in the subtree
+tex/latex/unswcover. You can modify the destination by specifying the texmf tree
+into which you want to install the files, e.g.,
+ make install TEXMFHOME=/usr/share/texmf-site
+or
+ make TEXMFHOME=~/.texmf install
+
+The first two commands will install the template globally an are likely to
+require superuser rights. The latter will install the files in your user's texmf
+tree. For LaTeX to properly find it afterwards, you need to set the environment
+variable TEXMFHOME to point to this directory (or any other you may have
+chosen).
+
+Mac OS X
+--------
+
+Installation depends on your TeX system.
+
+* Using teTeX/LaTeX or TeXshop from fink: The Makefile _should_ work. Just issue
+a
+ make TEXMFHOME=~/Library/texmf install
+* Using texlive-latex from MacPorts: same as for Unix above.
+
+Please report any issue to Olivier (see below). Contributions are welcome for
+other methods to integrate this with other versions of LaTeX for OS X.
+
+Windows
+-------
+
+Put the contents of the current directory in the directory you are working
+in (or make soft links). Any MiKTeX users who would like to contribute
+directions here would be welcome to do so.
+
+
+Authors
+=======
+
+This cover is based on the code in Guillaume Jourjon's PhD thesis, and was
+further modified and generalised for by Olivier Mehani <olivier@mehani.name>.
+There might be earlier authors whose name unfortunately have not made their way
+to my ears. Please let me know.
diff --git a/thesis.tex b/thesis.tex
index b8c5469..f1572cd 100644
--- a/thesis.tex
+++ b/thesis.tex
@@ -1,10 +1,10 @@
-\documentclass[11pt,a4paper,openright]{book}
+\documentclass[11pt,a4paper,openright]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[backend=bibtex]{biblatex}
\addbibresource{thesis.bib}
-\usepackage{UNSWThesis} % This one includes babel in Australian mode
+\usepackage{unswcover} % This one includes babel in Australian mode
\newcommand{\theTitle}{Contributions to Mechanisms for Adaptive Use of Mobile Network Resources}
\newcommand{\theAuthor}{Olivier Mehani}
diff --git a/UNSWThesis.sty b/unswcover.sty
index ec71bee..09c2258 100644
--- a/UNSWThesis.sty
+++ b/unswcover.sty
@@ -1,6 +1,5 @@
-%% UNSWThesis.sty
+%% unswcover.sty
%% Olivier Mehani
-%% $Id: UNSWThesis.sty 3465 2012-06-29 01:24:37Z omehani $
%% A titlepage (not using the titlepage environment) can be inserted with
%% \makeunswphdtitlepage
%% The name of the school can be specified with
@@ -14,7 +13,7 @@
%% inserted at the back of the titlepage. That file can be specified with
%% \unswdissertationsheet{FILENAME.pdf}
%% Based on the code in Guillaume Jourjon's PhD thesis
-\ProvidesPackage{UNSWThesis}
+\ProvidesPackage{unswcover}
\RequirePackage[australian]{babel}
\RequirePackage{graphicx}
\RequirePackage{pdfpages}