forked from lervag/vimtex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test1.tex
45 lines (33 loc) · 977 Bytes
/
test1.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
\documentclass{article}
\usepackage{amsmath}
\usepackage{cleveref}
\newtheorem{theorem}{Theorem}
\newtheorem{proposition}{Proposition}
\includeonly{test1/sub1,test1/sub2 with spaces}
\begin{document}
\begin{equation}
f(x) = 42
\label{eq:main-is-working}
\end{equation}
\begin{subequations}
\begin{align}
\label{eq:test11a}
f(x) &= 11a \\
\label{eq:test11b}
f(x) &= 11b
\end{align}
\end{subequations}
% To test label completion you need to compile the document first!
% Examples that should all work:
equation (\ref{eq:main-is-working}) \\
equation \eqref{eq:sub1-is-working} \\
\cref{eq:test1,eq:test2} \\
\crefrange{eq:test1}{eq:test10} \\
\cref{eq:sub3 with spaces} on \cpageref{sec:sub3 with spaces} \\
\cref{sec:sub1,sec:sub3 with spaces} \\
\crefrange{sec:sub1}{sec:sub3 with spaces} \\
\include{test1/sub1}
\include{"test1/sub2\space with\space spaces"}
\include{test1/sub4}
\input{"test1/sub3\space with\space spaces"}
\end{document}