\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\usepackage{varioref}
-\usepackage{prettyref}
\usepackage{splitidx}
\makeindex
\newindex[Index]{idx}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
+% Load refstyle before prettyref so that prettyref wins.
+% The real refstyle tests are in test-refstyle-theorems.tex.
+\usepackage{refstyle}
+\AtBeginDocument{\providecommand\secref[1]{\ref{sec:#1}}}
+\usepackage{prettyref}
+
\def\mycommand{\textquestiondown}
\begin{document}
reference~\eqref{lab:test} (from amsmath package), or varioref's
equivalents~\vref{lab:test} and~\vpageref{lab:test}, without
forgetting pretty references like~\prettyref{lab:test}.
+The command \secref{lab:test} will be parsed in ERT, since LyX
+does not support refstyle and prettyref natively at the same time.
\section{Cites\index{Cites}}
An URL: \url{http://www.lyx.org} \nomenclature{URL2}{uniform resource locator}
+An URL with strange characters: \url{http://www.lyx.org/percent%dollar$}
+
link:\href{http://www.test.test}{www.test.test}
link2:\href{http://www.test.test}{http://www.test.test}
\textipa{\tone{55}\tone{44}\tone{33}\tone{22}\tone{11}\textdownstep\textupstep \tone{15}\tone{51}\tone{45}\tone{12}\tone{454}\textglobrise \textglobfall{}}
+TIPA code in math:
+$\textipa{\tone{55}|\text{\!b{}\!d{}\!g{}\!G{}\textglobfall{}\textvertline{}\textdoublevertline{}}}$
\subsection{Line breaks\sindex[breaks]{Line breaks}}