Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132940 views
License: OTHER
1
\documentclass{article}
2
\usepackage[pdftex,active,tightpage]{preview}
3
\setlength\PreviewBorder{2mm}
4
5
\usepackage[utf8]{inputenc} % this is needed for umlauts
6
\usepackage[ngerman]{babel} % this is needed for umlauts
7
\usepackage[T1]{fontenc} % this is needed for correct output of umlauts in pdf
8
\usepackage{amssymb,amsmath,amsfonts} % nice math rendering
9
\usepackage{braket} % needed for \Set
10
\usepackage{algorithm,algpseudocode}
11
12
\begin{document}
13
\begin{preview}
14
This is a 'samle' with some "quotes".
15
16
\begin{algorithm}[H]
17
\begin{algorithmic}
18
\State $a \gets \Call{map}{~}$
19
\State $a['x'] \gets 42$
20
\State $a["x"] \gets 1337$
21
\end{algorithmic}
22
\caption{Algorithmus von Stoer und Wanger}
23
\label{alg:seq1}
24
\end{algorithm}
25
\end{preview}
26
\end{document}
27
28