Skip to content

Commit ed30f76

Browse files
committed
template optimisation
1 parent abe33cf commit ed30f76

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

.template/metadata.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# document class
2+
---
3+
fontsize: 12pt
4+
author: "The Learned Contributors to OpenLex"
5+
papersize: a4
6+
date: ${BUILD_TIME}
7+
---

Makefile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ all: admin cons contract crim equity land tort
22

33
travis: contract
44

5-
admin: .template/template.tex openlex-admin/openlex-admin.md
6-
pandoc -N --template=.template/template.tex --variable fontsize=12pt --variable title="Administrative Law" --variable author="The Learned Contributors to OpenLex" --variable date="$$BUILD_TIME" openlex-admin/openlex-admin.md --latex-engine=xelatex --toc -o openlex-admin.pdf
5+
admin: .template/template.tex openlex-admin/openlex-admin.md .template/metadata.yaml
6+
pandoc -N --template=.template/template.tex --variable title="Administrative Law" openlex-admin/openlex-admin.md .template/metadata.yaml --latex-engine=xelatex --toc -o openlex-admin.pdf
77

8-
cons: .template/template.tex openlex-cons/openlex-cons.md
9-
pandoc -N --template=.template/template.tex --variable fontsize=12pt --variable title="Constitutional Law" --variable author="The Learned Contributors to OpenLex" --variable date="$$BUILD_TIME" openlex-cons/openlex-cons.md --latex-engine=xelatex --toc -o openlex-cons.pdf
8+
cons: .template/template.tex openlex-cons/openlex-cons.md .template/metadata.yaml
9+
pandoc -N --template=.template/template.tex --variable title="Constitutional Law" openlex-cons/openlex-cons.md .template/metadata.yaml --latex-engine=xelatex --toc -o openlex-cons.pdf
1010

11-
contract: .template/template.tex openlex-contract/openlex-contract.md
12-
pandoc -N --template=.template/template.tex --variable fontsize=12pt --variable title="Law of Contract" --variable author="The Learned Contributors to OpenLex" --variable date="$$BUILD_TIME" openlex-contract/openlex-contract.md --latex-engine=xelatex --toc -o openlex-contract.pdf
11+
contract: .template/template.tex openlex-contract/openlex-contract.md .template/metadata.yaml
12+
pandoc -N --template=.template/template.tex --variable title="Law of Contract" openlex-contract/openlex-contract.md .template/metadata.yaml --latex-engine=xelatex --toc -o openlex-contract.pdf
1313

14-
crim: .template/template.tex openlex-crim/openlex-crim.md
15-
pandoc -N --template=.template/template.tex --variable fontsize=12pt --variable title="Criminal Law" --variable author="The Learned Contributors to OpenLex" --variable date="$$BUILD_TIME" openlex-crim/openlex-crim.md --latex-engine=xelatex --toc -o openlex-crim.pdf
14+
crim: .template/template.tex openlex-crim/openlex-crim.md .template/metadata.yaml
15+
pandoc -N --template=.template/template.tex --variable title="Criminal Law" openlex-crim/openlex-crim.md .template/metadata.yaml --latex-engine=xelatex --toc -o openlex-crim.pdf
1616

17-
equity: .template/template.tex openlex-equity/openlex-equity.md
18-
pandoc -N --template=.template/template.tex --variable fontsize=12pt --variable title="Equity and Trust" --variable author="The Learned Contributors to OpenLex" --variable date="$$BUILD_TIME" openlex-equity/openlex-equity.md --latex-engine=xelatex --toc -o openlex-equity.pdf
17+
equity: .template/template.tex openlex-equity/openlex-equity.md .template/metadata.yaml
18+
pandoc -N --template=.template/template.tex --variable title="Equity and Trust" openlex-equity/openlex-equity.md .template/metadata.yaml --latex-engine=xelatex --toc -o openlex-equity.pdf
1919

20-
land: .template/template.tex openlex-land/openlex-land.md
21-
pandoc -N --template=.template/template.tex --variable fontsize=12pt --variable title="Land Law" --variable author="The Learned Contributors to OpenLex" --variable date="$$BUILD_TIME" openlex-land/openlex-land.md --latex-engine=xelatex --toc -o openlex-land.pdf
20+
land: .template/template.tex openlex-land/openlex-land.md .template/metadata.yaml
21+
pandoc -N --template=.template/template.tex --variable title="Land Law" openlex-land/openlex-land.md .template/metadata.yaml --latex-engine=xelatex --toc -o openlex-land.pdf
2222

23-
tort: .template/template.tex openlex-tort/openlex-tort.md
24-
pandoc -N --template=.template/template.tex --variable fontsize=12pt --variable title="Tort Law" --variable author="The Learned Contributors to OpenLex" --variable date="$$BUILD_TIME" openlex-tort/openlex-tort.md --latex-engine=xelatex --toc -o openlex-tort.pdf
23+
tort: .template/template.tex openlex-tort/openlex-tort.md .template/metadata.yaml
24+
pandoc -N --template=.template/template.tex --variable title="Tort Law" openlex-tort/openlex-tort.md .template/metadata.yaml --latex-engine=xelatex --toc -o openlex-tort.pdf

0 commit comments

Comments
 (0)