Commits

Annette von Stockhausen  committed e8e3ba9

Erste Version

  • Participants

Comments (0)

Files changed (6)

+# Vorlage für impress.js-Präsentation
+- impress.txt Beispiel-Präsentation
+- style.css CSS-Stylesheet
+- impress-template.html Template mit Titelfolie aus Header-Angaben
+- images-Ordner mit Uni-Logo
+- make.sh Make-File für impress.js-Präsentation, LaTeX-Beamer-Präsentation und LaTeX-Handout

File images/fau-logo-philtheo.png

Added
New image

File impress-template.html

+<!doctype html>
+<html lang="de">
+<head>
+    <meta charset="utf-8" />
+    <meta name="viewport" content="width=1024" />
+    <meta name="apple-mobile-web-app-capable" content="yes" />
+	<meta name="author" content="$author$">
+    <title>$title$</title>
+    <link href="style.css" rel="stylesheet" />
+</head>
+<body class="impress-not-supported">
+<div class="fallback-message">
+   impress.js is not supported by your browser, sorry.
+</div>
+
+<div id="impress">
+<section id="titel" class="level1 step" data-x="0" data-y="0" data-scale="2">
+<h1>$title$</h1>
+<p>$author$</p>
+<p>$date$</p>
+</section>	
+$body$
+</div>
+
+<script src="$impress-url$/js/impress.js"></script>
+<script>impress().init();</script>
+</body>
+</html>
+% Titel
+% Autor
+% Datum
+
+
+# Erste Folie {.step data-x=-2000 data-y=0 data-scale=1}
+Hier ist ein wenig Text
+
+# Worum geht es? {.step data-x=0 data-y=2000 data-scale=3}
+
+Ein paar Punkte:
+
+* Erster Punkt
+* Zweiter Punkt
+    * ein Unterpunkt
+    * noch einer
+* Dritter Punkt
+
+# Noch eine Folie {.step data-x=2000 data-y=0 data-z=1000 data-scale=0.5}
+
+Weiterer Text
+
+# Noch eine {.step data-x=0 data-y=-2000}
+
+Noch mehr Text
+
+# Und noch eine... {.step data-x=2000 data-y=-2000}
+
+Immer noch Text
+
+
+# Und noch eine {.step data-x=4000 data-y=-2000}
+
+Weiterer Text
+
+# Letzte Folie {.step data-x=6000 data-y=-2000}
+
+Das war's
+
+# {#overview .step data-scale=10}
+pandoc --toc --template=impress-template.html -V impress-url=/Users/stockhausen/code/impress.js -s -t html5 -f markdown --section-divs -o praesentation.html impress.txt
+pandoc -V theme:fau-4-3 -s -t beamer -f markdown -o praesentation.pdf impress.txt
+pandoc -N --template=default.latex --variable documentclass=scrartcl --variable geometry:margin=1.5cm --variable mainfont="Minion Pro" --variable sansfont="Myriad Pro" --variable monofont="Menlo" --variable papersize=a4 --variable fontsize=10pt --variable mainlang="german" --latex-engine=xelatex -f markdown -o handout.pdf impress.txt
+/* adapted from https://github.com/egonSchiele/mdpress/tree/master/lib/impress_css */
+
+html {
+	overflow: hidden;
+}
+
+body {
+	font-family: 'Myriad Pro', sans-serif;
+	line-height: .8;
+	font-size: 45px;
+}
+
+body {
+	min-height: 740px;
+	background: url(images/fau-logo-philtheo.png) no-repeat 98% 1%;
+	background-color: #efefef; 
+	pointer-events: none;	/* Fix Body Click */ 
+}
+
+.step {
+	width: 1060px;
+	padding: 40px 0;
+	-webkit-box-sizing: border-box;
+	-moz-box-sizing: border-box;
+	-ms-box-sizing: border-box;
+	-o-box-sizing: border-box;
+	box-sizing: border-box;
+	-webkit-transition: opacity 1s;
+	-moz-transition: opacity 1s;
+	-ms-transition: opacity 1s;
+	-o-transition: opacity 1s;
+	transition: opacity 1s;
+	background-color: transparent;
+}
+
+.impress-enabled .step {
+	margin: 0;
+	opacity: 0.3;
+	-webkit-transition: opacity 1s;
+	-moz-transition: opacity 1s;
+	-ms-transition: opacity 1s;
+	-o-transition: opacity 1s;
+	transition: opacity 1s;
+}
+
+.step:not(.active) {
+	opacity: 0.0;
+}
+
+.impress-enabled .step.active {
+	opacity: 1
+}
+
+strong {
+	font-weight: 800;
+	font-weight: bold
+}
+
+em {
+	font-style: italic;
+}
+
+h1, h2 {
+	font-weight: normal;
+	color: #003366;
+}
+
+h1 {
+	font-size: 120px;
+	margin: 20px 0 100px;
+	line-height: 130px;
+}
+
+h2 {
+	font-weight: 400;
+	letter-spacing: .1em;
+	text-transform: uppercase;
+	line-height: 72px;
+	margin: 40px 0;
+	font-size: 72px;
+}
+
+h3 {
+	font-weight: 300;
+	letter-spacing: .1em;
+	text-transform: uppercase;
+	line-height: 62px;
+	margin: 10px 0;
+	font-size: 62px;
+}
+
+.light {
+	font-weight: 300;
+	letter-spacing: .1em;
+}
+
+blockquote {
+	text-align: justify;
+	font-weight: 300;
+	font-style: italic;
+	line-height: 1.4;
+	margin: 20px 0;
+	padding: 10px 0;
+	border-top: 1px solid #aaa;
+	border-bottom: 1px solid #aaa;
+	width: 1060px;
+}
+table {
+	width:100%;
+}
+.present a {
+	pointer-events: auto;	/* Enable Click on link */
+}
+
+a {
+	pointer-events: none;	/* Fix Body Click */
+	color: inherit;
+	text-decoration: none;
+	text-shadow: -1px -1px 2px rgba(100,100,100,0.9);
+	-webkit-transition: 0.5s;
+	-moz-transition: 0.5s;
+	-ms-transition: 0.5s;
+	-o-transition: 0.5s;
+	transition: 0.5s;
+	font-weight: normal;
+  border-bottom: 1px dotted #0000ba;
+}
+
+a:hover {
+	color: #333;
+	text-shadow: -1px -1px 2px rgba(100,100,100,0.5);
+}
+
+p {
+	font-weight: 400;
+	line-height: 60px;
+	text-align: left;
+  margin-bottom: 20px;
+}
+
+ol {
+	margin: 20px 0 20px 70px;
+}
+
+ul {
+	margin: 20px 0 20px 50px;
+}
+
+ul ul {
+	margin-top: 0px;
+	margin-bottom: 0px;
+}
+ul ul li {
+  line-height: 50px;
+	margin-top: 0px;
+	margin-bottom: 0px;
+}
+
+li {
+	margin: 15px 0;
+	line-height: 60px;
+}
+
+td,th {
+	vertical-align: top;
+	line-height: 44px;
+}
+
+.fallback-message {
+	font-family: sans-serif;
+	line-height: 1.3;
+	width: 780px;
+	padding: 10px 10px 0;
+	margin: 20px auto;
+	border: 1px solid #E4C652;
+	border-radius: 10px;
+	background: #EEDC94;
+}
+
+.fallback-message p {
+	margin-bottom: 10px;
+}
+
+.impress-supported .fallback-message {
+	display: none;
+}
+
+span,strong {
+	-webkit-transition: 0.5s;
+	-moz-transition: 0.5s;
+	-ms-transition: 0.5s;
+	-o-transition: 0.5s;
+	transition: 0.5s;
+	display: inline-block;
+}
+
+.present .positioning {
+	-webkit-transform: translateY(-10px);
+	-moz-transform: translateY(-10px);
+	-ms-transform: translateY(-10px);
+	-o-transform: translateY(-10px);
+	transform: translateY(-10px);
+}
+
+.present .rotating {
+	-webkit-transform: rotate(-10deg);
+	-moz-transform: rotate(-10deg);
+	-ms-transform: rotate(-10deg);
+	-o-transform: rotate(-10deg);
+	transform: rotate(-10deg);
+	-webkit-transition-delay: 0.25s;
+	-moz-transition-delay: 0.25s;
+	-ms-transition-delay: 0.25s;
+	-o-transition-delay: 0.25s;
+	transition-delay: 0.25s;
+}
+
+.present .scaling {
+	-webkit-transform: scale(0.7);
+	-moz-transform: scale(0.7);
+	-ms-transform: scale(0.7);
+	-o-transform: scale(0.7);
+	transform: scale(0.7);
+	-webkit-transition-delay: 0.5s;
+	-moz-transition-delay: 0.5s;
+	-ms-transition-delay: 0.5s;
+	-o-transition-delay: 0.5s;
+	transition-delay: 0.5s;
+}
+
+/*
+    The last step is an overview.
+    There is no content in it, so we make sure it's not visible because we want
+    to be able to click on other steps.
+
+*/
+#overview { display: none }
+
+/*
+    We also make other steps visible and give them a pointer cursor using the
+    `impress-on-` class.
+*/
+.impress-on-overview .step {
+    opacity: 1;
+    cursor: pointer;
+}