-
Notifications
You must be signed in to change notification settings - Fork 13
/
paper_example.tex
130 lines (98 loc) · 6.1 KB
/
paper_example.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
% Auth: Nicklas Vraa
% Docs: https://github.com/NicklasVraa/LiX
\documentclass[twocolumn]{paper}
\lang {english}
\title {An Interesting and Cool Title}
\subtitle {Some Equally Interesting Buzzwords to Entice The Reader}
\authors {Nicklas Vraa}{Second Author}{Third Author}
\keywords {Research, template, packages}
\abstract{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec commodo nec dui viverra bibendum. Proin vitae erat at est vestibulum sagittis nec eget dolor. Proin vitae quam sit amet mi ullamcorper finibus. Pellentesque imperdiet hendrerit eros eu dapibus.}
\begin{document}
\h*{Non-Numbered Heading}
Fusce cursus auctor ipsum quis gravida. Cras suscipit, quam ac tempor fringilla, libero felis euismod metus, ac egestas tortor ipsum vel mi. Donec feugiat, enim et tempus consectetur, ante metus commodo velit, quis rhoncus justo tellus vitae mauris. Aliquam ut accumsan mauris. Pellentesque mi justo, tempus nec tempus at, lacinia nec metus. Fusce sit amet lacus dignissim, dapibus diam vulputate, gravida magna. Aenean rhoncus quam vel scelerisque dictum.
\h{Numbered Heading}
Quisque dignissim sapien at tellus porttitor tempus. Etiam nec auctor diam, sed consectetur sapien. Fusce nec urna egestas, euismod ipsum quis, malesuada est. Duis consectetur magna eros, at mollis lacus bibendum vel. Proin convallis felis nec pellentesque fermentum. Suspendisse ut congue dolor. Etiam ornare sem molestie, faucibus urna in, dapibus leo.
\hh{Subheading}
Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Praesent velit turpis, pulvinar ac dapibus congue, ultrices at quam. Nullam dui libero, lobortis vel magna et, egestas venenatis ex. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Vestibulum vehicula nec nisl non placerat. Ut lobortis tincidunt varius. Curabitur in mattis sem.
\hhh{Subsubheading}
Etiam eu orci ac lectus rutrum cursus a nec neque. Cras leo nibh, blandit et pretium vel, auctor sed orci. Phasellus tincidunt vitae mauris eget ultricies. Donec vehicula egestas lorem ut dictum. Integer quis diam ullamcorper, tempor diam in, iaculis enim. Etiam non nulla venenatis, volutpat tortor id, vestibulum ligula.
\h{Formats}
Nunc ante \b{bold} lectus, pretium id \i{italic} sodales, dapibus \s{strikethrough} urna. Suspendisse maximus \u{underlined} metus sed ante commodo efficitur. Some inline code: \c{def func(a,b): return a+b}
\h{Mathematics}
Pellentesque sagittis orci ut lorem blandit, vel cursus urna interdum. Mauris malesuada fermentum ipsum, accumsan varius velit porttitor ut. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam rutrum sem orci, eget ornare justo sodales.
\math{my_equation}{
\hat{x}_i = \frac{x_i-\mu}{\sqrt{\sigma^2+\epsilon}}
}
\h{Code Blocks}
Nullam congue ligula vitae urna convallis commodo. Proin nunc mi, vulputate quis viverra eu, consequat vitae risus sed venenatis. Praesent ut libero in dui mattis maximus.
\code{my_code}{python}{
# Mauris viverra massa id lorem pretium gravida.
if num == 1:
print(num, "is not a prime.")
elif num > 1:
for i in range(2, num):
if (num % i) == 0:
print(num, "is a prime.")
break
}
{This is some code.}
\h{Tables}
Cras vitae sem egestas, elementum felis vitae, ultricies ante. Fusce pellen tesque massa vitae massa molestie, at cursus urna scelerisque. Aliquam malesuada nunc at est vulputate condimentum. Aliquam luctus tellus id ipsum facilisis facilisis. Cras eu egestas magna.
\cols{2}{
\tabs{my_table}{cols}{
This & is & a & table \\
1 & 2 & 3 & 4 \\
a & b & c & d
}{This is a cols-table. Notice that the description wraps neatly.}
\tabs{my_table}{rows}{
So & 1 & 2 & 3 & 4 \\
is & 5 & 6 & 7 & 8 \\
this & 9 & 0 & 0 & 0
}{And this is a rows-table}
}
\h{Figures}
Nullam massa nunc, sollicitudin id eleifend vitae, pellentesque sit amet lectus. Morbi vestibulum leo quis tempor lacinia.
\fig{my_svg}{1}{resources/placeholder.svg}
{This is an svg-figure scaled by 1, and this is a very long description.}
Integer sed metus malesuada, volutpat urna condimentum, aliquet metus. Phasellus interdum.
\fig{my_png}{0.7}{resources/placeholder.png}
{This is a png-figure scaled by 0.7.}
\h{Columns}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras malesuada tortor ac condimentum molestie. In hac habitasse platea dictumst.
\cols{2}{
\fig{left_fig}{1}{resources/placeholder.png}{This figure has a scale of 1.}
\fig{right_fig}{1}{resources/placeholder.png}{As does this figure.}
}
\h{Algorithms}
Nulla odio tortor, feugiat sit amet justo quis, placerat egestas odio. Vestibulum cursus nulla lectus, id congue neque laoreet eget. Pellentesque et blandit leo.
\algo{my_alg}{
let $x \in \Z$
if $x = 1$
do stuff
else
do another thing
}
{This is an algorithm described in pseudo-code.}
\h{Lists}
Elit vel sagittis luctus, arcu libero pellentesque nisi, sed consectetur quam neque a elit. Donec consectetur cursus nulla eu feugiat. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
\items{
\item Something.
\item Another thing.
\items{
\item A subitem.
\item Another subitem.
\items*{
\item A bullet point.
\item Another bullet point.
}
}
\item And another item.
\item Last item.
}
\h{Referencing}
Here is a hyperlink to a \url{https://www.overleaf.com/}{webpage}. This is a reference to \at{my_equation}, and this refers to \at{my_svg}. You can also refer to headings like \at{Tables}. \At{my_code} is a capitalized variant. For all references, both the name and number are links. Of cource, you can cite sources using \c{\cite{...}}, like this \cite{minted} or this \cite{tabularray}. You can also insert a bibliography.
\h{Conclusion}
Aliquam luctus tellus id ipsum facilisis facilisis. Cras eu egestas magna. Aenean id nunc odio. Integer sit amet justo mi. Integer lorem neque, sodales et tellus finibus.
\toc
\bib{resources/refs}
\end{document}