Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latextools does not compile document that is compiled in Overleaf #1593

Open
iacanay opened this issue Mar 7, 2024 · 0 comments
Open

Latextools does not compile document that is compiled in Overleaf #1593

iacanay opened this issue Mar 7, 2024 · 0 comments

Comments

@iacanay
Copy link

iacanay commented Mar 7, 2024

Hi. I'm using the Krantz book template from overleaf. When I add the hyperref package, then the document does not compile in Sublime but the same document does compile in Overleaf (though in Overleaf it returns the same error : Undefined control sequence. [\tableofcontents]. It does compile well without hyperref. I do not expect to solve the conflict between the definition of \tableofcontents in the class and hyperref, but I would like to understand why I can compile this in Overleaf and not in Sublime text. Thanks a lot.

Example below:

\documentclass[krantz1]{krantz}
\usepackage[colorlinks=true, urlcolor=blue, linkcolor=blue]{hyperref}

\begin{document}
\tableofcontents
\mainmatter

\chapter{My chapter}
\section{Introduction}
This is a test document

\section{Main section}
This is a test document too.
\end{document}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant