detiuaveiro / ua-thesis-template

📖 A thesis LaTeX template that complies with the University of Aveiro's guidelines and provides a simple CLI workflow around make and compatibility with Overleaf.
MIT License
103 stars 36 forks source link

Error building with make #22

Closed dvcorreia closed 2 years ago

dvcorreia commented 3 years ago

It seems that make build is presenting an error.

./matter.tex:81: LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.81 \usepackage{b
                  ookmark} % New Bookmarks
? 

It might be related to #20. I've tried to build #21 and it was ok. @Jpfonseca were you able to build it?

Jpfonseca commented 3 years ago

This is the only significant difference I got in the matter.tex . Keep in mind, I am using overleaf.

Other minor differences include:

4d3
< %\documentclass[11pt,a4paper,openright,final,twoside,onecolumn]{memoir}
22c21
< \def\useoverleaf{1}  % change to non-zero (for instance, 1) to enable it
---
> \def\useoverleaf{0}  % change to non-zero (for instance, 1) to enable it
41d39
< 
43c41,42
< % For custom date format
---
> 
> % Uncomment to use a custom date format
47d45
< 
85d82
< %\usepackage{pdfcomment}
112d108
< 
117c113
< \bibliography{bib/references.bib, bib/rfc.bib, bib/3gpp.bib}
---
> \bibliography{bib/references.bib, bib/rfc.bib}
214,215d209
< \selectlanguage{english}
< 
254,255d247
< %\chapterstyle{madsen}
pkill37 commented 3 years ago

Is this solved? @dvcorreia @Jpfonseca

aspedrosa commented 2 years ago

I also had the same error. If I understood correctly the ifthenelse command is missing the else block argument

This fixed for me:

\ifthenelse{\equal{\useoverleaf}{0}}
{\usepackage{pdfcomment}}
{}