Code Monkey home page Code Monkey logo

samples-rmarkdown-metropolis's Introduction

samples-rmarkdown-metropolis

Example for a Metropolis-themed RMarkdown-driven LaTeX Beamer presentation.

Note

If you are interested in this, you probably want to look at the binb package which implements Metropolis (and more) directly from RMarkdown.

About

NB: This dates mostly from 2016. For a more recent and more complete alternative, see binb.

For the last two or so years, I have been using mtheme (and/or a local variant I called 'm2') as well as the newer (renamed to metropolis) release metropolis for all my RMarkdown-based presentations as you can see from my presentations page.

And earlier last year I cleaned this up and wrote myself local Ubuntu packages which are here on Launchpad. I also have two GitHub repos for the underlying .deb package code:

  • the pkg-latex-metropolis package for the LaTeX part (which is also in TeXlive in an older version)
  • the pkg-fonts-fira for the underlying (free) font (and this sadly cannot build on launchpad as it needs a download step).

Example

An animated gif containing all pages of the very simple example included here follows:

As an aside, creating the gif is trivial, I used

convert -delay 250 -geometry 480x360 beamerPresentation.pdf beamerPresentation.gif

where convert is a component of imagemagick; you can probably rely on graphicsmagick too.

Status

This is a somewhat static example which may not get updated over time.

Note

If you are interested in this, you probably want to look at the binb package which implements Metropolis (and more) directly from RMarkdown.

Author

Dirk Eddelbuettel

License

The aggregation is provided under the GPL (version 2 or later).

samples-rmarkdown-metropolis's People

Contributors

eddelbuettel 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

Watchers

 avatar  avatar  avatar  avatar  avatar

samples-rmarkdown-metropolis's Issues

Changing the frame style

Hi,

First, I loved your adaptation of metropolis fo rmarkdown. Thanks!

This might be a dumb question, but how do I change the style of the frame in markdown? I want to reproduce the following code in rmarkdown

\begin{frame}[standout]
Thank you!
\end{frame}

Thank you!

2 column layout

It is not currently possible to have a two-column layout with evaluated code chunks in Rmd beamer (see https://support.rstudio.com/hc/en-us/community/posts/202717656-Can-we-have-columns-in-rmarkdown-beamer-presentations-). I have used the solution here to some success:

In your latex/beamer template preamble,

\def\begincols{\begin{columns}}
\def\endcols{\end{columns}}
\def\begincol{\begin{column}}
\def\endcol{\end{column}}

then:

## Slide

\begincols

\begincol

``{r }
plot(1)
``
\endcol

\begincol

``{r }
plot(2)
``
\endcol

\endcols

Would this be a welcome addition to header.tex?

How to add a logo only to the title slide of the beamer in Rmarkdown?

Hi,

Your templet helps me a lot, thanks!

While I know that I can add a logo to every slide by \logo{\includegraphics[width=.2\textwidth]{logo.png}}, I want to add a logo only to the top right of the title slide like the presentations in your website. How could I do that?

Thank you!

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.