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

Post by PauJuan »

I have downloaded the fantastic template for doctoral thesis available in: https://www.latextemplates.com/template ... ral-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:

Code: Select all

("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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Problem with \thesistitle in Masters/Doctoral Thesis template

Post by Stefan Kottwitz »

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
LaTeX.org admin
PauJuan
Posts: 3
Joined: Tue Jul 25, 2017 1:56 pm

Problem with \thesistitle in Masters/Doctoral Thesis template

Post by PauJuan »

Hi Stefan,

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

Code: Select all

("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:

Code: Select all

\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}
Thanks for your help!
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with \thesistitle in Masters/Doctoral Thesis template

Post by Johannes_B »

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

Problem with \thesistitle in Masters/Doctoral Thesis tempalte

Post by PauJuan »

Sorry! The Crosspost has been updated and referenced in both places :)
JDoe
Posts: 1
Joined: Mon Jul 31, 2017 1:49 pm

Problem with \thesistitle in Masters/Doctoral Thesis tempalte

Post by JDoe »

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

Problem with \thesistitle in Masters/Doctoral Thesis tempalte

Post by ajd-brown »

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: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with \thesistitle in Masters/Doctoral Thesis tempalte

Post by Johannes_B »

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: 463
Joined: Fri Jun 29, 2012 1:20 am

Problem with \thesistitle in Masters/Doctoral Thesis tempalte

Post by Vel »

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: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Problem with \thesistitle in Masters/Doctoral Thesis tempalte

Post by Johannes_B »

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.
Locked