From 4b424cbb384b78c9beb6dc116e052e77600246a0 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 23 Mar 2015 16:20:19 +0100 Subject: Add ISBN (and suppress whole line if undefined). --- Makefile | 2 ++ copyright.md | 2 +- template.tex | 6 ++++++ 3 files changed, 9 insertions(+), 1 deletion(-) 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, . Source available at . -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$ -- cgit v1.2.3