vimtex/test/features/completions/main.tex

152 lines
2.7 KiB
TeX
Raw Normal View History

2014-07-30 13:08:36 -04:00
\documentclass{article}
2015-12-08 15:16:13 -05:00
\usepackage{amsmath}
2016-06-04 07:57:53 -04:00
\usepackage{amsthm}
\usepackage{cleveref}
\usepackage{graphicx}
\usepackage{pdfpages}
\usepackage{standalone}
2015-12-17 16:41:54 -05:00
\usepackage[backend=biber,style=authoryear]{biblatex}
2014-07-30 12:30:06 -04:00
\addbibresource{biblatex-examples.bib}
2014-07-30 13:08:36 -04:00
\addbibresource{local1.bib}
2016-03-26 04:38:56 -04:00
\addbibresource{~/.vim/bundle/vimtex/test/completion/local2.bib}
2015-12-17 16:41:54 -05:00
\usepackage[nonumberlist,acronymlists={gloss,symbolslist}]{glossaries}
\loadglsentries{glossary}
2015-12-17 16:41:54 -05:00
2016-06-04 07:57:53 -04:00
\newtheorem{theorem}{Theorem}
\newtheorem{proposition}{Proposition}
\includeonly{sub1,sub2 with spaces}
2014-07-30 12:30:06 -04:00
\begin{document}
2015-03-08 14:54:50 -04:00
To test label completion you need to compile the document first!
2014-07-30 13:08:36 -04:00
\begin{equation}
f(x) = 42
\label{eq:main-is-working}
\end{equation}
2016-06-04 07:57:53 -04:00
\begin{theorem}
\label{th:first}
test
\end{theorem}
\begin{theorem}
\label{th:second}
test
\end{theorem}
\begin{proposition}
\label{prop:first}
test
\end{proposition}
\begin{proposition}
\label{prop:second}
test
\end{proposition}
2015-02-04 06:32:25 -05:00
\include{sub1}
2014-07-30 12:30:06 -04:00
2015-02-04 06:32:25 -05:00
\include{"sub2\space with\space spaces"}
\input{"sub3\space with\space spaces"}
2015-02-04 06:20:38 -05:00
\begin{equation}
\label{eq:test1}
f(x) = 1
\end{equation}
\begin{equation}
\label{eq:test2}
f(x) = 2
\end{equation}
\begin{equation}
\label{eq:test3}
f(x) = 3
\end{equation}
\begin{equation}
\label{eq:test4}
f(x) = 4
\end{equation}
\begin{equation}
\label{eq:test5}
f(x) = 5
\end{equation}
\begin{equation}
\label{eq:test6}
f(x) = 6
\end{equation}
\begin{equation}
\label{eq:test7}
f(x) = 7
\end{equation}
\begin{equation}
\label{eq:test8}
f(x) = 8
\end{equation}
\begin{equation}
\label{eq:test9}
f(x) = 9
\end{equation}
\begin{equation}
\label{eq:test10}
f(x) = 10
\end{equation}
2015-12-08 15:16:13 -05:00
\begin{subequations}
\begin{align}
\label{eq:test11a}
f(x) &= 11a \\
\label{eq:test11b}
f(x) &= 11b
\end{align}
\end{subequations}
% Examples of Biblatex citation commands
\cite{aristotle:physics} \\
\cite[5--10]{aristotle:physics} \\
\cite[see][5--10]{aristotle:physics} \\
\parencite{aristotle:physics} \\
\parencite[5--10]{aristotle:physics} \\
\parencite[see][5--10]{aristotle:physics} \\
\textcite{aristotle:physics} \\
\textcite[5--10]{aristotle:physics} \\
\textcite[see][5--10]{aristotle:physics} \\
equation (\ref{eq:main-is-working}) \\
equation \eqref{eq:sub-is-working} \\
\cref{eq:test1,eq:test2} \\
\crefrange{eq:test1}{eq:test10} \\
\cref{eq:inputted sub with spaces is working} on \cpageref{sec:sub3 with spaces} \\
\cref{sec:sub1,sec:sub3 with spaces} \\
\crefrange{sec:sub1}{sec:sub3 with spaces} \\
2015-12-17 16:41:54 -05:00
\newpage
\glsaddall
\printglossary[
type=gloss,
style=long,
title={Glossary},
toctitle={Glossary}
]
\printglossary[
type=symbols,
style=long,
title={List of Symbols},
toctitle={List of Symbols}
]
2014-07-30 12:30:06 -04:00
\end{document}