Coder Social home page Coder Social logo

qu-slides's Introduction

qu-slides: LaTeX Beamer Class and Presentation Template for Queen's University

This template provides a simple and clean LaTeX Beamer class to approximately look like the visual identity standard for Queen’s University at Kingston, Ontario, Canada.

This LaTeX template is particularly useful for technical presentations involving maths and code snippets. Video is currently not supported.

Example Output

See the example PDF output included in this repository.

Dependencies

This template requires a number of packages, each loaded in the qu-slides.cls file. Most notably, the Queen's standard font is the free font Open Sans, which this template incorporates by using the opensans package.

Code and Syntax Highlighting

This template includes functionality for syntax highlighting of code snippets using the minted package. Overleaf has a nice introduction to minted.

Minted requires the installation of additional software, Pygments. Section 2.1 of the minted documentation describes how to install Pygments. If you use macOS, the easiest way is probably to just install Pygments using Homebrew.

When running LaTeX and using minted, you must invoke it with the -shell-escape flag so that it can access Pygments. For example, if you are using Visual Studio Code as an IDE with the LaTeX Workshop extension and compile your document using latexmk, then you can edit the settings.json file to include the flag, as shown in the example snippet below.

"latex-workshop.latex.tools":[
    {
        "name": "latexmk",
        "command": "latexmk",
        "args": [
            "-shell-escape",
            "-synctex=1",
            "-interaction=nonstopmode",
            "-file-line-error",
            "-pdf",
            "-outdir=%OUTDIR%",
            "%DOC%"
        ],
        "env": {}
    },

If you do not need this functionality, then you can simply comment out these lines shown below in the qu-slides.cls file and be sure to not use minted commands in your document.

% For code snippets in your slides
\RequirePackage{minted}
\setminted[python]{linenos=true}
\setminted[cpp]{linenos=true}
\renewcommand\theFancyVerbLine{\sffamily\scriptsize\arabic{FancyVerbLine}}

Contact the Author

Joshua Marshall, PhD, PEng
Department of Electrical and Computer Engineering
Queen's University
Kingston, ON K7L 3N6 Canada
+1 (613) 533-2921
[email protected]

License

The code associated with this class and template is subject to an MIT License.

qu-slides's People

Contributors

botprof 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.