LaTeX forum ⇒ Theses, Books, Title pagesProblem 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

Postby PauJuan » Tue Jul 25, 2017 2:00 pm

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:
  1. ("C:\Users\XXXX\AppData\Local\Programs\MiKTeX 2.9\tex\generic\oberdiek\atbegshi.sty"))
  2. ! Missing number, treated as zero.
  3. <to be read again>
  4. -
  5. l.81 ...end of thesis title}
  6. % Your thesis title, this...
  7.  
  8. ?


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:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8460
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Tue Jul 25, 2017 2:13 pm

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
Site admin

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

Postby PauJuan » Tue Jul 25, 2017 3:27 pm

Hi Stefan,

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

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


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:

  1. \documentclass[11pt, english, singlespacing, headsepline]{MastersDoctoralThesis}
  2.  
  3. \usepackage[utf8]{inputenc} % Required for inputting international characters
  4. \usepackage[T1]{fontenc} % Output font encoding for international characters
  5.  
  6. \thesistitle{Thesis title}
  7.  
  8. \begin{document}
  9. \begin{titlepage}
  10.  
  11. \HRule \\[0.4cm] % Horizontal line
  12. {\huge \bfseries \ttitle\par}\vspace{0.4cm} % Thesis title
  13. \HRule \\[1.5cm] % Horizontal line
  14.  
  15. \end{titlepage}
  16. \end{document}


Thanks for your help!

User avatar
Johannes_B
Site Moderator
Posts: 3551
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Jul 25, 2017 3:31 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

Postby PauJuan » Tue Jul 25, 2017 3:47 pm

Sorry! The Crosspost has been updated and referenced in both places :)

JDoe
Posts: 1
Joined: Mon Jul 31, 2017 1:49 pm

Postby JDoe » Mon Jul 31, 2017 1:50 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

Postby ajd-brown » Mon Jul 31, 2017 2:03 pm

I'm having the same problem, just downloaded the fresh template and tried to compile but got the missing number error!

User avatar
Johannes_B
Site Moderator
Posts: 3551
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jul 31, 2017 2:58 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.

User avatar
Vel
Site Moderator
Posts: 451
Joined: Fri Jun 29, 2012 1:20 am
Location: Sydney, Australia
Contact:

Postby Vel » Mon Jul 31, 2017 3:45 pm

Happy to update it if someone points me to the solution.
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com

User avatar
Johannes_B
Site Moderator
Posts: 3551
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jul 31, 2017 3:56 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.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 3 guests