sisl/tufte_algorithms_book
关于
用于编写与《Algorithms for Optimization》风格相同的教材的模板
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Tufte Algorithms Book Template
This book template provides a starting point upon which authors may freely build to generate their own textbook entirely in LaTeX. We used this setup for Algorithms for Optimization, and have continued to refine it for a new textbook on decision making under uncertainty. The template allows for the direct compilation of a print-ready PDF, including support for figures, examples, and exercises.
We do all of our development in Ubuntu.
Install Julia.
Install LaTeX via texlive. We recommend this repo.
Clone the repository to a location of your choosing:
git clone https://github.com/sisl/tufte_algorithms_book.git
Initialize and update the submodules:
git submodule init
git submodule update
Compile the style:
cd style
sudo python setup.py install
cd ..
Compile the lexer:
cd lexer
sudo python setup.py install
cd ..
Install the required Julia packages (listed in the Project.toml). You can install them manually, or simply instantiate the project:
julia --project -e 'using Pkg; Pkg.instantiate()'
Install pdf2svg, which is used by PGFPlots (we assume Ubuntu - other operating systems may install pdf2svg differently):
sudo apt-get install pdf2svg
Install pgfplots.
We require pythontex 0.18. You will probably have to update your version on texlive on miktex. Alternatively, you can download the latest version of pythontex from https://github.com/gpoore/pythontex.
(Note that on arch-based systems, one should use tllocalmgr instead.)
(If you see a pygments-related import error you might want to check out https://github.com/sisl/tufte_algorithms_book/issues/30 and try downgrading to Pygments 2.6.1)
Test
Running make test pulls all the code and then runs all tests in juliatest blocks. See runtests.jl for details.
Compilation
make compilecompiles the whole bookmake compile CHAPTER='introduction chapter2\/introduction'will comment out everyincludeorinputstatement, except forchapter/introductionandchapter/chapter2/introductionwherechaptercan also beappendix. Requiresvimto be installed.make cleanremoves all generated files exceptbook.pdf
If you host your project under Gitlab, .gitlab-ci.yml is a CI/CD template to start with.
探索相关项目
加载中…