Skip to content

Commit

Permalink
Merge pull request #1 from timmli/refactoring-templates
Browse files Browse the repository at this point in the history
Refactoring templates
  • Loading branch information
timmli authored Apr 25, 2020
2 parents 1e95335 + 7b97cc1 commit beb7dc8
Show file tree
Hide file tree
Showing 114 changed files with 1,149 additions and 16,441 deletions.
27 changes: 21 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
[submodule "bst/biblatex-sp-unified"]
path = bst/biblatex-sp-unified
url = https://github.com/semprag/biblatex-sp-unified.git
[submodule "templates/langscibook"]
path = templates/langscibook
url = https://github.com/langsci/langscibook.git
[submodule "templates/beamer-template"]
path = templates/beamer-template
url = https://github.com/timmli/beamer-template.git
[submodule "templates/poster-template"]
path = templates/poster-template
url = https://github.com/timmli/poster-template.git
[submodule "templates/text-template"]
path = templates/text-template
url = https://github.com/timmli/text-template.git
[submodule "templates/teaching-template"]
path = templates/teaching-template
url = https://github.com/timmli/teaching-template.git
[submodule "templates/jlm-template"]
path = templates/jlm-template
url = https://github.com/timmli/jlm-template.git
[submodule "templates/langscibook-template"]
path = templates/langscibook-template
url = https://github.com/timmli/langscibook-template.git
[submodule "templates/standalone-template"]
path = templates/standalone-template
url = https://github.com/timmli/standalone-template.git
197 changes: 30 additions & 167 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,180 +1,43 @@
SHELL := /bin/bash

# specify your main target here:
all: misc.pdf clean

# specify the main file and all the files that you are including
SOURCE=misc.tex myMacros.tex \
references.bib

%.pdf: %.tex $(SOURCE)
pdflatex $*
bibtex $*
pdflatex $*
pdflatex $*

clean:
rm -f *.bak *~ *.log *.blg *.bbl *.aux *.toc *.cut *.out *.tmp *.tpm *.adx *.adx.hyp *.idx *.ilg *.ind \
*.and *.glg *.glo *.gls *.wdx *.wnd *.wrd *.wdv *.ldx *.lnd *.rdx *.rnd *.xdv

realclean: clean
rm -f *.dvi *.ps *.pdf

#-------------------------------------------------------------------------------

