blob: e38c7cf17971853f4e1968a565b3d2d746893df4 (
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
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
|
\documentclass[10pt,a5paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{enumitem}
\title{Latex Example Live}
\author{Sebastiano Tronto}
\date{12-03-2021}
\newtheorem{mythm}{My Theorem}[section]
\theoremstyle{definition}
\newtheorem{prop}[mythm]{Proposition}
\newtheorem{defi}{Definition}
\theoremstyle{remark}
\newtheorem*{warning}{Achtung}
\renewcommand{\thesection}{\S\arabic{section}}
\renewcommand{\themythm}{\arabic{section},\Alph{mythm}}
\numberwithin{equation}{section}
\renewcommand{\theequation}{\arabic{section}.\arabic{equation}}
\begin{document}
\maketitle
\section{Text}
abc
\begin{align}
1+1=2
\end{align}
The section \ref{ts} contains theorems
\section{inbetween}
\section{Last section}
\label{ts}
\begin{prop}
A less important fact
\end{prop}
\begin{mythm}[Gauss]
\label{gaussthm}
The equation \(2+x=4\) is true for \(x=2\).
\begin{align}
\label{eq}
\sum_{i=1}^ni
\end{align}
\end{mythm}
The above equation \eqref{eq} is not an equation
\arabic{equation}
\setcounter{defi}{23}
\begin{defi}
a definition
\end{defi}
\setcounter{mythm}{10}
\begin{mythm}
Another important fact.
\end{mythm}
\begin{warning}
It is a common mistake to think that \(2+2=5\)
\end{warning}
\vspace{1cm}
\begin{enumerate}[label=(\Roman*)]
\item an item
\item another one
\end{enumerate}
\arabic{enumi}
\ref{gaussthm} is a theorem by gauss
\end{document}
|