• Stars
    star
    120
  • Rank 295,983 (Top 6 %)
  • Language
    TeX
  • License
    GNU General Publi...
  • Created over 4 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tufte-style beamer template with Julia integration

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)

More Repositories

1

BeautifulAlgorithms.jl

Concise and beautiful algorithms written in Julia
Julia
1,320
star
2

Tetris.jl

One-line Tetris in Julia
Julia
54
star
3

julia-mono-listings

LaTeX listings style for Julia and Unicode support for the JuliaMono font
TeX
52
star
4

machine_learning_book

Stanford's CS229 Machine Learning lecture notes compiled into a Tufte-style textbook
TeX
49
star
5

Donut.jl

Andy Sloane's rotating donut in Julia
Julia
31
star
6

PacMan.jl

PacMan in the Julia REPL
Julia
20
star
7

TeX.jl

@tex macro for generating LaTeX PDFs from Julia code with descriptions
TeX
15
star
8

REPLMaze.jl

A maze game in the Julia REPL
Julia
13
star
9

TikzNeuralNetworks.jl

Visualize neural networks using TikZ in Julia
Julia
12
star
10

CrossEntropyVariants.jl

Cross-entropy method variants for optimization in Julia
Julia
12
star
11

PlutoNotebooks

Random Pluto notebooks in Julia
HTML
6
star
12

Snake.jl

The game of snake in the Julia REPL
Julia
5
star
13

mscs-stanford-thesis

(Stanford MSCS Thesis) Algorithms for efficient validation of black-box systems
TeX
5
star
14

GoogleScholar.jl

A light-weight Julia package to read and plot Google Scholar citation information
Julia
4
star
15

PropositionalLogic.jl

Simple propositional logic in Julia
Julia
3
star
16

GaussianDiscriminantAnalysis.jl

Gaussian discriminant analysis in Julia
Julia
2
star
17

MBTA

Mapped MBTA in D3.js
JavaScript
1
star
18

TrashMDP.jl

Automated trash collection using Markov decision processes
Julia
1
star
19

AddPackage.jl

Julia macro to add missing packages when calling `using Package`
Julia
1
star
20

CARS-tutorial

Tutorial on decision making under uncertainty (MDPs and POMDPs)
HTML
1
star
21

TestingDeps.jl

Testing unregistered dependencies in Julia
Julia
1
star
22

Optionals.jl

Light-weight Optional{T} type in Julia
Julia
1
star
23

SI.jl

Julia SI unit types for validated unit conversions.
Julia
1
star