]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/test/test-refstyle-theorems.tex
Merge branch 'master' into biblatex2
[lyx.git] / src / tex2lyx / test / test-refstyle-theorems.tex
index 70ad4c65013f6380fb37641493a4ae9c2543fc6a..fd2bfc16c1cbb23f9eb8942b91aa30df11e35785 100644 (file)
@@ -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}}
 \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}}