ABSTRACT_FILES = myMacros.tex references.bib \
settings/standard-settings.tex \
$(wildcard packages/*.sty) \
$(filter-out $(wildcard examples/poster*), $(filter-out $(wildcard examples/beamer*), $(wildcard examples/*.tex))) \
$(wildcard bst/biblatex-sp-unified/[^.]*)

test_abstract:
cp templates/abstract-template.tex .
latexmk -pdf abstract-template.tex
release_all: release_abstract release_article release_beamer release_book release_jlm release_langscibook release_poster release_standalone

release_abstract:
cp templates/abstract-template.tex .
zip -r abstract-template.zip abstract-template.tex $(ABSTRACT_FILES)
rm abstract-template.tex

#-------------------------------------------------------------------------------

ARTICLE_FILES = myMacros.tex references.bib \
settings/standard-settings.tex \
settings/scrarticle-settings.tex \
$(wildcard packages/*.sty) \
$(filter-out $(wildcard examples/poster*), $(filter-out $(wildcard examples/beamer*), $(wildcard examples/*.tex))) \
$(wildcard bst/biblatex-sp-unified/[^.]*)

test_article:
cp templates/article-template.tex .
latexmk -pdf article-template.tex
cd templates/text-template; \
make release_abstract; \
mv abstract-template.zip ..

release_article:
cp templates/article-template.tex .
cp templates/article-template.org .
zip -r article-template.zip article-template.tex article-template.org $(ARTICLE_FILES)
rm article-template.tex article-template.org

#-------------------------------------------------------------------------------

BEAMER_FILES = myMacros.tex references.bib \
settings/beamer-settings.tex \
$(wildcard packages/*.sty) \
$(filter-out $(wildcard examples/poster*), $(wildcard examples/*.tex)) \
$(wildcard bst/biblatex-sp-unified/[^.]*) \
graphics/sfb-logo-quer.pdf \
graphics/hhu-logo-hres.pdf \
graphics/UT-MNF-FBI-logo.pdf \
graphics/UT-logo.pdf

test_beamer:
cp templates/beamer-template.tex .
cp themes/beamer* .
latexmk -pdf beamer-template.tex
cd templates/text-template; \
make release_article; \
mv article-template.zip ..

release_beamer:
cp templates/beamer-template.tex .
cp themes/beamer* .
zip -r template-beamer.zip beamer* $(BEAMER_FILES)
rm beamer*
mv template-beamer.zip beamer-template.zip

clean_beamer:
rm beamer*

#-------------------------------------------------------------------------------

HAUSARBEIT_FILES = myMacros.tex references.bib \
settings/standard-settings.tex \
$(wildcard packages/*.sty) \
$(filter-out $(wildcard examples/poster*), $(filter-out $(wildcard examples/beamer*), $(wildcard examples/*.tex))) \
$(wildcard bst/biblatex-sp-unified/[^.]*)
cd templates/beamer-template; \
make release_beamer; \
mv beamer-template.zip ..

release_hausarbeit:
cp templates/hausarbeit-template.tex .
zip -r hausarbeit-template.zip hausarbeit-template.tex $(HAUSARBEIT_FILES)
rm hausarbeit-template.tex
release_book:
cd templates/text-template; \
make release_book; \
mv book-template.zip ..

test_hausarbeit:
cp templates/hausarbeit-template.tex .
latexmk -pdf hausarbeit-template.tex
release_jlm:
cd templates/jlm-template; \
make release_jlm; \
mv jlm-template.zip ..

#-------------------------------------------------------------------------------

JLM_ARTICLE_FILES = myMacros.tex references.bib \
$(wildcard packages/*.sty) \
$(filter-out $(wildcard examples/poster*), $(filter-out $(wildcard examples/beamer*), $(wildcard examples/*.tex)))

release_jlm_article:
cp templates/jlm-article-template.org .
cp templates/jlm/cc-by.pdf .
cp templates/jlm/jlm.cls .
cp templates/jlm/jlm.bst .
cp templates/jlm/jlm-guidelines.pdf .
cp templates/latexmkrc-xelatex latexmkrc
cp -r templates/jlm/fonts .
zip -r jlm-article-template.zip \
jlm-article-template.org jlm.cls jlm.bst cc-by.pdf jlm-guidelines.pdf latexmkrc fonts $(JLM_ARTICLE_FILES)
rm -fr jlm-article-template.org jlm.cls jlm.bst cc-by.pdf jlm-guidelines.pdf fonts

test_jlm_article:
cp templates/jlm-article-template.tex .
cp templates/jlm/cc-by.pdf .
cp templates/jlm/jlm.cls .
cp templates/jlm/jlm.bst .
cp templates/jlm/jlm-guidelines.pdf .
cp templates/latexmkrc-xelatex latexmkrc
latexmk -pdf hausarbeit-template.tex

clean_jlm_article:
rm -fr jlm-article-template.org jlm.cls jlm.bst cc-by.pdf jlm-guidelines.pdf fonts

#-------------------------------------------------------------------------------

LANGSCI_PAPER_FILES = myMacros.tex references.bib \
$(wildcard packages/*.sty) \
$(filter-out $(wildcard examples/poster*), $(filter-out $(wildcard examples/beamer*), $(wildcard examples/*.tex)))

release_langsci_paper:
cp -r templates/langscibook/langsci .
cp templates/langsci-paper-template.org .
cp templates/langsci-paper-template.tex .
cp templates/latexmkrc-xelatex latexmkrc
zip -r langsci-paper-template.zip \
langsci-paper-template.org langsci-paper-template.tex langsci $(LANGSCI_PAPER_FILES)
rm -fr langsci langsci*

test_langsci_paper:
cp -r templates/langscibook/langsci .
cp templates/langsci-paper-template.tex .
cp templates/latexmkrc-xelatex latexmkrc
latexmk -pdf langsci-paper-template.tex

clean_langsci_paper:
rm -fr langsci langsci*

#-------------------------------------------------------------------------------

POSTER_FILES = myMacros.tex references.bib \
settings/myPosterstyle.tex \
settings/poster-settings.tex \
graphics/sfb-logo-quer.pdf \
graphics/hhu-logo-hres.pdf \
$(wildcard packages/*.sty) \
$(filter-out $(wildcard examples/beamer*), $(wildcard examples/*.tex)) \
$(wildcard bst/biblatex-sp-unified/[^.]*)

test_poster:
cp templates/poster-template.tex .
latexmk -pdf poster-template.tex
release_langscibook:
cd templates/langscibook-template; \
make release_langscibook; \
mv langscibook-template.zip ..

release_poster:
cp templates/poster-template.tex .
zip -r poster-template.zip poster-template.tex $(POSTER_FILES)
rm poster-template.tex

#-------------------------------------------------------------------------------

release_all: release_abstract release_article release_beamer release_hausarbeit release_poster release_jlm_article release_langsci_paper

cd templates/poster-template; \
make release_poster; \
mv poster-template.zip ..

release_standalone:
cd templates/standalone-template; \
make release_standalone; \
mv standalone-template.zip ..
21 changes: 12 additions & 9 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ Collection of LaTeX settings and templates

** Included templates

| short abstract | [[file:templates/abstract-template.tex][tex]],[[file:templates/abstract-template.org][org]] | [[https://www.overleaf.com/docs?snip_uri=https://github.com/timmli/latex-templates/releases/download/v0.2.3/abstract-template.zip][Overleaf]] |
| standard article | [[file:templates/article-template.tex][tex]],[[file:templates/article-template.org][org]] | [[https://www.overleaf.com/docs?snip_uri=https://github.com/timmli/latex-templates/releases/download/v0.2.3/article-template.zip][Overleaf]] |
| standard book | [[file:templates/book-template.tex][tex]] | |
| beamer slides (Tuebingen) | [[file:templates/beamer-template.tex][tex]],[[file:templates/beamer-template.org][org]] | [[https://www.overleaf.com/docs?snip_uri=https://github.com/timmli/latex-templates/releases/download/v0.2.3/beamer-template.zip][Overleaf]] |
| langsci paper | [[file:templates/langsci-paper-template.tex][tex]],[[file:templates/langsci-paper-template.org][org]] | |
| jlm article | [[file:templates/jlm-article-template.org][org]] | |
| poster | [[file:templates/poster-template.tex][tex]] | [[https://www.overleaf.com/docs?snip_uri=https://github.com/timmli/latex-templates/releases/download/v0.2.3/poster-template.zip][Overleaf]] |
| Hausarbeit (for teaching) | [[file:templates/hausarbeit-template.tex][tex]] | [[https://www.overleaf.com/docs?snip_uri=https://github.com/timmli/latex-templates/releases/download/v0.2.3/hausarbeit-template.zip][Overleaf]] |
| Essay (for teaching) | [[file:templates/essay-template.tex][tex]] | |

| Template | Repository | zip | Overleaf |
|---------------------------+----------------------+-----+----------|
| short abstract | [[https://github.com/timmli/text-template][text-template]] | | [[https://www.overleaf.com/docs?snip_uri=https://github.com/timmli/latex-templates/releases/download/v0.2.3/abstract-template.zip][Overleaf]] |
| standard article | [[https://github.com/timmli/text-template][text-template]] | | [[https://www.overleaf.com/docs?snip_uri=https://github.com/timmli/latex-templates/releases/download/v0.2.3/article-template.zip][Overleaf]] |
| standard book | [[https://github.com/timmli/text-template][text-template]] | | |
| beamer slides (Tuebingen) | [[https://github.com/timmli/beamer-template][beamer-template]] | | [[https://www.overleaf.com/docs?snip_uri=https://github.com/timmli/latex-templates/releases/download/v0.2.3/beamer-template.zip][Overleaf]] |
| langscibook paper | [[https://github.com/timmli/langscibook-template][langscibook-template]] | | |
| jlm article | [[https://github.com/timmli/jlm-template][jlm-template]] | | |
| poster | [[https://github.com/timmli/poster-template][poster-template]] | | [[https://www.overleaf.com/docs?snip_uri=https://github.com/timmli/latex-templates/releases/download/v0.2.3/poster-template.zip][Overleaf]] |
| Hausarbeit (for teaching) | [[https://github.com/timmli/teaching-template][teaching-template]] | | [[https://www.overleaf.com/docs?snip_uri=https://github.com/timmli/latex-templates/releases/download/v0.2.3/hausarbeit-template.zip][Overleaf]] |
| Essay (for teaching) | [[https://github.com/timmli/teaching-template][teaching-template]] | | |
Loading

0 comments on commit beb7dc8

Please sign in to comment.