I am using one info.tex
file that contains title, author names etc:
\author{my name}
\title{my title}
\date{\today}
I read this file in other files:
\documentclass{article}
\input{info}
\begin{document}
\maketitle
\end{document}
Now I have another file which has same author names etc., but the title is slightly different: With the previous title, I have to add "part II" (as if, \title{my title part II}
). Instead of rewriting the title again (as I have may files like this), I want to edit the title name from this document.
I tried
\makeatlettezr
\let\newtitle\@title
\makeatother
\renewcommand{\newtitle}{\@title part II}
\makeatletter
\renewcommand{\@title}{\newtitle}
\makeatother
but, as you expected, I got error. Can anyone help?
\makeatlettezr
, which doesn't exist, and the\makeatother
...\makeatletter
following that. Just start out with\makeatletter
and end with\makeatother
. Also, use\@title{} part II
to introduce a space after\@title
.