From 94ab6280c3ecd54c339463ce6394a1041444056e Mon Sep 17 00:00:00 2001 From: David Tracey Date: Tue, 16 Feb 2016 16:28:46 +0000 Subject: [PATCH] Add examples of various commands to test completion functionality. --- test/feature/completions/main.tex | 30 ++++++++++++++++++- test/feature/completions/sub1.tex | 2 ++ test/feature/completions/sub2 with spaces.tex | 2 ++ test/feature/completions/sub3 with spaces.tex | 2 ++ 4 files changed, 35 insertions(+), 1 deletion(-) diff --git a/test/feature/completions/main.tex b/test/feature/completions/main.tex index 74ecdd3..2dd0f7c 100644 --- a/test/feature/completions/main.tex +++ b/test/feature/completions/main.tex @@ -1,7 +1,9 @@ \documentclass{article} \usepackage{amsmath} +\usepackage{cleveref} +\usepackage{graphicx} -\usepackage[backend=biber]{biblatex} +\usepackage[backend=biber,style=authoryear]{biblatex} \addbibresource{biblatex-examples.bib} \addbibresource{local1.bib} \addbibresource{~/.vim/bundle/vim-latex/test/completion/local2.bib} @@ -9,6 +11,8 @@ \usepackage[nonumberlist,acronymlists={gloss,symbolslist}]{glossaries} \input{glossary.tex} +\includeonly{sub1,sub2 with spaces} + \begin{document} To test label completion you need to compile the document first! @@ -83,6 +87,30 @@ To test label completion you need to compile the document first! \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} \\ + +% \includegraphics{figures/fig12.pdf} +% \includegraphics[scale=0.5]{figures/fig12.pdf} +% \includegraphics[100,100][300,300]{figures/fig12.pdf} + \newpage \glsaddall \printglossary[ diff --git a/test/feature/completions/sub1.tex b/test/feature/completions/sub1.tex index 3eba043..5990de4 100644 --- a/test/feature/completions/sub1.tex +++ b/test/feature/completions/sub1.tex @@ -1,3 +1,5 @@ +\section{sub1}\label{sec:sub1} + \begin{equation} f(x) = 42 \label{eq:sub-is-working} diff --git a/test/feature/completions/sub2 with spaces.tex b/test/feature/completions/sub2 with spaces.tex index d3b0577..03e44b8 100644 --- a/test/feature/completions/sub2 with spaces.tex +++ b/test/feature/completions/sub2 with spaces.tex @@ -1,3 +1,5 @@ +\section{sub2 with spaces}\label{sec:sub2 with spaces} + \begin{equation} f(x) = 42 \label{eq:included sub with spaces is working} diff --git a/test/feature/completions/sub3 with spaces.tex b/test/feature/completions/sub3 with spaces.tex index 6dd2a19..1c87751 100644 --- a/test/feature/completions/sub3 with spaces.tex +++ b/test/feature/completions/sub3 with spaces.tex @@ -1,3 +1,5 @@ +\section{sub3 with spaces}\label{sec:sub3 with spaces} + \begin{equation} f(x) = 42 \label{eq:inputted sub with spaces is working}