summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-03-23 16:20:19 +0100
committerJonas Smedegaard <dr@jones.dk>2015-03-23 16:20:19 +0100
commit4b424cbb384b78c9beb6dc116e052e77600246a0 (patch)
tree5c41b41e5c7e14efa525f487b3822bc58d051f05
parent5237f4289ccfa25dfe48c23d4425d28a7d93e60e (diff)
Add ISBN (and suppress whole line if undefined).
-rw-r--r--Makefile2
-rw-r--r--copyright.md2
-rw-r--r--template.tex6
3 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2ba38ae..6d23644 100644
--- a/Makefile
+++ b/Makefile
@@ -40,8 +40,10 @@ args_latex += -V frontmatter=yes -V classoption=titlepage -V classoption=$(if $(
#flavors = a4 book ebook
flavors = a4 ebook
args_a4 = -V papersize=a4paper -V fontsize=10pt -V classoption=oneside
+args_a4 = -M isbn="978-90-823692-1-2"
args_book = -V papersize=b5paper -V fontsize=10pt -V classoption=twoside
args_ebook = -V papersize=ebook -V fontsize=12pt -V classoption=oneside -V classoption=openany
+args_ebook = -M isbn="978-90-823692-0-5"
all: $(flavors:%=$(stem)-%.pdf)
diff --git a/copyright.md b/copyright.md
index 4bac683..fee3aaf 100644
--- a/copyright.md
+++ b/copyright.md
@@ -29,7 +29,7 @@ the SIL Open Font License version 1.1,
<http://scripts.sil.org/OFL>.
Source available at <https://github.com/cyrealtype/Lora>.
-ISBN \mytodo{ISBN No.}{0-1234-FIXME-2}
+\isbn
First edition published \formatdate{11}{12}{2014}
Second edition published \formatdate{25}{3}{2015}
diff --git a/template.tex b/template.tex
index 0fc3878..a2ad852 100644
--- a/template.tex
+++ b/template.tex
@@ -157,6 +157,12 @@ $else$
$endif$
$endif$
+$if(isbn)$
+ \newcommand{\isbn}{ISBN $isbn$}
+$else$
+ \newcommand{\isbn}{}
+$endif$
+
$for(header-includes)$
$header-includes$
$endfor$