我正在使用自定义类 ecsthesis.cls 撰写论文(可在此处获得https://www.sharelatex.com/templates/thesis/university-of-southampton-thesis/)。我想添加大学徽标,以便获得类似
我正在使用 \maketitle 来制作首页,它应该是 .cls
\renewcommand\maketitle{
\btypeout{Title Page}
\hypersetup{pdftitle={\@title}}
\hypersetup{pdfsubject=\subjectname}
\hypersetup{pdfauthor=\authornames}
\hypersetup{pdfkeywords=\keywordnames}
\thispagestyle{empty}
\begin{titlepage}
\let\footnotesize\small
\let\footnoterule\relax
\let \footnote \thanks
\setcounter{footnote}{0}
\null\vfil
\vskip 60\p@
\begin{center}
\setlength{\parskip}{0pt}
{\large\textbf{\UNIVNAME}\par}
\bigskip
{\normalsize \FACNAME \par}
\smallskip
{\normalsize \deptname \par}
\vfill
\bigskip
\bigskip
\bigskip
\bigskip
{\large \bf \@title \par}
\bigskip
{\Large by \par}
\bigskip
\bigskip
{\large \textbf{\authornames} \par}
\vfill
{\large Thesis for the degree of Doctor of Philosophy\par}
\bigskip
\bigskip
\bigskip
{\large \@date \par}
\bigskip
\end{center}
\par
\@thanks
\vfil\null
\end{titlepage}
\setcounter{footnote}{0}%
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
\cleardoublepage
}
我该如何重新定义它以包含徽标?
这是我的 MWE
\documentclass[twoside]{ecsthesis} % Use the Thesis Style
\graphicspath{{../Figures/}} % Location of your graphics files
\usepackage[toc,page]{appendix}
\usepackage[sort &compress]{natbib} % Use Natbib style for the refs.\part{title}
\usepackage{amssymb}
\usepackage[noprefix]{nomencl}
\usepackage{chemmacros}
\usepackage{chngcntr}
\counterwithin{reaction}{chapter}
%\usepackage{mhchem}
\usepackage{longtable}
\usepackage{wasysym}
\usepackage{hyperref}
\usepackage{cleveref}
%\usepackage{caption}
\usepackage{upgreek}
\usepackage{epigraph}
\usepackage{tipa}
%\captionsetup{labelsep=space,justification=justified,singlelinecheck=off}
\usepackage{array}
\usepackage{minitoc}
\usepackage{multirow}
\usepackage{rotating}
%
%
\setlength\epigraphwidth{8cm}
\setlength\epigraphrule{0pt}
\setlength{\parindent}{1cm}
%% ----------------------------------------------------------------
\begin{document}
\frontmatter
\title {Three years wasted}
\authors {\texorpdfstring
{\href{[email protected]}{Mickey Mouse}}
{Mickey Mouse}
}
\department {}
\group {}
\addresses {\groupname\\\deptname\\\univname}
\date {\today}
\subject {}
\keywords {}
\maketitle
\begin{abstract}
blablabla
\end{abstract}
\tableofcontents
\listoffigures
\listoftables
\cleardoublepage
%% -----------------------
%% lstpatch.sty
%% -----------------------
%% lstpatch cannot be distributed with these files. I believe it is only needed if the
%% \lstlistoflistings is used. So this has been turned off by default. Re-add if required:
%% \usepackage{lstpatch}
%% \lstlistoflistings
%% You will need to download lstpatch, possibly from:
%% http://web.mit.edu/texsrc/source/latex/listings/lstpatch.sty
%% -----------------------
% -----------------------
% Authorship declaration
% -----------------------
% Either include citations like below (as many as required spaced with commas or 'and').
\authorshipdeclaration{}
% Or state no citations like below
% \authorshipdeclaration{}
\mainmatter
\include{Introduction}
\include{LitteratureRewiev}
\backmatter
\bibliographystyle{apalike}
\bibliography{ECS}
\end{document}
答案1
我找不到合适的ecsthesis.cls
。因此我的测试可能不可靠。但是,以下内容可能会有所帮助:
\makeatletter
\renewcommand\maketitle{
\btypeout{Title Page}
\hypersetup{pdftitle={\@title}}
\hypersetup{pdfsubject=\subjectname}
\hypersetup{pdfauthor=\authornames}
\hypersetup{pdfkeywords=\keywordnames}
\thispagestyle{empty}
\begin{titlepage}
\let\footnotesize\small
\let\footnoterule\relax
\let \footnote \thanks
\setcounter{footnote}{0}
\null\vfil
\vskip 60\p@
\begin{center}
\setlength{\parskip}{0pt}
{\large\textbf{\UNIVNAME}\\[2em] %% change 2em as needed
\includegraphics[width=2cm]{logo}\par} %% note includegraphics, logo is the file name of logo
\bigskip
{\normalsize \FACNAME \par}
\smallskip
{\normalsize \deptname \par}
\vfill
\bigskip
\bigskip
\bigskip
\bigskip
{\large \bf \@title \par}
\bigskip
{\Large by \par}
\bigskip
\bigskip
{\large \textbf{\authornames} \par}
\vfill
{\large Thesis for the degree of Doctor of Philosophy\par}
\bigskip
\bigskip
\bigskip
{\large \@date \par}
\bigskip
\end{center}
\par
\@thanks
\vfil\null
\end{titlepage}
\setcounter{footnote}{0}%
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\title\relax
\global\let\author\relax
\global\let\date\relax
\global\let\and\relax
\cleardoublepage
}
\makeatother
您可能需要适当调整间距。