https://github.com/hailiang-wang/latex-book-template
Book template in LaTex and Pandoc
https://github.com/hailiang-wang/latex-book-template
book-template latex markdown pandoc
Last synced: 3 months ago
JSON representation
Book template in LaTex and Pandoc
- Host: GitHub
- URL: https://github.com/hailiang-wang/latex-book-template
- Owner: hailiang-wang
- License: mit
- Created: 2019-02-02T01:48:16.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-02T01:51:25.000Z (over 6 years ago)
- Last Synced: 2025-01-07T11:11:29.905Z (5 months ago)
- Topics: book-template, latex, markdown, pandoc
- Language: TeX
- Homepage:
- Size: 3.73 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 著书模版
LaTex + Pandoc 著书模版
## 依赖
* Linux, Mac OSX
* texlive 2017
```
xelatex -v
XeTeX 3.14159265-2.6-0.99998 (TeX Live 2017)
```* Pandoc
```
pandoc -v
pandoc 1.19.2.1
Compiled with pandoc-types 1.17.0.4, texmath 0.9, skylighting 0.1.1.4
```## Docker
安装依赖的过程会花费很长时间,一种更加方便的方式是通过Docker将Markdown构建为PDF。
* 启动
```
./scripts/run.sh
```同时,通过这种方式也可以跨操作系统。
## 构建
在本地或docker容器中执行
```
./scripts/run.sh
```构建完成后,得到最新的PDF文件:`dist/main.pdf`。
## 书写
* 书名、作者:
更新`src/main.tex`。
* 引用
更新`src/bibliography.bib`。
* 章节
在`src`中添加`chN.md`,更新该章节到`src/body.tex`中。
更多书写示例参考 [*src/ch1.md*](./src/ch1.md)
# License (MIT)
Copyright 2019 Hai Liang Wang
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.OF