Theses, Books, Title pagesLaTeX Error: Two \documentclass or \documentstyle commands.

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

LaTeX Error: Two \documentclass or \documentstyle commands.

Post by templateuser »

Hi everybody,

I installed TeXShop on my Mac about six months ago and have used it almost every day since then without a problem.

When I tried to download The Legrand Orange Book, though, I consistently encountered the following error message:

./structure.tex:1: LaTeX Error: Two \documentclass or \document style commands.

When I tried reconstructing the document without the structure.tex file, I was able to make it work without any errors so that seems to be the issue somehow.

I would greatly appreciate any advice on this!

cdewey

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

LaTeX Error: Two \documentclass or \documentstyle commands.

Post by Vel »

Hey,

Have you made any modifications to the template after you downloaded it? That error should only arise if you have two time \begin{document} or two\documentclass{book}.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

LaTeX Error: Two \documentclass or \documentstyle commands.

Post by Johannes_B »

You most likely named you main file book.tex, now instead of loading the documentclass book, the document loads itself again.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply