Newer
Older
<!doctype html>
<html lang="en">
<meta name="description" content="A reveal.js theme slightly inspired by LaTeX/Beamer.">
<meta name="author" content="Erwan Bousse">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../reveal.js/css/reset.css">
<link rel="stylesheet" href="../reveal.js/css/reveal.css">
<!-- Here we setup the stereopticon theme-->
<link rel="stylesheet" href="../reveal.js/css/theme/stereopticon.css" id="theme">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="../reveal.js/lib/css/monokai.css">
<!-- Printing and PDF exports -->
<script>
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match(/print-pdf/gi) ? '../reveal.js/css/print/pdf.css' : '../reveal.js/css/print/paper.css';
document.getElementsByTagName('head')[0].appendChild(link);
</script>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section class="title">
<h1>stereopticon</h1>
<div class="subtitle">
A reveal.js theme slightly inspired by LaTeX/Beamer.
</div>
<div class="authors">
<div class="author">
<div class="name">
Erwan Bousse
</div>
<div class="institution">
University of Nantes − LS2N, France
</div>
</div>
<div class="author">
<div class="name">
An imaginary second author
</div>
<div class="institution">
From somewhere
</div>
</div>
</div>
</section>
<section>
<h2>Hello There!</h2>
<h3>Description</h3>
<p>
<em>stereopticon</em> is a <a href="https://github.com/hakimel/../reveal.js/">reveal.js</a> theme
slightly inspired by typical LaTeX/Beamer themes.
</p>
<h3>Some characteristics</h3>
<ul>
<li>Titles of regular slides are rendered at the top.</li>
<li>Left-aligned text.</li>
<li>Fancy <strong>fonts</strong>:</li>
<ul>
<li><em>Yanone Kaffeesatz</em> for titles,</li>
<li><em>Open Sans</em> for regular text.</li>
</ul>
<li>Many extra "helper" CSS classes (for columns, blocks, etc.). </li>
</ul>
</section>
<section>
<h2>Title Page</h2>
<p>The elements of a <strong>title page</strong> can be styled using the following provided CSS classes:</p>
<ul>
<li><code>title</code>, as a class for the reveal/js <code>section</code> (dark background etc.),</li>
<li><code>subtitle</code> for the subtitle element (header font, etc.),</li>
<li><code>authors</code> for the authors block, with inside:
<ul>
<li><code>author</code> to declare an author block,</li>
<li><code>name</code> to name an author inside an <code>author</code> block,</li>
<li><code>institution</code> to give the institution inside an <code>author</code> block,</li>
</ul>
</li>
<li><code>speaker</code> to tag an author's name as the speaker (dashed underline).</li>
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
</ul>
</section>
<!-- Example of nested vertical slides -->
<section>
<section>
<h2>Vertical Slides</h2>
<p>Vertical slides work as expected.</p>
</section>
<section>
<h2>Basement Level 1</h2>
<p>You can go even deeper!
</p>
</section>
<section>
<h2>Basement Level 2</h2>
<p>That's it, time to go back up.</p>
</section>
</section>
<section class="impact">
<h2>Now for an <strong>impact</strong> slide.</h2>
<p>Can be used for a nice transition.</p>
<p>Enabled with <code>class="impact"</code>.</p>
</section>
<section id="fragments">
<h2>Fragments</h2>
<p>Hit the next arrow...</p>
<p class="fragment">... to step through ...</p>
<p><span class="fragment">... a</span> <span class="fragment">fragmented</span> <span class="fragment">slide.</span></p>
</section>
<section>
<h2>Pretty Code</h2>
<pre><code class="hljs" data-trim data-line-numbers="4,8-11">
import React, { useState } from 'react';
function Example() {
const [count, setCount] = useState(0);
return (
<div>
<p>You clicked {count} times</p>
<button onClick={() => setCount(count + 1)}>
Click me
</button>
</div>
);
}
</code></pre>
<p>Code syntax highlighting courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
</section>
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<section>
<h2>Longer code snippet</h2>
<pre><code class="hljs">public static void stringMatch(String one, String two) {
boolean match = false;
if (one.charAt(0) == two.charAt(0)) {
System.out.println(match = true); // returns true
} else {
System.out.println(match); // returns false
}
for (int i = 0; i < two.length(); i++) {
int temp = i;
for (int x = 0; x < one.length(); x++) {
if (two.charAt(temp) == one.charAt(x)) {
System.out.println(match = true); //returns true
i = two.length();
}
}
}
int num1 = one.length() - 1;
int num2 = two.length() - 1;
if (one.charAt(num1) == two.charAt(num2)) {
System.out.println(match = true);
} else {
System.out.println(match = false);
}
}</code></pre>
</section>
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<section>
<h2>Normal List</h2>
<ul>
<li>No order here</li>
<li>Or here</li>
<li>Or here</li>
<li>Or here, but a sublist:</li>
<ul>
<li>with</li>
<li>different things</li>
</ul>
</ul>
</section>
<section>
<h2>Ordered List</h2>
<ol>
<li>One is smaller than...</li>
<li>Two is smaller than...</li>
<li>Three!</li>
</ol>
</section>
<section>
<h2>Tabular Tables</h2>
<table>
<thead>
<tr>
<th>Item</th>
<th>Value</th>
<th>Quantity</th>
</tr>
</thead>
<tbody>
<tr>
<td>Apples</td>
<td>$1</td>
<td>7</td>
</tr>
<tr>
<td>Lemonade</td>
<td>$2</td>
<td>18</td>
</tr>
<tr>
<td>Bread</td>
<td>$3</td>
<td>2</td>
</tr>
</tbody>
</table>
</section>
<section>
<h2>Block quote</h2>
<p>
A block quote can be declared with <code>blockquote</code>.
</p>
<blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
For years there has been a theory that millions of monkeys typing at random on millions of
typewriters would
reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
</blockquote>
</section>
<section>
<h2>Columns</h2>
<ul>
<li>
<p>Some <strong>utility CSS classes</strong> are provided, such as <code>col-X</code> (with X a
number between 1 and 12) to declare a column that uses X/12th of the available width.</p>
</li>
<li>
<p>
Columns must be declared within a container that has the <code>columns</code> class.
</p>
</li>
<li>
Example with three columns (each a <code>col-4</code>):
</li>
</ul>
<div class="vspace-20"></div>
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<div class="col-4">
<h3>First column</h3>
<ul>
<li>
an item
</li>
<li>
an item
</li>
<li>
an item
</li>
</ul>
</div>
<div class="col-4">
<h3>Second column</h3>
<ol>
<li>
an item
</li>
<li>
an item
</li>
<li>
an item
</li>
</ol>
</div>
<div class="col-4">
<h3>Third column</h3>
<ul>
<li>
an item
</li>
<li>
an item
</li>
<li>
an item
</li>
</ul>
</div>
</div>
</section>
<section>
<h2>More columns</h2>
<p>Example with an image:</p>
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
<div class="col-7">
<ul>
<li>On the right is an old <b>stereopticon</b>.</li>
<li>It is a projector from the <b>mid 19th century</b>.</li>
<li>It uses <b>two lenses</b> to be able to transition smoothly from one image to another.</li>
</ul>
</div>
<div class="col-4">
<img src="img/old-stereopticon.jpg">
</div>
</div>
</section>
<section>
<h2>Vertical spacing</h2>
<p>The CSS class <code>vspace-X</code> (with X a number between 1 and 200) can be applied on an element
to add a blank vertical space of X pixels before the element.</p>
<p>It can also be applied to an empty <code>div</code>.</p>
<p class="vspace-150">As an example, this paragraph has a <code>vspace-150</code>!</p>
</section>
<section>
<h2>Blocks</h2>
<p>The CSS class <code>block</code> can be used to put things in blocks.</p>
<div class="block">
<h3>Example of block</h3>
<p>Hello!</p>
</div>
</section>
<section>
<h2>References (1)</h2>
<p>The CSS class <code>references</code> can be used to put references at the bottom of a slide. Each reference must have the <code>reference</code> class.</p>
<p>However there is no clean way yet to cite a reference in the body of the slide.</p>
<div class="references">
<div class="reference">Einstein, Albert. The Meaning of Relativity. Princeton: Princeton University Press, 1923.</div>
<div class="reference">Global Campaign for Education. “Girls Can’t Wait: Why Girls’ Education Matters and How to Make It Happen Now: Briefing Paper for the UN Beijing 10 Review and Appraisal.” Reproductive Health Matters 13, no. 25 (May 2005): 19–22. http://www.jstor.org/stable/3776224.</div>
</div>
</section>
<section>
<h2>References (2)</h2>
<p>The identifiers of references keep incrementing accross slides.</p>
<div class="references">
<div class="reference">Andy Hunt & Dave Thomas. The Pragmatic Programmer: From Journeyman to Master. Addison-Wesley. 1999.</div>
<div class="reference">Erich Gamma, Richard Helm, Ralph Johnson & John Vlissides. Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley. 1994.</div>
</div>
</section>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
hash: true,
center: false,
display: 'flex',
width: 1920,
height: 1080,
transition: 'none', // none/fade/slide/convex/concave/zoom
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: '../reveal.js/plugin/markdown/marked.js', condition: function () { return !!document.querySelector('[data-markdown]'); } },
{ src: '../reveal.js/plugin/markdown/markdown.js', condition: function () { return !!document.querySelector('[data-markdown]'); } },
{ src: '../reveal.js/plugin/highlight/highlight.js', async: true },
{ src: '../reveal.js/plugin/search/search.js', async: true },
{ src: '../reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: '../reveal.js/plugin/notes/notes.js', async: true }