mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
update: prepare english chapters
This commit is contained in:
0
book/en-us/01-intro.md
Normal file
0
book/en-us/01-intro.md
Normal file
0
book/en-us/02-usability.md
Normal file
0
book/en-us/02-usability.md
Normal file
0
book/en-us/03-runtime.md
Normal file
0
book/en-us/03-runtime.md
Normal file
0
book/en-us/04-containers.md
Normal file
0
book/en-us/04-containers.md
Normal file
0
book/en-us/05-pointers.md
Normal file
0
book/en-us/05-pointers.md
Normal file
0
book/en-us/06-regex.md
Normal file
0
book/en-us/06-regex.md
Normal file
0
book/en-us/07-thread.md
Normal file
0
book/en-us/07-thread.md
Normal file
0
book/en-us/08-filesystem.md
Normal file
0
book/en-us/08-filesystem.md
Normal file
0
book/en-us/09-others.md
Normal file
0
book/en-us/09-others.md
Normal file
0
book/en-us/10-cpp20.md
Normal file
0
book/en-us/10-cpp20.md
Normal file
0
book/en-us/appendix1.md
Normal file
0
book/en-us/appendix1.md
Normal file
0
book/en-us/appendix2.md
Normal file
0
book/en-us/appendix2.md
Normal file
@@ -1,7 +1,5 @@
|
|||||||
# C++ 11/14/17 On The Fly
|
# C++ 11/14/17 On The Fly
|
||||||
|
|
||||||
> This book adapting to C++17 and translating to English
|
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
- [**Preface**](./00-preface.md)
|
- [**Preface**](./00-preface.md)
|
||||||
|
|||||||
@@ -1,20 +1,23 @@
|
|||||||
title = 'C++11/14/17 On the Fly'
|
title = 'C++11/14/17 On the Fly'
|
||||||
filename = 'modern-cpp-tutorial'
|
filename = 'modern-cpp-tutorial'
|
||||||
outputname='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
|
pdf: markdown
|
||||||
@echo "Compiling PDF file..."
|
@echo "Compiling PDF file..."
|
||||||
@pandoc -s $(filename).md -o $(outputname).pdf \
|
@pandoc -f markdown+smart -s $(filename).md -o $(filename).pdf \
|
||||||
--title-prefix $(title) \
|
--title-prefix $(title) \
|
||||||
--listings -H meta/cpp-listings.tex \
|
--listings -H meta/cpp-listings.tex \
|
||||||
--template=meta/template.tex \
|
--template=meta/template.tex \
|
||||||
--normalize \
|
--pdf-engine=`which xelatex`
|
||||||
--smart \
|
|
||||||
--latex-engine=`which xelatex`
|
|
||||||
@echo "Done."
|
@echo "Done."
|
||||||
@rm *.md
|
@rm *.md revision.tex
|
||||||
|
|
||||||
markdown:
|
markdown:
|
||||||
@echo "Copy markdown files..."
|
@echo "Copy markdown files..."
|
||||||
@@ -23,6 +26,6 @@ markdown:
|
|||||||
@python3 aggregator.py
|
@python3 aggregator.py
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf *.md *.pdf
|
rm -rf revision.tex *.md *.pdf
|
||||||
|
|
||||||
.PHONY: markdown pdf clean
|
.PHONY: markdown pdf clean
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
title: "C++11/14/17 On the Fly"
|
|
||||||
author: Changkun Ou <hi@changkun.us>
|
|
||||||
copyright: cc-by-nc-nd 4.0
|
|
||||||
---
|
|
||||||
@@ -5518,12 +5518,13 @@ P
|
|||||||
endstream
|
endstream
|
||||||
endobj
|
endobj
|
||||||
16 0 obj
|
16 0 obj
|
||||||
<</Filter/FlateDecode/Length 632>>
|
<</Filter/FlateDecode/Length 608>>
|
||||||
stream
|
stream
|
||||||
xÚ}UËŽÛ0¼÷+ôÖJ$EJ@<40>CÑÚÛ¹=¬ãMO‹bûÿ‡’zØn6Y‚%K$g†¤ì^]tAŸèœpñ¹¸ó‹ûxr_¢‹â!&r§‹‹1ytS_"¸Óòó<…<>JÐs{cÙæLÇ …Ô"…h±UÒë¼è€ñÕ‚rÂÇ_§ïŠ4´/)<29>¡ | |||||||