Add examples of various commands to test completion functionality.
This commit is contained in:
parent
0fdac8f459
commit
94ab6280c3
@ -1,7 +1,9 @@
|
|||||||
\documentclass{article}
|
\documentclass{article}
|
||||||
\usepackage{amsmath}
|
\usepackage{amsmath}
|
||||||
|
\usepackage{cleveref}
|
||||||
|
\usepackage{graphicx}
|
||||||
|
|
||||||
\usepackage[backend=biber]{biblatex}
|
\usepackage[backend=biber,style=authoryear]{biblatex}
|
||||||
\addbibresource{biblatex-examples.bib}
|
\addbibresource{biblatex-examples.bib}
|
||||||
\addbibresource{local1.bib}
|
\addbibresource{local1.bib}
|
||||||
\addbibresource{~/.vim/bundle/vim-latex/test/completion/local2.bib}
|
\addbibresource{~/.vim/bundle/vim-latex/test/completion/local2.bib}
|
||||||
@ -9,6 +11,8 @@
|
|||||||
\usepackage[nonumberlist,acronymlists={gloss,symbolslist}]{glossaries}
|
\usepackage[nonumberlist,acronymlists={gloss,symbolslist}]{glossaries}
|
||||||
\input{glossary.tex}
|
\input{glossary.tex}
|
||||||
|
|
||||||
|
\includeonly{sub1,sub2 with spaces}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
To test label completion you need to compile the document first!
|
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{align}
|
||||||
\end{subequations}
|
\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
|
\newpage
|
||||||
\glsaddall
|
\glsaddall
|
||||||
\printglossary[
|
\printglossary[
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
\section{sub1}\label{sec:sub1}
|
||||||
|
|
||||||
\begin{equation}
|
\begin{equation}
|
||||||
f(x) = 42
|
f(x) = 42
|
||||||
\label{eq:sub-is-working}
|
\label{eq:sub-is-working}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
\section{sub2 with spaces}\label{sec:sub2 with spaces}
|
||||||
|
|
||||||
\begin{equation}
|
\begin{equation}
|
||||||
f(x) = 42
|
f(x) = 42
|
||||||
\label{eq:included sub with spaces is working}
|
\label{eq:included sub with spaces is working}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
\section{sub3 with spaces}\label{sec:sub3 with spaces}
|
||||||
|
|
||||||
\begin{equation}
|
\begin{equation}
|
||||||
f(x) = 42
|
f(x) = 42
|
||||||
\label{eq:inputted sub with spaces is working}
|
\label{eq:inputted sub with spaces is working}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user