I use beamer for making slide presentations, a scripted system based on the latex markup language. Overall, I really like it. But a persistent problem for me has been getting a pretty title page for my talks. Recently I managed to solve this.
Previously I have either used the default beamer settings, which give something very plain, like this:
Or I edited an image in Photoshop, exported it, then loaded it into my talk as a background. This was annoying for several reasons, but most of all the hassle of having to fire up Photoshop every time I wanted to make a new title page, or change my title.
I have now discovered how to make a nice title page with - a pretty image as backgorund - a semi-transparent text with title and author details - clickable links to my twitter account, email address and website, using icons from FontAwesome.
Set background image
First you need to set the background image, over-riding the default beamer background, and dropping the beamer title and navigation symbols.
1 2 3 4 5
Overlay a text box
This seems like it should be relatively simple, but my first search only uncovered large slabs of code. And my plea for help on twitter did not get any response.
A bit more searching yielded some answers.
- This talk by Vesa Linja-aho outlines several options for making framed text boxes. This alerted me to the framed and mdframed packages.
- Here’s a solution using tikz, although was a bit more complicated than I would like.
- You can also customise the block environment, as explained here and here , including with a semi-transparent or transparent background.
In the end, my preferred option was to use the mdframed package, as the code is relatively concise and the package comes pre-packaged with my latex installation. The user guide for mdframed is quite good, but did not explain how to make the box transparent. That trick is achieved using the tikz settings, as explained here on stackexchange.
The eventual code is quite simple. Of course you need to include the mdframed package:
1 2 3 4 5 6 7
or, if you prefer, you can define a new md environment
1 2 3
and call it
1 2 3
The above example uses the tikz options for formatting, which enables the transparent background, but if you want a filled background, you can also use the formatting options in mdframed:
1 2 3 4 5 6 7
Beamer has a built-in command for creating title pages. If you have defined your title, author, data and/or institution, you can use these by calling:
1 2 3
But that’s pretty ugly. Alternatively you can
- access the elements used by
\maketitledirectly, using the commands
- write the text yourself
Linking to my twitter account, email and website
In addition to a text box, I also want handles to my twitter, web and email accounts on the title page. As Hilary Mason, chief research scientist at bitly, explains it is helpful to include your twitter handle so that
- People can post you questions they didn’t get to ask during the talk
- Everyone knows you’ll be watching what they say about your talk!
It turns out that it is incredibly easy to make a web link in latex :
- FontAwsome must be be installed in the system fontbook
- You need to include the fontspec package, and use xelatek to compile your talk.
A cheatsheet of symbols available here
Tweaking the location
Finally, you can move the text boxes up and down by adding some `vspace’
Thanks to Rich FitzJohn for valuable discussions, showing me how to generate make files, and reassuring me that there was no easy way to overlay text boxes (that he knew of). Also, thanks to all the coders who posted at links listed in this page, including of course developers of Latex and Beamer, which despite their troublesome nature, still remain best option (IMO) for making presentations.