Skip to content
Snippets Groups Projects
Commit 636e1b5b authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

latex update

parent 3f308551
Branches
Tags
No related merge requests found
File added
File added
This diff is collapsed.
......@@ -8,8 +8,56 @@ What you need to get started:
2. An Editor, e.g. TexStudio or Texshop, ...
3. Examples:
* Open [Seminararbeit.tex ](Seminararbeit.tex) [PDF](Seminararbeit.pdf) [on Overleaf](https://de.overleaf.com/read/whhnjmbwsvpy)
* [Examples](https://www.latextemplates.com)
* More [Overleaf-Examples](https://de.overleaf.com/latex/examples)
[Advanced Guide to writing scientific papers with $`\LaTeX`$ (Wissenschaftliche Arbeiten schreiben mit $`\LaTeX`$
)](Wissenschaftliches-Script-Latex-Seibert-05.2021.pdf)
# What to use?
**5 Reasons for Latex**
1. Professional PDF with printing quality
2. Lots of mathemetical, physical, chemical or other equations. Need to be in Latex anyway.
3. Need to use a fixed layout given to you by the university or journal
4.
**5 Reasons for Markdown**
1. Markdown is much easier to learn and visual
2. Readable and shareable, collaborate
3. Markdown can be converted into HTML, PDF, DOCX, ...
4. You see what you get editors exist for Markdown with live preview
5. Other content like Maths formulas or tables can be added easily.
**Tip** - If you don not have a template yet and are unsure how to start. Start using Markdown and when needed convert to any Latex template.
# Markdown and Latex
An easier solution to start is to use Markdown, which is a yet another plain text markdown language that supports a lot of nice features:
* latex rendering
* code highlighting
* Gitlab, GitHub integration
It is easy to write, share and version control. Markdown files can be converted to Latex and then compiled to a PDF.
You can find an example ...
What you need to get started to convert to PDF:
1. [Pandoc](https://pandoc.org/installing.html)
2. Latex (Note tips when installing pandoc)
* fonts-extra
3. Editor for Markdown e.g. [Dillinger (online)](https://dillinger.io) or [Typora](https://typora.io)
At first you can start writing your document just as
```
pandoc -d eisvogel.tex -o MyPaper.pdf
```
Links:
- [Table Converter Online (csv, xml, json, excel, md, tex, ...)](https://tableconvert.com)
- [Pandoc Demos](https://pandoc.org/demos.html)
- [Academic Pandoc template](https://maehr.github.io/academic-pandoc-template/)
![](https://maehr.github.io/academic-pandoc-template/android-chrome-512x512.png)
- [Eisvogel Pandoc Template](https://github.com/Wandmalfarbe/pandoc-latex-template)
![](https://github.com/Wandmalfarbe/pandoc-latex-template/blob/master/icon.png)
\ No newline at end of file
......@@ -19,19 +19,45 @@ if [ $? -ne 0 ]; then
exit 1
fi
read -p "[VPN] Full (1) or split (None) tunnel? (1/None)" REPLY
# echo "REPLY: $REPLY"
read -p "[VPN] Full (1) or split (None) tunnel? (1/None): " REPLY
if [ "$REPLY" == "" ]; then
echo "[VPN] Connecting split-tunnel ..."
f5fpc -s -t vpn.univie.ac.at -u ${VPN_USER}
cmd="f5fpc -s -t vpn.univie.ac.at -u ${VPN_USER}"
else
echo "[VPN] Connecting full-tunnel ..."
f5fpc -s -t vpn.univie.ac.at:8443 -u ${VPN_USER}
cmd="f5fpc -s -t vpn.univie.ac.at:8443 -u ${VPN_USER}"
fi
# Todo: Does not work? f5fpc is too slow
# Can happen that there is no return
# as of bad shutdown or so
# echo "[VPN] Checking for existing connections..."
# output=$(netstat | grep vpn.univie.ac.at | wc -l)
# if [ $output - 2 ]; then
# echo "[VPN] Found a running instance:"
# f5fpc --info
# read -p "[VPN] shutdown (1) or keep (none) ? " REPLY
# if [ "$REPLY" == "1" ]; then
# f5fpc -o
# echo "[VPN] disconnected"
# else
# exit
# fi
# fi
echo "[VPN] Starting Monitor..."
# Show status
watch -n 2 'f5fpc --info'
while true;
do
f5fpc --info | grep "established" > /dev/null
if [ $? -ne 0 ]; then
eval $cmd
fi
watch -n 2 'f5fpc --info'
read -p "[VPN] Reconnect (1) or shutdown (None): " REPLY
if [ "$REPLY" == "" ]; then
break
fi
done
echo "[VPN] Shutting down ..."
# Disconnect
f5fpc -o
echo "[VPN] disconnected"
\ No newline at end of file
echo "[VPN] disconnected"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment