new.tex (1530B)
1 \documentclass[10pt,a5paper]{article} 2 \usepackage[utf8]{inputenc} 3 \usepackage{amsmath} 4 \usepackage{amsfonts} 5 \usepackage{amssymb} 6 \usepackage{amsthm} 7 \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry} 8 9 \usepackage{enumitem} 10 11 \title{Latex Example Live} 12 \author{Sebastiano Tronto} 13 \date{12-03-2021} 14 15 16 17 \newtheorem{mythm}{My Theorem}[section] 18 19 \theoremstyle{definition} 20 \newtheorem{prop}[mythm]{Proposition} 21 \newtheorem{defi}{Definition} 22 23 \theoremstyle{remark} 24 \newtheorem*{warning}{Achtung} 25 26 \renewcommand{\thesection}{\S\arabic{section}} 27 \renewcommand{\themythm}{\arabic{section},\Alph{mythm}} 28 29 30 \numberwithin{equation}{section} 31 32 \renewcommand{\theequation}{\arabic{section}.\arabic{equation}} 33 34 \begin{document} 35 36 \maketitle 37 38 39 \section{Text} 40 41 abc 42 43 \begin{align} 44 1+1=2 45 \end{align} 46 47 The section \ref{ts} contains theorems 48 49 \section{inbetween} 50 51 \section{Last section} 52 \label{ts} 53 54 55 \begin{prop} 56 A less important fact 57 \end{prop} 58 59 \begin{mythm}[Gauss] 60 \label{gaussthm} 61 The equation \(2+x=4\) is true for \(x=2\). 62 \begin{align} 63 \label{eq} 64 \sum_{i=1}^ni 65 \end{align} 66 \end{mythm} 67 68 The above equation \eqref{eq} is not an equation 69 70 \arabic{equation} 71 72 73 \setcounter{defi}{23} 74 \begin{defi} 75 a definition 76 \end{defi} 77 78 \setcounter{mythm}{10} 79 \begin{mythm} 80 Another important fact. 81 \end{mythm} 82 83 \begin{warning} 84 It is a common mistake to think that \(2+2=5\) 85 \end{warning} 86 87 88 \vspace{1cm} 89 90 \begin{enumerate}[label=(\Roman*)] 91 \item an item 92 \item another one 93 \end{enumerate} 94 95 \arabic{enumi} 96 97 \ref{gaussthm} is a theorem by gauss 98 99 \end{document}