Commit 3dd4cbca authored by Bernhard Heinloth's avatar Bernhard Heinloth
Browse files

Markdown example

parent 097ccc43
Pipeline #30573 passed with stage
in 26 minutes and 27 seconds
- apt-get update -qq && apt-get install -y -qq git
- apt-get update -qq && apt-get install -y -qq git pandoc
- git submodule sync --recursive
- git submodule update --init --recursive --remote
......@@ -11,6 +11,8 @@ buildPDF:
- demo.pdf
- demo.pdfpc
- example.pdf
- example.pdfpc
# Testweise mit den gängen Distributionen bauen um Inkompatibilitäten schnell
......@@ -23,7 +25,7 @@ buildPDF:
- ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime
- export DEBIAN_FRONTEND=noninteractive
- apt-get update -qq && apt-get install -y -qq make git texlive-full latexmk
- apt-get update -qq && apt-get install -y -qq make git texlive-full latexmk pandoc
- git submodule sync --recursive
- git submodule update --init --recursive --remote
......@@ -31,7 +33,10 @@ buildPDF:
- make demo
- thesis.pdf
- demo.pdf
- demo.pdfpc
- example.pdf
- example.pdfpc
# Latest Ubuntu LTS Release
SCREENSHOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))/.screenshots
TARGET := demo.pdf
TARGET_LATEX := demo.pdf
TARGET_MARKDOWN := example.pdf
all: demo
......@@ -14,16 +15,16 @@ all: demo
demo: | clean $(TARGET)
test -d "$(SCREENSHOT_DIR)" || mkdir "$(SCREENSHOT_DIR)"
screenshots: $(TARGET)
pdftoppm -scale-to 500 -f 1 -l 5 -png $(TARGET) "$(SCREENSHOT_DIR)/$@"
screenshots: $(TARGET_LATEX)
pdftoppm -scale-to 500 -f 1 -l 5 -png $(TARGET_LATEX) "$(SCREENSHOT_DIR)/$@"
rm -f "$(TARGET)"
mrproper:: clean
rm -f "$(SCREENSHOT_DIR)"/demo-*.png
rmdir --ignore-fail-on-non-empty "$(SCREENSHOT_DIR)" || true
......@@ -16,13 +16,22 @@ or -- for having the latest theme features -- by using
cd i4neo-demo
git submodule update --init --recursive --remote
To build the demo, make sure you have a TeX distribution (like *TeX Live*)
installed and simply run
To build the [LaTeX demo](demo.tex), make sure you have a TeX distribution
(like [TeX Live]( and the util
[Latexmk]( installed.
For Debian based distributions this can be achieved by executing
sudo apt-get install make texlive-full latexmk
Afterwards simply run
make demo.pdf
to create the PDF using *XeLaTeX* (predefined by the theme).
You can use different generators like *pdfLaTeX* (which requires FiraSans.sty)
make demo-pdflatex
......@@ -37,3 +46,9 @@ or explicitly the default *XeLaTeX* with
Although there are a few minor differences between the three generators above
regarding the typesetting, these should not be visible to the naked eye.
Having Pandoc installed you can build the [Markdown example]( by
make example.pdf
# Document settings
title: 'i4**neo** with Markdown'
subtitle: Proposal for a modern Beamer theme generated out of a simple Markup language
date: \today
author: Wolfgang Händler
institute: 'Friedrich-Alexander-Universität Erlangen-Nürnberg'
# Some logos on the title page?
- theme/images/logo-i4-de.pdf
- theme/images/logo-fau-tf-de.pdf
# Internal or external title background image?
titletype: intern
# Show TOC?
toc: true
# Overall font size
fontsize: 10pt
# Additional (LaTeX) commands
header-includes: \usepackage{pgfplots} \neoset{notes=show}
# Bibliography
bibliography: demo
biblio-title: References
biblio-style: abbrv
# Introduction
The **neo** theme is a LaTeX Beamer theme with minimal visual noise based on
the [[Metropolis]{.smallcaps} Beamer Theme](
by Matthias Vogelgesang and inspired by the
[[hsrm]{.smallcaps} Beamer Theme](
by Benjamin Weiss.
But it is not necessary to write **TeX** -- you can use **Markdown** instead!
## Sections
Sections group slides of the same topic with
# Elements
for which **neo** provides a nice progress indicator ...
## Frames
Start a new frame with
# Frametitle
For title-less frames just remove the name
Setting attributes like *standout* is still possible by appending them
# {.standout}
## Document settings
Metadata and configuration is stored in the beginning of the document in [YAML]( Format
title: Good Omens
date: 1 May 1990
- Terry Pratchett
- Neil Gaiman
toc: true
fontsize: 10pt
(although it is not required to have an header)
## Presentation notes
The built-in support for notes is available as well
\pnote{Important presentation note}
**neo** can not only create pdfpc files but also full note
pages, either located on the side for presentation or embedded for
\pnote{Hi there!}
\pnote{We have some text in \textbf{here}!}
\pnote{Try to use \texttt{notes=preview-right} with \texttt{pdfpc --notes=right ./out/presentation.pdf}}
# Elements
## Typography
The theme provides sensible defaults to
*emphasize* text, \alert{accent} parts
or show **bold** results.
The theme provides sensible defaults to *emphasize* text,
\alert{accent} parts or show **bold** results.
## Font feature test
- Regular
- *Italic*
- [SmallCaps]{.smallcaps}
- **Bold**
- ***Bold Italic***
- **[Bold SmallCaps]{.smallcaps}**
- `Monospace`
- *`Monospace Italic`*
- **`Monospace Bold`**
- ***`Monospace Bold Italic`***
## Predefined Colors
Dark Normal Light
-------------------------- ---------------------------------- ---------------------------
\nDarkRed{nDarkRed} \nRed{nRed} \nLightRed{nLightRed}
\nDarkGreen{nDarkGreen} \nGreen{nGreen} \nLightGreen{nLightGreen}
\nDarkBlue{nDarkBlue} \nBlue{nBlue} \nLightBlue{nLightBlue}
\nDarkCyan{nDarkCyan} \nCyan{nCyan} \nLightCyan{nLightCyan}
\nDarkYellow{nDarkYellow} \nYellow{nYellow} \nLightYellow{nLightYellow}
\nDarkGrey{nDarkGrey} \nGrey{nGrey} \nLightGrey{nLightGrey}
-------------------------- ---------------------------------- ---------------------------
## Lists (and Columns)
::: {.columns}
:::: {.column width=0.33}
- Milk
- Eggs
- Potatos
:::: {.column width=0.33}
1. First,
2. Second and
3. Last.
:::: {.column width=0.33}
: Meeh.
: Yeeeha.
## Animation
- \alert<4>{This is\only<4>{ really} important} \pause
- Now this \pause
- And now this \pause
## Tables
City Population
------------- ------------
Mexico City 20,116,842
Shanghai 19,210,000
Peking 15,796,450
Istanbul 14,160,467
: Largest cities in the world (source: Wikipedia)
## Code
``` {.c language="C"}
#include <stdio.h>
int main(void) {
printf("Hello World!");
## Math
$$e = \lim_{n\to \infty} \left(1 + \frac{1}{n}\right)^n$$
## Line Plots
\addplot {sin(deg(x))};
\addplot+[samples=100] {sin(deg(2*x))};
\caption{Embedded TikZ Image}
## Quotes
> Veni, Vidi, Vici
## Images
![Screenshot from titlepage](.screenshots/demo-01.png){width=50%}
## References
Some references to showcase [@knuth92; @ConcreteMath; @Simpson; @Er01; @greenwade93]
References can also be added in place as footnote[^1]
[^1]: Just use a normal footnote which contains lots and lots of text
# Conclusion
## Summary
Get the source of this theme from
The theme *itself* is licensed under a [Creative Commons
Attribution-ShareAlike 4.0 International
## {.standout}
Subproject commit 52ec640c67c596a82a11cdb6ddc5798ca2440e30
Subproject commit 85a0d339ec9be4640e8e0d7258aaa08251a8da15
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment