2014-06-27 15:29:29 +02:00
|
|
|
HRI Beamer Theme
|
|
|
|
================
|
2013-05-18 06:09:37 +02:00
|
|
|
|
2014-07-08 14:43:48 +02:00
|
|
|
A nice looking Beamer theme, based on HSRM Beamer theme by
|
2014-07-08 14:47:46 +02:00
|
|
|
[Benjamin Weiss](mailto:Benjamin.Weiss@kreatiefton.de), with a
|
2014-07-08 14:43:48 +02:00
|
|
|
few improvements like full-screen pictures and videos. [Download the
|
2014-07-08 14:44:46 +02:00
|
|
|
pre-compiled demo presentation](https://github.com/severin-lemaignan/hri-beamer-theme/blob/master/presentation.pdf?raw=true).
|
2014-07-08 14:43:48 +02:00
|
|
|
|
2014-07-08 14:41:03 +02:00
|
|
|
![Title page](doc/ex1.jpg)
|
|
|
|
![TikZ figure](doc/ex3.jpg)
|
|
|
|
|
2014-07-08 14:43:48 +02:00
|
|
|
|
2014-07-08 14:54:40 +02:00
|
|
|
To compile, simply run `make`. This Beamer theme requires `lualatex` for
|
2021-04-19 09:19:06 +02:00
|
|
|
compilation (available in the [TeX Live distribution](https://www.tug.org/texlive/) for example).
|
2014-07-08 14:41:03 +02:00
|
|
|
|
|
|
|
It also looks nicer if the Flama font is installed in your system. Download it from here:
|
|
|
|
- [Flama Light](http://fontpark.net/en/font/flamalight)
|
|
|
|
- [Flama Book](http://fontpark.net/en/font/flamabook)
|
|
|
|
- [Flama Medium](http://fontpark.net/en/font/flamamedium)
|
|
|
|
|
|
|
|
Special commands in this theme
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
### Full-screen pictures
|
|
|
|
|
|
|
|
![Full page picture, with optional caption](doc/ex2.jpg)
|
|
|
|
|
|
|
|
```latex
|
2016-02-25 12:12:33 +01:00
|
|
|
\imageframe[color=...,caption=...,scale=...]{mypic.jpg}
|
2014-07-08 14:41:03 +02:00
|
|
|
```
|
|
|
|
|
2016-02-15 17:53:17 +01:00
|
|
|
Note that the picture's aspect ratio is respected.
|
|
|
|
|
2016-02-25 12:12:33 +01:00
|
|
|
- `color`: colour of the background. Defaults to `white`.
|
|
|
|
- `caption`: caption that will be displayed as an overlay on top of the picture
|
|
|
|
- `scale`: a scaling factor (useful to add a small margin around the picture for
|
|
|
|
instance). Defaults to 1.0.
|
2016-02-15 17:53:17 +01:00
|
|
|
|
2021-04-19 09:11:55 +02:00
|
|
|
**Due to the inner workings of TikZ, you may have to compile your presentation
|
2016-02-25 10:49:52 +01:00
|
|
|
twice to get the background image to appear!**
|
2016-02-15 17:53:17 +01:00
|
|
|
|
|
|
|
Alternatively, you can use this syntax to set a background image for any slide:
|
|
|
|
|
|
|
|
```latex
|
2016-02-25 12:12:33 +01:00
|
|
|
{\fullbackground[options]{mypic.jpg}
|
2016-02-15 17:53:17 +01:00
|
|
|
|
|
|
|
\begin{frame}
|
|
|
|
%...
|
|
|
|
\end{frame}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2016-02-25 12:12:33 +01:00
|
|
|
(the same options as for `imageframe` are available)
|
|
|
|
|
2016-02-15 17:53:17 +01:00
|
|
|
or the shortcut:
|
|
|
|
|
|
|
|
```latex
|
|
|
|
\bgframe[mypic.jpg]{
|
|
|
|
|
|
|
|
%...
|
|
|
|
|
|
|
|
}
|
|
|
|
```
|
2014-07-08 14:41:03 +02:00
|
|
|
|
|
|
|
### Videos
|
|
|
|
|
|
|
|
```latex
|
|
|
|
\video[aspect ratio]{width}{myvideo.webm}
|
|
|
|
```
|
|
|
|
|
2014-07-08 14:47:46 +02:00
|
|
|
This integrates a video in your presentation (attention: the video file
|
|
|
|
*itself* is not embedded in the PDF: you need to take it along with your PDF).
|
|
|
|
Clicking on it opens the default system video player for the given video format
|
|
|
|
(using `pdfpc`, you can also play the video directly inside your presentation,
|
|
|
|
cf below).
|
2014-07-08 14:41:03 +02:00
|
|
|
|
|
|
|
- `aspect ratio` is a real value equal to height/width, defaults to 16:9 (ie,
|
2014-10-07 10:15:58 +02:00
|
|
|
0.56).
|
2014-07-08 14:41:03 +02:00
|
|
|
- `width` is any valid Beamer length (like `0.7\textwidth` for instance)
|
|
|
|
|
|
|
|
A preview picture (typically, the first frame of the video) is used if a file
|
|
|
|
called `myvideo_thumb.jpg` is found. Assuming `avconv` is available on your
|
|
|
|
system, `make thumbs` will generate such a preview picture for you.
|
|
|
|
|
|
|
|
Note that, if played with [pdfpc](https://github.com/severin-lemaignan/pdfpc),
|
|
|
|
the video will be nicely overlaid on top of the slide, exactly covering the
|
|
|
|
video preview. `pdfpc` also support special extended URI for the video file,
|
|
|
|
allowing to define options like start and stop times (in seconds from the
|
|
|
|
beginning), looping, auto-start and mute (no audio). For instance:
|
|
|
|
|
|
|
|
```latex
|
|
|
|
\video[aspect ratio]{width}{myvideo.webm?start=20&stop=34&autostart&noaudio&loop}
|
|
|
|
```
|
|
|
|
|
|
|
|
`make thumbs` will also use the start time, if specified, to generate a
|
|
|
|
thumbnail of the video at the correct time.
|
|
|
|
|
|
|
|
|
|
|
|
You can also produce a full-screen video frame with:
|
|
|
|
|
|
|
|
```latex
|
|
|
|
\videoframe[aspect ratio]{myvideo.webm}
|
|
|
|
```
|
|
|
|
|
2014-10-07 10:15:58 +02:00
|
|
|
`aspect ratio` defaults to 4:3 (ie, fullscreen on Beamer). Set it to 0.56
|
|
|
|
(=9/16) for 16:9 for instance.
|
2014-07-08 14:41:03 +02:00
|
|
|
|
|
|
|
### Bibliography references
|
|
|
|
|
|
|
|
You can insert references to specific paper in the footer of a slide that way:
|
|
|
|
|
|
|
|
```latex
|
|
|
|
{
|
|
|
|
\paper{Superman, How Kripton changed my life, Springer 2014}
|
|
|
|
\begin{frame}
|
|
|
|
...
|
|
|
|
\end{frame}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2016-02-15 17:34:59 +01:00
|
|
|
### CreativeCommons License
|
|
|
|
|
|
|
|
Adding:
|
|
|
|
|
|
|
|
```latex
|
|
|
|
\licenseframe{<source url>}
|
|
|
|
```
|
|
|
|
|
|
|
|
creates a frame with a CreateCommons BY-SA license explanation and a link to
|
|
|
|
download the source.
|
|
|
|
|
2016-02-15 17:39:00 +01:00
|
|
|
### Source code
|
|
|
|
|
|
|
|
The nice [minted](https://www.ctan.org/tex-archive/macros/latex/contrib/minted)
|
|
|
|
package is provided (and pre-configured for C++, Python, `sh` and XML) so that
|
|
|
|
rendering beautiful syntax-highlighted code is a breeze:
|
|
|
|
|
|
|
|
```latex
|
|
|
|
\begin{pythoncode}
|
|
|
|
|
|
|
|
def print_hello():
|
|
|
|
print("Hello World!")
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
print_hello()
|
|
|
|
\end{pythoncode}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
Note that this requires `pygmentize` to be installed on your machine (`sudo
|
|
|
|
apt-get install python-pygments`)
|
2014-07-08 14:41:03 +02:00
|
|
|
|
2016-05-10 11:38:44 +02:00
|
|
|
### Badges
|
|
|
|
|
|
|
|
We can use the `\badge` command inside a frame to display a small (2cmx2cm)
|
|
|
|
picture in the top right corner of the slide:
|
|
|
|
|
|
|
|
```latex
|
|
|
|
\badge{<image>}
|
|
|
|
```
|
|
|
|
|
2014-07-08 14:41:03 +02:00
|
|
|
Reference and License
|
|
|
|
---------------------
|
|
|
|
|
2014-06-27 15:29:29 +02:00
|
|
|
Based on HSRM Beamer theme by [Benjamin.Weiss@kreatiefton.de](mailto:Benjamin.Weiss@kreatiefton.de)
|
2013-05-18 06:09:37 +02:00
|
|
|
|
2016-02-15 17:34:59 +01:00
|
|
|
Made available under the [Creative Commons BY-SA](http://creativecommons.org/licenses/by-sa/4.0/) license.
|
2013-05-18 06:09:37 +02:00
|
|
|
|