Skip to content

Commit 589f417

Browse files
committed
update: prepare english chapters
1 parent 4a3889c commit 589f417

17 files changed

+10
-123
lines changed

book/en-us/01-intro.md

Whitespace-only changes.

book/en-us/02-usability.md

Whitespace-only changes.

book/en-us/03-runtime.md

Whitespace-only changes.

book/en-us/04-containers.md

Whitespace-only changes.

book/en-us/05-pointers.md

Whitespace-only changes.

book/en-us/06-regex.md

Whitespace-only changes.

book/en-us/07-thread.md

Whitespace-only changes.

book/en-us/08-filesystem.md

Whitespace-only changes.

book/en-us/09-others.md

Whitespace-only changes.

book/en-us/10-cpp20.md

Whitespace-only changes.

book/en-us/appendix1.md

Whitespace-only changes.

book/en-us/appendix2.md

Whitespace-only changes.

book/en-us/toc.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# C++ 11/14/17 On The Fly
22

3-
> This book adapting to C++17 and translating to English
4-
53
## Table of Contents
64

75
- [**Preface**](./00-preface.md)

pdf/en-us/Makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
title = 'C++11/14/17 On the Fly'
22
filename = 'modern-cpp-tutorial'
33
outputname='modern-cpp-tutorial'
4+
revision = $(shell git describe --always --tags)
45

5-
all: pdf
6+
all: revision pdf
7+
8+
revision:
9+
@echo '% Autogenerated, do not edit' > revision.tex
10+
@echo '\\newcommand{\\revision}{'$(revision)'}' >> revision.tex
611

712
pdf: markdown
813
@echo "Compiling PDF file..."
9-
@pandoc -s $(filename).md -o $(outputname).pdf \
14+
@pandoc -f markdown+smart -s $(filename).md -o $(filename).pdf \
1015
--title-prefix $(title) \
1116
--listings -H meta/cpp-listings.tex \
1217
--template=meta/template.tex \
13-
--normalize \
14-
--smart \
15-
--latex-engine=`which xelatex`
18+
--pdf-engine=`which xelatex`
1619
@echo "Done."
17-
@rm *.md
20+
@rm *.md revision.tex
1821

1922
markdown:
2023
@echo "Copy markdown files..."
@@ -23,6 +26,6 @@ markdown:
2326
@python3 aggregator.py
2427

2528
clean:
26-
rm -rf *.md *.pdf
29+
rm -rf revision.tex *.md *.pdf
2730

2831
.PHONY: markdown pdf clean

pdf/en-us/modern-cpp-tutorial.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

pdf/en-us/modern-cpp-tutorial.pdf

-7 Bytes
Binary file not shown.

pdf/en-us/toc.md

Lines changed: 0 additions & 109 deletions
This file was deleted.

0 commit comments

Comments
 (0)