I am currently writing protocolls with latex. I want to numerate my equations like this: (1.1), (2.3) and so on, but it´s only numbering from (1) to (n) without remarking the sections. My preamble is, but with it its not working how i want:
\documentclass[a4paper, 12pt]{scrartcl}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{subfiles}
%\usepackage{enumitem}
\usepackage{enumerate}
\usepackage{amsmath,amssymb,amsfonts,amsthm,mathtools}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{color}
\usepackage{colortbl}
\definecolor{softgreen}{rgb}{.6,.98,.6}
\usepackage{parskip} %Deaktiviert Absatzeinrückung
\usepackage{tikz}
\usepackage{multirow}
\usepackage{hyperref} %Anklicken von Referenzen ermöglichen
\usepackage[a4paper, includefoot, left=24mm, right=24mm, top=15mm, bottom=15mm]{geometry}
\usepackage{cleveref} %Referenzieren ermöglichen
\usepackage{chemformula}
\graphicspath{{Grafiken/}}
%\usepackage{uhrzeit}
\begin{document}
\section{Theoretische Grundlagen}
\begin{equation}
2 + 3 = 5
\end{equation}
\end{document}
\counterwithin{equation}{section}to your preamble result in the equation begin numbered with1.1. – leandriis Jun 27 '20 at 09:15\usepackage{color} \usepackage{colortbl}wirh\usepackage[table]{xcolor}. Also, I would suggest using theenumitempackage instead ofenumerateas the former supersedes the latter. – leandriis Jun 27 '20 at 09:19hyperrefshould, with some exceptions likecleveref, be the last package in the preamble. So movegeometryandchemformulabefore thehyperrefpackage. – leandriis Jun 27 '20 at 09:21parskiptogether with a KOMA-Script class is not recommended." To get a somewhat similar output without using theparskippackage, you can use theparskip=halfclass option. – leandriis Jun 27 '20 at 09:24