Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mossr/julia-tufte-beamer
Tufte-style beamer template with Julia integration
https://github.com/mossr/julia-tufte-beamer
Last synced: about 1 month ago
JSON representation
Tufte-style beamer template with Julia integration
- Host: GitHub
- URL: https://github.com/mossr/julia-tufte-beamer
- Owner: mossr
- License: gpl-3.0
- Created: 2020-08-09T10:47:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-16T06:12:10.000Z (12 months ago)
- Last Synced: 2023-11-16T08:43:25.748Z (12 months ago)
- Language: TeX
- Size: 9.86 MB
- Stars: 112
- Watchers: 8
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tufte-style Beamer Template with Julia Integration
A beamer template using Tufte-LaTeX style with Julia code integration similar to [Tufte Algorithms Book Template](https://github.com/sisl/tufte_algorithms_book). 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](https://github.com/ViniciusBRodrigues/simple-tufte-beamer) and framework modified from [tufte_algorithms_book](https://github.com/sisl/tufte_algorithms_book).
### Example
See example slides: [`main.pdf`](https://github.com/mossr/julia-tufte-beamer/blob/master/main.pdf)---
---
---
---
---
---
---
---
---
---
---
# Installation
Install [Julia](https://julialang.org/downloads/).Install LaTeX via texlive. We recommend [this repo](https://github.com/scottkosty/install-tl-ubuntu).
- 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](https://github.com/sisl/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-windowsInstall [pgfplots](https://ctan.org/pkg/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)