%% LyX 2.4.0~RC1 created this file.  For more info, see https://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[american]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{refstyle}
\usepackage{amsmath}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\AtBeginDocument{\DeclareRobustCommand{\eqref}[1]{\textup{\tagform@{\ref{eq:#1}}}}}
\RS@ifundefined{subsecref}
  {\newref{subsec}{name = \RSsectxt}}
  {}
\RS@ifundefined{thmref}
  {\def\RSthmtxt{theorem~}\newref{thm}{name = \RSthmtxt}}
  {}
\RS@ifundefined{lemref}
  {\def\RSlemtxt{lemma~}\newref{lem}{name = \RSlemtxt}}
  {}


\makeatother

\usepackage{babel}
\begin{document}
\title{Titel}
\author{Auteur}
\maketitle

\section{First section}

We have
\begin{equation}
\alpha=\beta\label{eq:ab}
\end{equation}
Also
\begin{equation}
\gamma=\delta\label{eq:cd}
\end{equation}
We see that \eqref{ab} implies \eqref{cd}.
\end{document}
