Skip to content

Commit 92fa681

Browse files
committed
Automatically insert author name when using a custom declaration.
1 parent 5a6a9cc commit 92fa681

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/infthesis.cls

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -561,18 +561,18 @@ Processing}}
561561
{\renewcommand{\abstractname}{Acknowledgements}\begin{mainabs}}
562562
{\end{mainabs}\renewcommand{\abstractname}{Abstract}}
563563
564-
\newenvironment{declaration}
565-
{\renewcommand{\abstractname}{Declaration}\begin{mainabs}}
566-
{\end{mainabs}\renewcommand{\abstractname}{Abstract}}
564+
\newenvironment{declaration}[1][\@author]
565+
{\def\AuthorName{#1}\renewcommand{\abstractname}{Declaration}\begin{mainabs}}
566+
{\par\vspace{0.5in}\raggedleft (\em \AuthorName)\end{mainabs}%
567+
\renewcommand{\abstractname}{Abstract}}
567568
568569
\newcommand{\standarddeclaration}{
569570
\begin{declaration}
570571
I declare that this thesis was composed by myself,
571572
that the work contained herein is my own
572573
except where explicitly stated otherwise in the text,
573574
and that this work has not been submitted for any other degree or
574-
professional qualification except as specified.\par
575-
\vspace{1in}\raggedleft({\em \@author\/})
575+
professional qualification except as specified.
576576
\end{declaration}
577577
}
578578

0 commit comments

Comments
 (0)