Code Monkey home page Code Monkey logo

julia-tufte-beamer's Introduction

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)

julia-tufte-beamer's People

Contributors

mossr avatar viniciusbrodrigues avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

julia-tufte-beamer's Issues

Julia code looks weird

Out of curiosity, is the code typesetting in the example.pdf typical?

Screenshot 2021-04-06 at 09 22 54

It looks a bit odd to me - I'm not sure if it's how LATEX/Beamer normally looks though. For presentations, there are some very small and faint symbols...

REQUIRE missing

$ make install
julia --color=yes jl/install.jl
ERROR: LoadError: SystemError: opening file "REQUIRE": No such file or directory
Stacktrace:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.