\providecommand{\makenomenclature}{\makeglossary}
\makenomenclature
\usepackage{varioref}
-\usepackage{prettyref}
\usepackage{splitidx}
\makeindex
\newindex[Index]{idx}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{hhline}
+\usepackage{dcolumn}
\usepackage{pdfpages}
\usepackage{textcomp}
\usepackage{amssymb}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 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~\pageref{lab:test}, but also equation
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}.
+forgetting pretty references like~\prettyref{lab:test} as well as textual
+references like~\nameref{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}}
\citet{gur+04} have demonstrated that authors should not have umlauts
in their names. It's OK to use them in the man\"{u}script, though.
\begin{thebibliography}{References}
+\bibitem[M\"{o}stl et~al.(2010)]{Mostl2010} Gürkan, M.~A., Freitag,
+M., \& Rasio, F.~A. 2004, ApJ, 604, 632
\bibitem[{{G\"{u}rkan et~al.}(2004)}]{gur+04} Gürkan, M.~A., Freitag,
M., \& Rasio, F.~A. 2004, ApJ, 604, 632\end{thebibliography}
We can input files too, like this \input{DummyDocument}, or with the include
variant (tests quoting as well):
-\include{\string"Dummy\space Document\string"}
+\include{\string"Dummy\space Document\string".tex}
\include{\string"Dummy Document\string".tex}
\include{\string"Dummy\string~Document\string"}
\include{\string"Dummy\string~Document\string".tex}
File names containg double quotes are not legal on windows, so no test file
is provided. Nevertheless, they are legal on unix, so we test at least the
-paring. Since the file does not exist, the variant without extension would
+parsing. File names containing spaces can not be handled by automake
+(make dist would fail), so no test file is provided as well.
+Since the files do not exist, the variants without extension would
not work (tex2lyx can't deduce the correct extension of nonexisting files).
\include{\string"Dummy\string"Document\string".tex}
\textbf{First}&\textbf{Second}\\
\hline\hline
\endhead
+\caption*
+{standard foot}\\
\hline
This goes at the&bottom.\\
\hline
\endfoot
+\caption*{(last foot)}\\
\hline
These lines will&appear\\
in place of the & usual foot\\
\end{tabular}
\end{table}
+A table using dcolumn:
+
+\begin{table}
+\begin{tabular}{ccddd}
+One&Two&
+\multicolumn{1}{c}{\textrm{Three}}&
+\multicolumn{1}{c}{\textrm{Four}}&
+\multicolumn{1}{c}{\textrm{Five}}\\
+\hline
+one&two&\mbox{three}&\mbox{four}&\mbox{five}\\
+He&2& 2.77234 & 45672. & 0.69 \\
+C\footnote{Some tables require footnotes.}
+&C\footnote{Some tables need more than one footnote.}
+& 12537.64 & 37.66345 & 86.37 \\
+\end{tabular}
+\end{table}
+
+
+A table using decimal alignment:
+
+\begin{table}
+\begin{tabular}{ccr@{\extracolsep{0pt}.}lr@{\extracolsep{0pt}.}lr@{\extracolsep{0pt}.}l}
+One & Two & \multicolumn{2}{c}{Three} & \multicolumn{2}{c}{Four} & \multicolumn{2}{c}{Five}\tabularnewline
+\hline
+one & two & \multicolumn{2}{c}{three} & \multicolumn{2}{c}{four} & \multicolumn{2}{c}{five}\tabularnewline
+He & 2 & 2&77234 & 45672& & 0&69 \tabularnewline
+C & C & 12537&64 & 37&66345 & 86&37 \tabularnewline
+\end{tabular}
+\end{table}
+
\section{Macros}
{\Huge \lyxline{\Huge}}{\Huge \par}
-\subsection{rules}
+\subsection{Rules}
+
+test
+
+{\tiny \rule[0.5ex]{1\linewidth}{1pt}}{\tiny \par}
test\rule[0.001\textwidth]{1\columnwidth}{0.05\textheight}
\textsublhalfring{e}
\textsubplus{e}
\=*{e}
-\b{e}
+(don't mix up with \b{e})
\"{e}
\textovercross{e}
\s{e}
TIPA code in math:
$\textipa{\tone{55}|\text{\!b{}\!d{}\!g{}\!G{}\textglobfall{}\textvertline{}\textdoublevertline{}}}$
+\subsection{Other symbols}
+All three should be converted to U+00C5: \AA{} \r A \r{A} (not U+212B).
+All three should be converted to U+00E5: \aa{} \r a \r{a}.
+
\subsection{Line breaks\sindex[breaks]{Line breaks}}
They can also or be broken by a newline\\
ellipsis\ldots, and end-of-sentence\@. LyX also supports a menu
separator\lyxarrow{}and a spif\textcompwordmark{}fy ligature break.
+There are dashes: endash in short form -- and long form \textendash,
+emdash is alike: --- and \textemdash. If we really want several hyphens
+in a row, we need to separate them: -{}-, -{}-{}-, -{}-{}-{}- etc.
+
LyX translates the phrases LyX, TeX, LaTeX2e and LaTeX
to the commands \LyX{}, \TeX{}, \LaTeXe{} and \LaTeX{}.
If these phrases occur as part of other words (like 1LyX or aTeX or LaTeX3)
A sub\textsubscript{sc\emph{ript}} and super\textsuperscript{script
with $a^2+b^2=c^2$ math}.
+latex2writer outputs quotes in braces like {\textquoteright}. We swallow the,
+but this was one broken (bug 8903).
+
\section{Mathematics\index{Mathematics}}
%EndExpansion
$.
+\[
+\begin{array}{rclccc}
+1 + 2 & = & 3
+\multicolumn{3}{c}{4 < 5 \leq 6 }
+\end{array}
+\]
+
\section{Lists/Indices}