I have code, I didn't write and I don't understand. It works just fine, but the equation counter isn't correct in the list of equations. In the document the counter starts with 1, as I want it to. But in the list of equations the counter starts with 0. Could someone help and tell me, what I should add to solve that problem?
\documentclass[twoside,a4paper,11pt,openright]{report}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{newtxtext, newtxmath}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{microtype}
\usepackage[inner=25mm,outer=35mm,top=20mm,bottom=30mm,]{geometry}
\usepackage{array}
\usepackage[pdftex]{graphicx}
\usepackage{float}
\selectlanguage{german}
\usepackage{siunitx}
\usepackage{chemformula}
\usepackage{tocloft} % eigene "list of things"
\usepackage{caption}
\usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref}
% redefinition of \equation for convenience
\let\oldequation = \equation
\let\endoldequation = \endequation
\AtBeginDocument{\let\oldlabel = \label}
\newcommand{\mynewlabel}[1]{%
\StrBehind{#1}{eq:}[\Str]% remove "eq:" from labels
\edef\temp{\noexpand\myequations{\Str\noexpand\quad\expandonce{@currentlabel}}}% add tag to the entry in the list of equations
\temp % execute the command
\oldlabel{#1} % call the original label command
\myequations{\Str}\oldlabel{#1}}
\renewenvironment{equation}{%
\oldequation
\let\label\mynewlabel
}{\endoldequation}
%\newcommand{\listequationsname}{} %Formelverzeichnis
\newlistof{myequations}{equ}{Formelverzeichnis}
\newcommand{\myequations}[1]{%
\addcontentsline{equ}{myequations}{\protect\numberline{\theequation}#1}}
\setlength{\cftmyequationsnumwidth}{3em}
\makeatother
\begin{document}
\begin{align}
Q(t) = Q(t_0) + \int\limits_{t_0}^{t} I(t)\ \mathrm{d}t
\myequations{elektrische Ladung}
\end{align}
\begin{align}
R_i = {\frac {U_0 - U_l}{I_l}}
\myequations{Innenwiderstand} %\nomenclature
\end{align}
\newpage
\listofmyequations
\end{document}

\documentclassand ending with\end{document}. Currently I would guess, that you've made a mistake placing your\myequations{…}or\labelor … to early (before the equation counter has been increased by the corresponding equation). A minimal working example would show, what you've done and so we won't need to guess, but could see and mostly indeed help. – cabohah Apr 25 '23 at 14:26\label{eq:...}and decide to remove theeq:using LaTeX rather than using the editor (change all). I would throw the whole thing out. But mostly you need to move\myequationsafter\oldequation. – John Kormylo Apr 25 '23 at 16:41