Skip to content

Commit

Permalink
update: prepare english chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
changkun committed Jun 5, 2019
1 parent 4a3889c commit 589f417
Show file tree
Hide file tree
Showing 17 changed files with 10 additions and 123 deletions.
Empty file added book/en-us/01-intro.md
Empty file.
Empty file added book/en-us/02-usability.md
Empty file.
Empty file added book/en-us/03-runtime.md
Empty file.
Empty file added book/en-us/04-containers.md
Empty file.
Empty file added book/en-us/05-pointers.md
Empty file.
Empty file added book/en-us/06-regex.md
Empty file.
Empty file added book/en-us/07-thread.md
Empty file.
Empty file added book/en-us/08-filesystem.md
Empty file.
Empty file added book/en-us/09-others.md
Empty file.
Empty file added book/en-us/10-cpp20.md
Empty file.
Empty file added book/en-us/appendix1.md
Empty file.
Empty file added book/en-us/appendix2.md
Empty file.
2 changes: 0 additions & 2 deletions book/en-us/toc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# C++ 11/14/17 On The Fly

> This book adapting to C++17 and translating to English
## Table of Contents

- [**Preface**](./00-preface.md)
Expand Down
17 changes: 10 additions & 7 deletions pdf/en-us/Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
title = 'C++11/14/17 On the Fly'
filename = 'modern-cpp-tutorial'
outputname='modern-cpp-tutorial'
revision = $(shell git describe --always --tags)

all: pdf
all: revision pdf

revision:
@echo '% Autogenerated, do not edit' > revision.tex
@echo '\\newcommand{\\revision}{'$(revision)'}' >> revision.tex

pdf: markdown
@echo "Compiling PDF file..."
@pandoc -s $(filename).md -o $(outputname).pdf \
@pandoc -f markdown+smart -s $(filename).md -o $(filename).pdf \
--title-prefix $(title) \
--listings -H meta/cpp-listings.tex \
--template=meta/template.tex \
--normalize \
--smart \
--latex-engine=`which xelatex`
--pdf-engine=`which xelatex`
@echo "Done."
@rm *.md
@rm *.md revision.tex

markdown:
@echo "Copy markdown files..."
Expand All @@ -23,6 +26,6 @@ markdown:
@python3 aggregator.py

clean:
rm -rf *.md *.pdf
rm -rf revision.tex *.md *.pdf

.PHONY: markdown pdf clean
5 changes: 0 additions & 5 deletions pdf/en-us/modern-cpp-tutorial.md

This file was deleted.

Binary file modified pdf/en-us/modern-cpp-tutorial.pdf
Binary file not shown.
109 changes: 0 additions & 109 deletions pdf/en-us/toc.md

This file was deleted.

0 comments on commit 589f417

Please sign in to comment.