LaTeX forum ⇒ Theses, Books, Title pages ⇒ Problem with \thesistitle in Masters/Doctoral Thesis template

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
PauJuan
Posts: 3
Joined: Tue Jul 25, 2017 1:56 pm

Problem with \thesistitle in Masters/Doctoral Thesis template

I have downloaded the fantastic template for doctoral thesis available in: https://www.latextemplates.com/template/masters-doctoral-thesis.

I have used it before I had already adapted the contents for my thesis. However, when I tried to compile it with MiKTeX after the last update I got this problem:
("C:\Users\XXXX\AppData\Local\Programs\MiKTeX 2.9\tex\generic\oberdiek\atbegshi.sty"))! Missing number, treated as zero.<to be read again>                -l.81 ...end of thesis title}                                               % Your thesis title, this... ?

The problem seems to be within the \thesistitle command. However I have checked the .cls file and I can't see any problem with it. I downloaded the original from LaTeXtemplates and got the same results.

Any help is greatly appreciated.

Tags:

Stefan Kottwitz
Posts: 8523
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:
Hi PauJuan,

welcome to the forum!

The current version of that template works fine, I just checked it. I think you changed something, that caused the issue. What is the code that you changed? For example, the original line is

\thesistitle{Thesis Title} % Your thesis title, this is used ...

but your line is already different: the title is different. And it is line 81, originally it is in line 70, so you may have moved it or inserted something above. Please post the code lines you modified yourself.

Stefan

PauJuan
Posts: 3
Joined: Tue Jul 25, 2017 1:56 pm
Hi Stefan,

I tried with the original template, newly downloaded, and I got the same error:

("C:\Users\XXXX\AppData\Local\Programs\MiKTeX 2.9\tex\latex\csquotes\csquotes.cfg"))! Missing number, treated as zero.<to be read again>                    -l.70 \thesistitle{Thesis Title}                                % Your thesis title, this is used in the tit... ?

I have also reinstalled MiKTeX. Is it only my laptop then?

I have also created a minimal working example that gives the exact same error than the original:

\documentclass[11pt, english, singlespacing, headsepline]{MastersDoctoralThesis} \usepackage[utf8]{inputenc} % Required for inputting international characters\usepackage[T1]{fontenc} % Output font encoding for international characters \thesistitle{Thesis title}  \begin{document}\begin{titlepage} \HRule \\[0.4cm] % Horizontal line{\huge \bfseries \ttitle\par}\vspace{0.4cm} % Thesis title\HRule \\[1.5cm] % Horizontal line \end{titlepage}\end{document}

Johannes_B
Site Moderator
Posts: 3583
Joined: Thu Nov 01, 2012 4:08 pm
Crosspost on TeX.SX.

Why aren't you updating the question there? Why aren't you properly linking your duplicate question? Have you been asking the question anywhere esle?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

PauJuan
Posts: 3
Joined: Tue Jul 25, 2017 1:56 pm
Sorry! The Crosspost has been updated and referenced in both places

JDoe
Posts: 1
Joined: Mon Jul 31, 2017 1:49 pm
Are there any updates on the solution? I have the exactly same problem.

Thank you.

ajd-brown
Posts: 1
Joined: Mon Jul 31, 2017 2:02 pm
I'm having the same problem, just downloaded the fresh template and tried to compile but got the missing number error!

Johannes_B
Site Moderator
Posts: 3583
Joined: Thu Nov 01, 2012 4:08 pm
The workaround can be found in the crosspost above.
The template hasn't been updated yet, sorry for the inconvenience.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Vel
Site Moderator
Posts: 451
Joined: Fri Jun 29, 2012 1:20 am
Location: Sydney, Australia
Contact:
Happy to update it if someone points me to the solution.
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com

Johannes_B
Site Moderator
Posts: 3583
Joined: Thu Nov 01, 2012 4:08 pm
Working on it, a few more things to deal with. I'll need a few more days.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.