From 6bae786a5f2a9c20a91126f49973d7d669165124 Mon Sep 17 00:00:00 2001 From: Craig Maloney Date: Mon, 25 Jun 2018 09:00:36 -0400 Subject: [PATCH] Fixing up chapter numbering --- Makefile | 6 +++--- intro.md | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 39a0dec..308e2c5 100644 --- a/Makefile +++ b/Makefile @@ -22,14 +22,14 @@ pdf: $(BUILD)/pdf/$(BOOKNAME).pdf $(BUILD)/epub/$(BOOKNAME).epub: $(TITLE) $(CHAPTERS) mkdir -p $(BUILD)/epub - pandoc $(TOC) -S --epub-metadata=$(METADATA) --epub-cover-image=$(COVER_IMAGE) -o $@ $^ + pandoc $(TOC) --chapters --number-offset=0 -S --epub-metadata=$(METADATA) --epub-cover-image=$(COVER_IMAGE) -o $@ $^ $(BUILD)/html/$(BOOKNAME).html: $(CHAPTERS) mkdir -p $(BUILD)/html - pandoc $(TOC) --standalone --to=html5 -o $@ $^ + pandoc $(TOC) --chapters --number-offset=0 --standalone --to=html5 -o $@ $^ $(BUILD)/pdf/$(BOOKNAME).pdf: $(TITLE) $(CHAPTERS) mkdir -p $(BUILD)/pdf - pandoc $(TOC) --latex-engine=xelatex -V documentclass=$(LATEX_CLASS) -o $@ $^ + pandoc $(TOC) --chapters --number-offset=0 --latex-engine=xelatex -V documentclass=$(LATEX_CLASS) -o $@ $^ .PHONY: all book clean epub html pdf diff --git a/intro.md b/intro.md index 58465a7..dd2297c 100644 --- a/intro.md +++ b/intro.md @@ -1,6 +1,6 @@ -# The Mediocre Programmer +# Introduction {-} -## Introduction +## The Mediocre Programmer? Let's face it; we don't want to be mediocre programmers. We want to be great programmers; superlative programmers. We want to be the programmers they call whenever they're in a bind and we want to be the programmers that rush into the code base and produce perfect code in a matter of minutes. Code that would sit in the Louvre as a work of art, studied by generations of programmers for its intrinsic beauty and exceptional functionality. -- 2.31.1