1

I use a Latex class for my thesis which contain the following code (XeLATEX compiler):

thesis.Cls

\ProvidesClass{thesis}  
\LoadClass{article}  
\RequirePackage{etoolbox}
\newif\if@bscthesis
\@bscthesisfalse
\DeclareOption{bsc}{\@bscthesistrue}
\newif\if@mscthesis
\@mscthesisfalse
\DeclareOption{msc}{\@mscthesistrue}
\ProcessOptions
\patchcmd{\@maketitle}{\@title}{

\if@mscthesis
MSC Thesis
\else
\if@bscthesis
BSC Project
\else
Doctoral Thesis
\fi\fi}{}{}
\endinput

document.tex

\documentclass[msc]{Test}  
\title{A great article}  
\begin{document}  
    \maketitle  
\end{document}

I want to change MSC Thesis Name outside of this Latex class But I don't know how to do it.

0
2

Do similarly to the class: in the preamble do

\makeatletter
\patchcmd{\@maketitle}{MSC Thesis}{Whatever you'd like}{}{}
\makeatother

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy