aboutsummaryrefslogtreecommitdiff
path: root/src/Lecture2/live/sentencecounter.tex
blob: 642891830c4b64a808d5e6d4402188eb96f6807e (plain)
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
\documentclass[10pt,a5paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}

\usepackage{xcolor}

\newcounter{sentence}[section]
\renewcommand{\thesentence}{[\thesection,\arabic{sentence}]}

\newcommand{\R}{\mathbb{R}}
\newcommand{\words}{blah bla blha}

\newcommand{\todo}[1]{{\color{red}\large TODO: #1}}

\newcommand{\sent}[1]{\refstepcounter{sentence}#1\textsuperscript{\arabic{sentence}}}

\newcommand{\mymatrix}[4]{\begin{pmatrix}
#1 & #2 \\
#3 & #4
\end{pmatrix}}

\newcommand{\twocases}[4]{\begin{cases}
#1 & #2 \\
#3 & #4
\end{cases}}


\begin{document}

\section{First section}

\sent{A sentence before the first one}

\sent{This is a sentence.}
\label{s1}
\sent{This is another sentence.}

\todo{finish the first section}

This is a longer sentence that takes more than one line line maybe~no still it random words to show that how tilde works i dont know Theorem~10

\section{Second section}

\sent{A sentence in the second section.}
\label{sanother}

\vspace{2cm}

In sentence~\ref{s1}... \todo{what did I want to say?}

\[ \R \]

\words

\[
\mymatrix{x}{a_{2,2}}{0}{f(10)}
\]

\[
f(x)=\twocases{x^2}{\text{if }x>0}{-x^3}{\text{otherwise.}}
\]

\end{document}

Generated with cgit - Back to sebastiano.tronto.net