*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 48f23c51 authored by Siegel, Moritz's avatar Siegel, Moritz
Browse files

moved howto to howto

parent f0675efe
Loading
.PHONY: clean
linux_primer: linux_primer.md pictures/slide.tex
pandoc --to=beamer \
--include-in-header=pictures/slide.tex \
--variable=aspectratio:169 \
--highlight-style=breezedark \
--standalone \
--output=linux_primer.pdf \
linux_primer.md
readme: readme.md pictures/slide.tex
pandoc --to=beamer \
--include-in-header=pictures/slide.tex \
--variable=aspectratio:169 \
--highlight-style=breezedark \
--standalone \
--output=readme.pdf \
readme.md
all: linux_primer
clean:
rm readme.pdf linux_primer.pdf
---
author: Moritz Siegel
shortauthor: M
title: Linux Primer
institute: VSC Vienna
date:\today
%theme: Vienna
---
![vsc](pictures/footer.png)
# a very short introduction
## markdown + pandoc + latex = pdf
# compilation
mwe:
```sh
$ pandoc --to=beamer --output=readme.pdf readme.md
```
or go ahead using the makefile:
```sh
$ make
$ make readme
$ make all
```
# new slide
## a section: block text
| The limerick packs laughs anatomical
| In space that is quite economical.
| But the good ones I've seen
| So seldom are clean
| And the clean ones so seldom are comical
# normal list
1. first
2. second
- first
- second
- third
- sub 1
- sub 2
9) Ninth
10) Tenth
11) Eleventh
i. subone
ii. subtwo
iii. subthree
# lists
Pandoc will start a new list each time a different type of list marker
is used. So, the following will create three lists:
(2) Two
(5) Three
1. Four
* Five
- [ ] an unchecked task list item
- [x] checked item
# incremental slide
incremental list:
> 1. first
> 2. second
> - third
> - fourth
# styles
something *italic* and something **fat**
This is * not emphasized *, and \*neither is this\*.
This ~~is deleted text.~~
H~2~O is a liquid. 2^10^ is 1024.
# Block quotations
> This is a block quote.
>
> > A block quote within a block quote.
>
> 1. This is a list inside a block quote.
> 2. Second item.
# code
## without highlighting
> some code
## with highlighting (shell)
```sh
echo "hello world"
```
# fortran code
```f90
!! seed cities
open(unit=10, file='city.dat')
do i = 1,ncity
city(i,1) = int( xmax * rand() + 1 )
city(i,2) = int( xmax * rand() + 1 )
if ( i .gt. 1 ) path = path + norm2( real( city(i,:) - city(i-1,:) ) )
write(10,'(3i5)') city(i,:)
end do
close(unit=10)
```
# py code
```py
import numpy as np
## set up comms protocol with arduino
def query (question):
arduino.write(str.encode(question))
ld("question: %s", question)
while True: # awaits & prints arduinos answer
raw = arduino.readline()
answer = raw.decode()
if answer:
ld("answer: %s", answer)
return answer
```
# columns
::: columns
:::: column
left
::::
:::: column
right
::::
:::
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment