## LaTeX forum ⇒ Theses, Books, Title pages ⇒ The Legrand Orange Book Template doesn't work in ShareLaTeX.com Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
vjavierf
Posts: 4
Joined: Thu Jul 06, 2017 12:54 pm

### The Legrand Orange Book Template doesn't work in ShareLaTeX.com

Hi,

I have created a new project in sharelatex.com with The Legrand Orange Book Template and it doesn't work.

This is the error:

sharelatex.png (123.2 KiB) Viewed 972 times

Regards,

Tags:

Stefan Kottwitz
Posts: 8792
Joined: Mon Mar 10, 2008 9:44 pm
Welcome to the forum!

The cause of the error may be within the file structure.tex. Can you please post your structure.tex here, as attachment? There's a link "Attachments" below the edit field, when writing, for attaching documents or screenshots.

Stefan

vjavierf
Posts: 4
Joined: Thu Jul 06, 2017 12:54 pm
Hi Stefan,

Sure, here is the file...

structure.tex

Regards.

Stefan Kottwitz
Posts: 8792
Joined: Mon Mar 10, 2008 9:44 pm
Interesting - that file structure.tex is perfectly ok. Can it be that sharelatex uses a different version?
Can you please also post the main.log file, and main.tex? You can post it without your personal text.

I may have time in 2-3 hours to look at it again, I'm traveling.

Stefan

vjavierf
Posts: 4
Joined: Thu Jul 06, 2017 12:54 pm
Stefan, I upload a project in sharelatex.com selecting a zip file. In this case, the file book_2.zip with the template files.

I compile without changes. And I get this errors:

structure.tex:396:1: Error: Found \end{tikzpicture}' without corresponding \begin. \end{tikzpicture}}%
structure.tex:407:1: Error: Found \end{tikzpicture}' without corresponding \begin. \end{tikzpicture}}
structure.tex:445:1: Error: Found \end{tikzpicture}' without corresponding \begin. \end{tikzpicture}
structure.tex:454:1: Error: Found \end{tikzpicture}' without corresponding \begin. \end{tikzpicture}
structure.tex:467:1: Error: Found \end{tikzpicture}' without corresponding \begin. \end{tikzpicture}

Next, I edit structure.txt and delete this lines:

\end{tikzpicture}}%
\end{tikzpicture}}
\end{tikzpicture}
\end{tikzpicture}
\end{tikzpicture}

It resolve the errors.

Next, I compile again and I get the error in line: \input{structure}

Here is the file with the output.log:

output.log

Thanks.

Sorry for my english.

Stefan Kottwitz
Posts: 8792
Joined: Mon Mar 10, 2008 9:44 pm
The error messages said "I suspect you have forgotten a }'" and that is correct, you deleted too much curly braces }.

By removing \end{tikzpicture}}% you removed the command \end{tikzpicture} but also another } that closes a group { ... }.

Put them in again.

Or better, restore the original structure.tex. That's because the file structure.tex is fine. The error message earlier may be misleading. For example, structure.tex contains in lines 386 to 396:

{\thispagestyle{empty}%\begin{tikzpicture}[remember picture,overlay]%\node at (current page.north west){\begin{tikzpicture}[remember picture,overlay]%	\fill[ocre!20](0cm,0cm) rectangle (\paperwidth,-\paperheight);\node[anchor=north] at (4cm,-3.25cm){\color{ocre!40}\fontsize{220}{100}\sffamily\bfseries\thepart}; \node[anchor=south east] at (\paperwidth-1cm,-\paperheight+1cm){\parbox[t][][t]{8.5cm}{\printcontents{l}{0}{\setcounter{tocdepth}{1}}%}};\node[anchor=north east] at (\paperwidth-1.5cm,-3.25cm){\parbox[t][][t]{15cm}{\strut\raggedleft\color{white}\fontsize{30}{30}\sffamily\bfseries#2}};\end{tikzpicture}};\end{tikzpicture}}%

Both \begin{tikzpicture} are there, so the error message is somehow wrong. Maybe there was an error message earlier, that tike cannot be loaded and so \begin{tikzpicture} wasn't accepted and so \end{tikzpicture} does not have a corresponding \begin.

If you restore the original structure.tex, and run the compiling, you can post that .log file here again as attachment to see what's wrong the the tikzpicture environment.

Stefan

vjavierf
Posts: 4
Joined: Thu Jul 06, 2017 12:54 pm
Hi Stefan,

I have restored the original structure.tex and, I only get this errors:

structure.tex:396:1: Error: Found \end{tikzpicture}' without corresponding \begin. \end{tikzpicture}}%
structure.tex:407:1: Error: Found \end{tikzpicture}' without corresponding \begin. \end{tikzpicture}}
structure.tex:445:1: Error: Found \end{tikzpicture}' without corresponding \begin. \end{tikzpicture}
structure.tex:454:1: Error: Found \end{tikzpicture}' without corresponding \begin. \end{tikzpicture}
structure.tex:467:1: Error: Found `\end{tikzpicture}' without corresponding \begin. \end{tikzpicture}

But the problem is solved if I don't check syntax before compile. This is ok for me.

Thank you for your time and, support.

Regards,
Javier