mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-16 20:27:08 +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
|
||||
|
||||
> This book adapting to C++17 and translating to English
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [**Preface**](./00-preface.md)
|
||||
|
||||
@@ -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..."
|
||||
@@ -23,6 +26,6 @@ markdown:
|
||||
@python3 aggregator.py
|
||||
|
||||
clean:
|
||||
rm -rf *.md *.pdf
|
||||
rm -rf revision.tex *.md *.pdf
|
||||
|
||||
.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
|
||||
endobj
|
||||
16 0 obj
|
||||
<</Filter/FlateDecode/Length 632>>
|
||||
<</Filter/FlateDecode/Length 608>>
|
||||
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>¡ | ||||