\documentclass{article}

\usepackage{%
  amsmath,                      %
  attachfile,                   %
  booktabs,                     %
  cleveref, varioref, fancyref, %
  fancyvrb,                     %
  fontaxes,                     %
  fontspec,                     %
  listings,                     %
  siunitx,                      %
  splitidx,                     %
  tabularx, tabulary            %
}

\begin{document}

\section{Introducction}
\label{sec:introducction}

Test file for AUCTeX additions to ispell (with intentional typos).

\section{Packages}

\subsection{amsmath.sty}

\begin{multline}
  \text{foo + bar}\\
  +i+j+k+l+m+n
\end{multline}
\begin{gather}
  \text{foo + bar}\\
  a_2=b_2+c_2-d_2+e_2
\end{gather}
\begin{alignat}
  \text{foo + bar}\\
  a_2& =b_2+c_2-d_2+e_2
\end{alignat}
\begin{align}
  \text{foo + bar}& =b_{11}& a_{12}& =b_{12}\\
  a_{21}& =b_{21}& a_{22}& =b_{22}+c_{22}
\end{align}
\begin{flalign*}
  \text{foo + bar}& =b_{11}&
  a_{12}& =b_{12}\\
  a_{21}& =b_{21}&
  a_{22}& =b_{22}+c_{22}
\end{flalign*}


\subsection{attachfile.sty}

\attachfile{ispell-addons.tex}


\subsection{booktabs.sty}

\cmidrule[.4pt](lr){1-1}
\specialrule{.4pt}{1ex}{0.5ex}


\subsection{cleveref.sty, varioref.sty, nameref.sty, fancyref.sty}

\cref{sec:introducction}%
\Cref{sec:introducction}%
\cref*{sec:introducction}%
\Cref*{sec:introducction}%
\cpageref{sec:introducction}%
\Cpageref{sec:introducction}%
\namecref{sec:introducction}%
\nameCref{sec:introducction}%
\lcnamecref{sec:introducction}%
\labelcref{sec:introducction} % ignored; probably matched by
                              % built-in \label?
\crefrange{sec:introducction}{sec:introduccction}
\Crefrange{sec:introducction}{sec:introduccction}
\cpagerefrange{sec:introducction}{sec:introduccction}
\Cpagerefrange{sec:introducction}{sec:introduccction}
\crefrange*{sec:introducction}{sec:introduccction}
\Crefrange*{sec:introducction}{sec:introduccction}

\vref{sec:introducction}%
\Vref{sec:introducction}%
\vref*{sec:introducction}%
\Ref{sec:introducction}%
\vpageref{sec:introducction}%
\vpageref*{sec:introducction}%
\fullref{sec:introducction}%
\vrefrange{sec:introducction}{sec:introduccction}%
\vrefrange*{sec:introducction}{sec:introduccction}%
\vpagerefrange{sec:introducction}{sec:introduccction}%
\vpagerefrange*{sec:introducction}{sec:introduccction}%

\nameref {sec:introducction}%
\Nameref %
  {sec:introducction}

\fref{sec:introducction}%
\Fref{sec:introducction}


\subsection{fancyvrb.sty}

\fvset{hfuzz=.5pt,xleftmargin=1cm}

\VerbatimInput[hfuzz=.5pt]{ispell-addons.tex}

\begin{BVerbatim}
(defun TeX-ispell-skip-setcar (skips)
  "Add SKIPS to car of `ispell-tex-skip-alists'."
\end{BVerbatim}

\begin{LVerbatim}
(defun TeX-ispell-skip-setcar (skips)
  "Add SKIPS to car of `ispell-tex-skip-alists'."
\end{LVerbatim}

\begin{VerbatimOut}[xleftmargin=1cm]{tesst.tex}
(defun TeX-ispell-skip-setcar (skips)
  "Add SKIPS to car of `ispell-tex-skip-alists'."
\end{VerbatimOut}

\begin{SaveVerbatim}[xleftmargin=1cm]
(defun TeX-ispell-skip-setcar (skips)
  "Add SKIPS to car of `ispell-tex-skip-alists'."
\end{SaveVerbatim}


\subsection{fontaxes.sty}

\figureversion{lf,tab}


\subsection{fontspec.sty}

\fontspec{texgyrechorus-mediumitalic.otf}[
  SizeFeatures={
    {Size={-8}, Font=texgyrebonum-italic.otf, Color=AA0000},
    {Size={8-14}, Color=00AA00},
    {Size={14-}, Color=0000AA}} ]

\fontspec[
  SizeFeatures={
    {Size={-8}, Font=texgyrebonum-italic.otf, Color=AA0000},
    {Size={8-14}, Color=00AA00},
    {Size={14-}, Color=0000AA}} ]
  {texgyrechorus-mediumitalic.otf}

\addfontfeatures{Numbers={Monospaced,Lining}}


\subsection{listings.sty}

\lstset{basicstyle=\ttfamily}

\begin{lstlisting}
(defun TeX-ispell-skip-setcar (skips)
  "Add SKIPS to car of `ispell-tex-skip-alists'."
\end{lstlisting}


\subsection{siunitx.sty}

\sisetup{
  outtput-open-uncertainty  = [   ,
  outtput-close-uncertainty = ]   ,
  unccertainty-separator    = {\,}
}
\si{\highlight{mypurple}\kilogram\metre\per\second}, \si{kg.m/s^2};
\SI{2}{kg.m/s^2}; \num{-e10} or \num{3.45d-4}


\subsection{splitidx.sty}

\sindex[idx]{splitidx}


\subsection{tabularx.sty, tabulary.sty}

\begin{tabularx}{300pt}{| c | X | c | X |}
  Onne & twwo & thre & fouur
\end{tabularx}

\begin{tabulary}{300pt}{| L | C | R | J |}
  Onne & twwo & thre & fouur
\end{tabulary}


\begin{thebibliography}{}
\bibitem[Jones et al.(1990)Jones, Baker and Williams]{tessst:90} The
  sccience of thinggs.
\end{thebibliography}

\end{document}



%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
