summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2015-03-25 15:17:42 +0100
committerJonas Smedegaard <dr@jones.dk>2015-03-25 15:17:42 +0100
commitbff83d9b0b0215f21e37abcd50f63a31bcbbf25c (patch)
treee3787dca989bea48006bad5872e7b28a57cc0cca
parent30e39dee7cf19ca92ad25e394783f4725ae1dd55 (diff)
Tweak margins and suppress barcode for ebook flavor.
-rw-r--r--Makefile2
-rw-r--r--copyright.md2
-rw-r--r--header-ebook.tex3
-rw-r--r--template.tex7
4 files changed, 10 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 283ef1c..a95c798 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@ args_a4 = -V papersize=a4paper -V fontsize=10pt -V classoption=twoside
args_a4 += -M isbn="978-90-823692-1-2" -V coverpage="$(stem)-a4-front.pdf"
args_book = -V papersize=b5paper -V fontsize=10pt -V classoption=twoside
args_ebook = -V papersize=a5paper -V fontsize=12pt -V classoption=oneside -V classoption=openany
-args_ebook += -M isbn="978-90-823692-0-5" -V coverpage="$(stem)-a4-front.pdf"
+args_ebook += -M isbn="978-90-823692-0-5" -V isbn-nobarcode=1 -V coverpage="$(stem)-a4-front.pdf"
args_ebook += -H header-ebook.tex
all: $(flavors:%=$(stem)-%.pdf)
diff --git a/copyright.md b/copyright.md
index 8034936..ea9ef86 100644
--- a/copyright.md
+++ b/copyright.md
@@ -32,4 +32,4 @@ Source available at <https://github.com/cyrealtype/Lora>.
First edition published \formatdate{11}{12}{2014}.
Second edition published \formatdate{25}{3}{2015}.
-\raggedleft\vfill\Longstack[l]{\EANisbn}\par
+\raggedleft\vfill\Longstack[l]{\myisbn}\par
diff --git a/header-ebook.tex b/header-ebook.tex
index 7038bed..31923cf 100644
--- a/header-ebook.tex
+++ b/header-ebook.tex
@@ -1,2 +1,3 @@
-\setlrmarginsandblock{1cm}{*}{*}
+\setlrmarginsandblock{2cm}{*}{*}
+\setulmarginsandblock{*}{2cm}{*}
\checkandfixthelayout
diff --git a/template.tex b/template.tex
index 8cc9e83..2a1641a 100644
--- a/template.tex
+++ b/template.tex
@@ -161,8 +161,13 @@ $endif$
\usepackage[usestackEOL]{stackengine}
$if(isbn)$
\usepackage[ISBN=$isbn$,SC0]{ean13isbn}
+$if(isbn-nobarcode)$
+ \newcommand{\myisbn}{\ISBN}
$else$
- \newcommand{\EANisbn}
+ \newcommand{\myisbn}{\EANisbn}
+$endif$
+$else$
+ \newcommand{\myisbn}
$endif$
$if(coverpage)$