GithubHelp home page GithubHelp logo

dandelight / beamer-material-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from peterpf/beamer-material-theme

0.0 0.0 0.0 1.28 MB

LaTeX Beamer Material Theme

License: GNU General Public License v3.0

Shell 0.98% Lua 39.99% TeX 55.84% Dockerfile 3.19%

beamer-material-theme's Introduction

LaTeX Beamer Material Theme

Setup

LuaTex and the roboto font are required to compile the presentation.

As an alternative, use the included docker container to produce a pdf file. Execute following commands in the directory of the cloned repository:

docker build . -t latex-beamer
docker run -v $PWD:/data/ latex-beamer example.tex

Replace example.tex with the main tex file.

Include as git submodule

Go to your working directory and clone the beamer-material-theme repository into the folder theme with

git submodule add [email protected]:peterpf/beamer-material-theme.git theme

Then do following:

  • Open src/beamerthemematerial.sty and adapt the paths for the styles:

    \usepackage{theme/src/material_colors}
    \usepackage{theme/src/beamerinnerthemematerial}
    \usepackage{theme/src/beamerouterthemematerial}
    \usepackage{theme/src/beamercolorthemematerial}
    
    \directlua {
      local settings = require("theme/src/settings")
      local Utils = require("theme/src/Utils")
    }
  • Adapt the references to other files in

  • Copy example.tex from src folder to theme folder:

    .
    ├── theme
    |   ├── src/
    |   ├── example.tex
    ├── example.tex
    ├── ...
  • Open the copied file and look for the line that includes the theme:

    \usepackage{src/beamerthemematerial} % replace this
    \usepackage{theme/src/beamerthemematerial} % with this
  • Use the copied file as a starting point for your presentation.

  • Execute the docker command mentioned above in the project root folder.

Theme Configuration

Colors can be adapted via the config.lua. Undefined complementary colors will be calculated based on their respective main colors. Predefined themes are already there, choose the one you want by changing the return value of config.lua, or create your own:

return lightBlue
-- or
return darkPurple

Important Notes

  • Packages that should not be included
    • graphicx or graphics as they are already included in beamer
    • transparency, svg as it messes with the tikz package's fill opacity (shadows won't be displayed correctly)

Shoutouts

beamer-material-theme's People

Contributors

peterpf avatar

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.