X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftest%2Ftest-refstyle-theorems.tex;h=fd2bfc16c1cbb23f9eb8942b91aa30df11e35785;hb=237193f8a888777192981136469a5d4febb8e9d8;hp=e0e2944e19e2d967dcf3b15052cbf0c743e28a51;hpb=48c9926d87aa1b6e1b2e9e3f7d9be7a673a27484;p=lyx.git diff --git a/src/tex2lyx/test/test-refstyle-theorems.tex b/src/tex2lyx/test/test-refstyle-theorems.tex index e0e2944e19..fd2bfc16c1 100644 --- a/src/tex2lyx/test/test-refstyle-theorems.tex +++ b/src/tex2lyx/test/test-refstyle-theorems.tex @@ -14,7 +14,7 @@ \AtBeginDocument{\providecommand\partref[1]{\ref{part:#1}}} \AtBeginDocument{\providecommand\chapref[1]{\ref{chap:#1}}} \AtBeginDocument{\providecommand\secref[1]{\ref{sec:#1}}} -\AtBeginDocument{\providecommand\subref[1]{\ref{sub:#1}}} +\AtBeginDocument{\providecommand\subsecref[1]{\ref{subsec:#1}}} \AtBeginDocument{\providecommand\parref[1]{\ref{par:#1}}} \AtBeginDocument{\providecommand\figref[1]{\ref{fig:#1}}} \AtBeginDocument{\providecommand\tabref[1]{\ref{tab:#1}}} @@ -30,8 +30,8 @@ \newfloat{algorithm}{tbp}{loa}[chapter] \providecommand{\algorithmname}{Algorithm} \floatname{algorithm}{\protect\algorithmname} -\RS@ifundefined{subref} - {\def\RSsubtxt{section~}\newref{sub}{name = \RSsubtxt}} +\RS@ifundefined{subsecref} + {\newref{subsec}{name = \RSsectxt}} {} \RS@ifundefined{thmref} {\def\RSthmtxt{theorem~}\newref{thm}{name = \RSthmtxt}} @@ -111,14 +111,14 @@ \secref{Section} -\subsection{Subsection\label{sub:subsection}} +\subsection{Subsection\label{subsec:subsection}} -Ref to \subref{subsection}. +Ref to \subsecref{subsection}. -\subsubsection{Subsubsection\label{sub:Subsubsection}} +\subsubsection{Subsubsection\label{subsec:Subsubsection}} -Ref to \subref{Subsubsection}. +Ref to \subsecref{Subsubsection}. \paragraph{paragraph\label{par:paragraph}}