X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftest%2Ftest-refstyle-theorems.tex;h=fd2bfc16c1cbb23f9eb8942b91aa30df11e35785;hb=237193f8a888777192981136469a5d4febb8e9d8;hp=70ad4c65013f6380fb37641493a4ae9c2543fc6a;hpb=a99241266b1ad0cefd0f96a95b9793c9617df4ca;p=lyx.git diff --git a/src/tex2lyx/test/test-refstyle-theorems.tex b/src/tex2lyx/test/test-refstyle-theorems.tex index 70ad4c6501..fd2bfc16c1 100644 --- a/src/tex2lyx/test/test-refstyle-theorems.tex +++ b/src/tex2lyx/test/test-refstyle-theorems.tex @@ -1,3 +1,5 @@ +%% LyX trick_preamble_code_into_believing_that_this_was_created_by_lyx created this file. For more info, see http://www.lyx.org/. +%% Do not edit unless you really know what you are doing. \documentclass[english]{book} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} @@ -12,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}}} @@ -28,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}} @@ -109,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}}