Adjust files for initial work

This commit is contained in:
Knoch 2019-03-13 18:10:56 +01:00
parent e86632141a
commit cf69bf774f
4 changed files with 132 additions and 4 deletions

89
.gitignore vendored
View File

@ -1,3 +1,4 @@
# From Reveal.js
.idea/
*.iml
*.iws
@ -12,3 +13,91 @@ package-lock.json
.sass-cache
css/reveal.min.css
js/reveal.min.js
# Created by https://www.gitignore.io/api/node
# Edit at https://www.gitignore.io/?templates=node
### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
.env.test
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless/
# FuseBox cache
.fusebox/
# DynamoDB Local files
.dynamodb/
# End of https://www.gitignore.io/api/node

29
README.md Normal file
View File

@ -0,0 +1,29 @@
# LaTeX-Wochenende
In diesem Repository befinden sich die Präsentation und die Materialien für das LaTeX-Wochenende der Fachschaft WIAI. Für die Präsentation wurde auf [Reveal.js](https://revealjs.com) zurückgegriffen.
### Installation des Fachschafts-Themes
Wir verwenden für dieses Projekt das Fachschafts-Theme für Reveal.js als [Git-Submodul](https://git-scm.com/book/en/v2/Git-Tools-Submodules). Deshalb muss das Repository etwas anders behandelt werden als "normale" Repositories.
Unter `lib/css/fswiai-theme` sollte nach einfachem `git clone ...` von latex/latex-wochenende ein leerer Ordner zu finden sein. In diesem Ordner soll unsere CSS-Datei mit dem Theme liegen. Da die Datei ein eigenes Repository hat, binden wir dieses ein, statt die Datei immer zu kopieren. Um den Inhalt des Repositoriums zu laden, was leider nicht automatisch von Git gemacht wird, sind folgende Befehle notwendig:
```sh
$ git submodule init
$ git submodule update
```
Danach sollte in dem Ordner die Datei `fswiai-theme.css` aufgetaucht sein. Um aktuelle Änderungen aus dem Repositorium des Themes zu laden, wird der folgende Befehl benötigt:
```sh
$ git submodule update --remote
```
### Verwendung der Präsentation
Die Präsentation benötigt eine aktuelle Version von [Node.js](https://nodejs.org/en/). Im Anschluss müssen untenstehende Befehle ausgeführt werden, um einen lokalen Server unter http://localhost:8000 zu starten.
```sh
$ cd path/to/latex-wochenende/presentation
$ npm install
$ npm start
```

View File

@ -7,7 +7,7 @@
<title>reveal.js</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css">
<link rel="stylesheet" href="lib/css/fswiai-theme/fswiai-theme.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
@ -24,8 +24,8 @@
<body>
<div class="reveal">
<div class="slides">
<section>Slide 1</section>
<section>Slide 2</section>
<section data-markdown="sections/german/00.md" data-separator="^\r?\n===\r?\n$"
data-separator-vertical="^\r?\n---\r?\n$"></section>
</div>
</div>
@ -37,11 +37,20 @@
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
math: {
mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js',
config: 'TeX-AMS_HTML-full' // See http://docs.mathjax.org/en/latest/config-files.html
},
history: true,
fragmentInURL: true,
pdfSeparateFragments: false,
pdfMaxPagesPerSlide: 1,
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
{ src: 'plugin/highlight/highlight.js', async: true, callback: function () { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/math/math.js', async: true }
]
});
</script>

1
sections/german/00.md Normal file
View File

@ -0,0 +1 @@
# $\LaTeX$