Theses, Books, Title pagesMaster-doctoral-thesis template not compiling after updating Miktex

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
rj2585
Posts: 2
Joined: Thu Feb 16, 2017 12:39 am

Master-doctoral-thesis template not compiling after updating Miktex

Post by rj2585 »

I am trying to use the template for a thesis found at http://www.latextemplates.com/template/ ... ral-thesis . The package worked fine for me on overleaf, but the project got to big to manage there. I downloaded the zip file to open it on TexStudio and it compiled fine until I updated the Tex packages in Tex Live (I am using MacTex but the same happened with MikTex after updating in Windows). After the update, when I compile the project, I get the following error:

Code: Select all

Missing \endcsname inserted.
<to be read again> 
                   \tex_let:D 
l.164 \cleardoublepage
                      
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.
This error appears every time commands like \cleardoublepage, \chapter, \begin{abstract}, \tableofcontents and others are called.

The log file is included as an attachment as well as the template from latextemplates.

Thank you for your help.
Attachments
thesis_1.zip
(313.66 KiB) Downloaded 252 times
main.log
(100.23 KiB) Downloaded 351 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

BlackForestrian

Master-doctoral-thesis template not compiling after updating Miktex

Post by BlackForestrian »

The issue is related to the recent (2017/10/02) update of the xparse and l3kernel packages, leading to an error with commands defined with

Code: Select all

\NewDocumentCommand
.

The precise reason is yet unclear.

As a bypass, add this code in your preamble:

Code: Select all

\makeatletter
\AtBeginDocument{
  \renewcommand{\blank@p@gestyle}{empty}
}
\makeatother
rj2585
Posts: 2
Joined: Thu Feb 16, 2017 12:39 am

Master-doctoral-thesis template not compiling after updating Miktex

Post by rj2585 »

That solved the problem.
Thank you very much.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Master-doctoral-thesis template not compiling after updating Miktex

Post by Johannes_B »

With the next update, everything should be working like before without the hack.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply