I can reproduce the error.
I have TeX Live (https://tug.org/texlive) version 2022. But refstyle.cfg
and refstyle.sty haven't changed since 2010 (according to the files).
That's what Lyx produces, if refstyle is used:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[british]{article}
\usepackage{mathptmx}
\usepackage{newtxmath}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{refstyle}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\AtBeginDocument{\providecommand\figref[1]{\ref{fig:#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}
\figref{1}
Blindtext
\begin{figure}[p]
\caption{\label{fig:1}}
XXX
\end{figure}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Am 15.03.23 um 14:55 schrieb Scott Kostyshak:
I'm not sure if it is any better but note that there is a .iso for installing
TeXLive.
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users