%! TeX program = lualatex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\@asd{asd}

\makeatletter
\newlength{\my@beamer@itemsepi}\setlength{\my@beamer@itemsepi}{3ex}
\newlength{\my@beamer@itemsepii}\setlength{\my@beamer@itemsepii}{1.5ex}
\newlength{\my@beamer@itemsepiii}\setlength{\my@beamer@itemsepiii}{1.5ex}
\def\extractcoord#1#2#3{
  \path let \p1=(#3) in \pgfextra{
    \pgfmathsetmacro#1{\x{1}/\pgf@xx}
    \pgfmathsetmacro#2{\y{1}/\pgf@yy}
    \xdef#1{#1} \xdef#2{#2}
  };
}
\makeatother

% TODO fixme
%
% bad speled text
% ABC
% https://www.example.com
%

% VimTeX: SynIgnore
\catcode`\$=11
$
\catcode`\$=3
\newcommand{\testsimplified}[2]{#1 something #1 here #2}
% vimtex: SynIgnore off asdasd

\newcommand{\testnc}[2]{#1 something #1 here #2}
\def \foo #1#2 {#1 foo #1 bar #2 baz}
\newenvironment{test}[3]{#1 before #2}{#3 after #1}

\newtheorem{theorem}{Theorem}

\begin{document}

Test accents \v! and \v@ here. And errors: _ ^

Line with inline verbatim: \verb+verb+
Line with inline verbatim: \verb*+verb+

Line with $inline math$ here.\footnote{here {asd} with \cmd also}. $n$th

\section{First}
\label{sec:first}

% Various cite and ref commands
\ref{sec:first}
\pageref{sec:second}
\nocite{bibkey0}
\cite{bibkey1}
\citet*{bibkey2}
\citep{bibkey3}
\citep[e.g.][]{bibkey4}

\section{Second}
\label{sec:second}

\author{A. Author\thanks{An Institute}}

\section{Math}
\label{sec:math}

\begin{equation}
  ( )
  [ ]
  1 = 3 < 4 > 2 | f(x) / 3 .1.
  \left( \right)
  \left\{ \right\}
  \left\lvert \right\rvert
  \left] \right[
\end{equation}

\begin{table}
  \centering
  \caption{asdfasdf}
  \label{tab:}
  \begin{tabular}{cr}
    1234 \\
    2345 \\
  \end{tabular}
\end{table}

\begin{equation}
  \begin{array}{ccc}
    asd & \left( f \right] & c \\
    asd & f & c \\
    asd & f & c
  \end{array}
\end{equation}

\begin{equation}
  \begin{cases}
    [0,1)
  \end{cases}
\end{equation}

% Nested math
Let \(F = \{f : S \to S \mid \textnormal{\(f\) is a cool function}\}\).
Let \(F = \{f : S \to S \mid \textnormal{$f$ is a cool function}\}\).

\section*{Acknowledgement}

\begin{equation}
  \parbox[c][1pt][b]{10cm}{fooparbox $bar$}
  f(x) = 1
\end{equation}

\begin{minipage}[c][1pt][b]{10cm}
  foominipage $bar$
\end{minipage}

\begin{theorem}[Foo {\cite[Theorem 1.1]{Bar}}]
  Lorem ipsum \dots
\end{theorem}

\begin{thebibliography}{1}
  \bibitem{abc} a citation.
  \bibitem[label]{abc} a citation.
\end{thebibliography}

\begin{tabular}{*{1}{p{1cm}}}
  0
\end{tabular}

%% Some basic stuff re. #2877
foo\\~bar \~More test; in math: $f(x) ~ \~ 1$

Foo \phantom{\{} bar

% See https://github.com/lervag/vimtex/discussions/3080
\NewDocumentCommand{\varappend}{m o m}{%
  %mathzone begin
  \IfNoValueTF{#2}{#1_{\textup{#3}}}{#1_{#2_{\scriptstyle\textup{#3}}}}%
  %mathzone end
}

\end{document}
