File: test1.tex

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (45 lines) | stat: -rw-r--r-- 977 bytes parent folder | download
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}