• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

mossr/julia-tufte-beamer: Tufte-style beamer template with Julia integration

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

mossr/julia-tufte-beamer

开源软件地址:

https://github.com/mossr/julia-tufte-beamer

开源编程语言:

TeX 87.2%

开源软件介绍:

Tufte-style Beamer Template with Julia Integration

A beamer template using Tufte-LaTeX style with Julia code integration similar to Tufte Algorithms Book Template. The template allows for the direct compilation of a presentation-ready PDF, including support for figures, Julia algorithm blocks, and Julia console blocks.

Forked from simple-tufte-beamer and framework modified from tufte_algorithms_book.

Example

See example slides: main.pdf












Installation

Install Julia.

Install LaTeX via texlive. We recommend this repo.

  • Install the lm-math package to get the LatinModernMath font.

Clone the repository to a location of your choosing:

git clone https://github.com/mossr/julia-tufte-beamer.git

Initialize and update the submodule (juliaplots.sty):

git submodule init
git submodule update

Install lexer and style (may need pip3 instead):

pip install --upgrade git+https://github.com/sisl/pygments-julia#egg=pygments_julia
pip install --upgrade git+https://github.com/sisl/pygments-style-algforopt#egg=pygments_style_algforopt

Install the required Julia packages.

julia jl/install.jl

Install pdf2svg, which is used by PGFPlots (we assume Ubuntu - other operating systems may install pdf2svg differently):

sudo apt-get install pdf2svg

For pdf2svg on Windows (place dist-* directory on PATH): https://github.com/jalios/pdf2svg-windows

Install pgfplots.

We require pythontex, which you can get from texlive or 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.)

Test

Running the following pulls all the code and then runs all tests in juliatest blocks. See runtests.jl for details.

julia jl/runtests.jl

Compilation

Install latexmk from: https://mg.readthedocs.io/latexmk.html#installation

  • latexmk will compile everything (see output/ for PDF).
    • latexmk will intelligently compile only the necessary bits.
  • latexmk -c will clean up generated files.
  • latexmk -C will clean up generated files (including .pdf).
  • latexmk tex/sandbox.tex will compile tex/sandbox.tex (meant for development, e.g., single files)

Directory structure

.
├── ...
├── jl                      # Julia framework script files
├── tex                     # LaTeX files (main and preamble files)
│   └── slides              # LaTeX files (specifically for slides)
└── output                  # Generated output file (.aux files, etc)



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap