Skip to content

Error: expected \begin{document} #161

Description

@lukehutch

When I feed the following paper into LaTeX.js, I get the error: expected \begin{document} (even though that command is present in the document). Is this supposed to work?

\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath, amssymb, amsthm, amsfonts}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage[hypertexnames=false]{hyperref}
\usepackage{booktabs}
\usepackage{enumitem}
\usepackage{framed}
\usepackage{utfsym}
\usepackage[toc,page,title]{appendix}

\usepackage{tikz}
\usetikzlibrary{positioning}

\usepackage[numbers,sort,compress]{natbib}

\geometry{margin=1in}

\newtheorem{axiom}{Axiom}
\newtheorem{lemma}{Lemma}
\newtheorem{theorem}{Theorem}
\newtheorem{corollary}{Corollary}
\newtheorem{definition}{Definition}
\newtheorem{proposition}{Proposition}
\newtheorem{remark}{Remark}

\newcommand{\lP}{l_P}
\newcommand{\tP}{t_P}
\newcommand{\mP}{m_P}
\newcommand{\reholo}{\mathring{r}_e}
\newcommand{\lambdabar}{\bar{\lambda}}
\newcommand{\omZ}{\omega_Z}
\newcommand{\Phivac}{\Phi_{\text{vac}}}
\newcommand{\RH}{R_H}
\newcommand{\kholo}{k_{\text{holo}}}
\newcommand{\ag}{\alpha_g}

\title{...}
\author{...}
\date{\today}

\begin{document}
...
\end{document}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions