update: build english pdf

This commit is contained in:
Changkun Ou
2019-07-09 14:06:11 +02:00
parent 14a24de242
commit 7c88f422ab
17 changed files with 5884 additions and 5360 deletions

View File

@@ -5,7 +5,7 @@ import os
chapters = ['00-preface.md', '01-intro.md', '02-usability.md', '03-runtime.md', '04-containers.md', '05-pointers.md', '06-regex.md', '07-thread.md', '08-filesystem.md', '09-others.md', '10-cpp20.md', 'appendix1.md', 'appendix2.md']
ignores = ['TOC', 'Return to TOC', 'License', 'license']
ignores = ['TOC', 'Table of Content', 'License', 'license']
with open('modern-cpp-tutorial.md', 'w') as outfile:

View File

@@ -15,11 +15,7 @@
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\linespread{1.2}\selectfont % 行距
%\XeTeXlinebreaklocale "zh" % 针对中文自动换行
%\XeTeXlinebreakskip = 0pt plus 1pt % 字与字之间加入 0pt 至 1pt 的间距,确保左右对齐
%\parindent 0em % 段落缩进
%\setlength{\parskip}{20pt} % 段落间距
\linespread{1.2}\selectfont
\ifxetex
\usepackage{xltxtra,xunicode}
\fi
@@ -140,22 +136,23 @@ $endif$
\author{$for(author)$$author$$sep$ \and $endfor$}
\date{$date$}
%%%% 段落首行缩进两个字 %%%%
\makeatletter
\let\@afterindentfalse\@afterindenttrue
\@afterindenttrue
\makeatother
\setlength{\parindent}{2em} %中文缩进两个汉字位
\setlength{\parindent}{2em}
%%%% 下面的命令设置行间距与段落间距 %%%%
\linespread{1.4}
\setlength{\parskip}{1ex}
\setlength{\parskip}{0.5\baselineskip}
\input{revision}
% fix build, see https://github.com/laboon/ebook/issues/139#issuecomment-408696480
\newcommand{\passthrough}[1]{\lstset{mathescape=false}#1\lstset{mathescape=true}}
\begin{document}
\newcommand{\tightlist}{%
\newcommand{\tightlist}{
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\thispagestyle{plain}

File diff suppressed because one or more lines are too long

Binary file not shown.