LaTeX 在论文首页添加 2 个徽标

LaTeX 在论文首页添加 2 个徽标

我如何添加这两张图片(图片 1图片 2)在我的第一篇论文页面的右侧。页面顶部已经有一个徽标。我正在使用模板这是我现在正在查看的代码部分:

\documentclass[11pt,a4paper,twoside,openright]{report}

\usepackage[utf8]{inputenc}


%% English version
%% MIEEC options

\usepackage[mieec]{feupteses}

%\usepackage[mieec,juri]{feupteses}

%\usepackage[mieec,final]{feupteses}

\usepackage{enumitem}

\usepackage{amsmath,xparse}

\usepackage[T1]{fontenc}

\usepackage{eurosym}

\usepackage{graphicx}

\usepackage{subfig}

%\usepackage{color}

\usepackage{xcolor}

\usepackage{relsize}

\usepackage{multirow}

\usepackage{hhline}

\usepackage{colortbl}

%% Path to the figures directory

%% TIP: use folder ``figures'' to keep all your figures
\graphicspath{{figures/}}



%% Start of document

\begin{document}

%%----------------------------------------
%% Information about the work
%%----------------------------------------
\title{this is where to put the title of the thesis}
\author{it's me}

%% Uncomment next line for date of submission

\thesisdate{Academic year, 1999 - 1999}

%% Comment next line copyright text if not used

\copyrightnotice{author, 2018}

\supervisor{Supervisor}{blablabla, PhD}

%% Uncomment next line if necessary

\supervisor{Co-supervisors}{blablabla, PhD - blablabla, PhD}

%% Uncomment committee stuff in the final version if used
%\committeetext{Approved by \ldots:}
%\committeemember{Co-supervisor}{blablabla}
%\committeemember{Referee}{Name of the Referee}
%\committeemember{Referee}{Name of the Referee}

%\signature

%% Specify cover logo (in folder ``figures'')

\logo{thisone.pdf}

%\newcommand{\logo}[2][3]{\includegraphics[scale=#1]{#2}}

告诉我如何才能更精确地为您提供更多帮助。如果我遗漏了一些重要功能,我很抱歉,但我对 LaTeX 还很陌生。

答案1

如果您查看文件,feupteses.sty您可以找到以下代码,将定义的徽标添加到标题页:

\vspace*{35mm}%
\hbox to \textwidth{%
  \setbox\@crestbox=\vbox{\includegraphics[width=72mm]{\@logo}}% <=================
\box\@crestbox%
}

现在你可以使用

\def\logoa#1{\gdef\@logoa{#1}} % <======================================

然后将插入徽标的代码更改为

\vspace*{35mm}%
\hbox to \textwidth{%
  \setbox\@crestbox=\vbox{\includegraphics[width=72mm]{\@logo}\hfill\includegraphics[width=72mm]{\@logoa}}% <=================
\box\@crestbox%
}

的新定义maketitle可以添加到你的序言中,用命令\makeatletter和括起来\makeatother。使用以下 MWE(重要的代码更改以 标记<=======

%% FEUP THESIS STYLE for LaTeX2e
%% how to use feupteses (English version)
%%
%% FEUP, JCL & JCF, 31 July 2012
%%
%% PLEASE send improvements to jlopes at fe.up.pt and to jcf at fe.up.pt
%%

%%========================================
%% Commands: pdflatex tese
%%           bibtex tese
%%           makeindex tese (only if creating an index) 
%%           pdflatex tese
%% Alternative
%%          latexmk -pdf tese.tex
%%========================================

\documentclass[11pt,a4paper,twoside,openright]{report}

%% For iso-8859-1 (latin1), comment next line and uncomment the second line
\usepackage[utf8]{inputenc}
%\usepackage[latin1]{inputenc}

%% English version

%% MIEEC options
\usepackage[mieec]{feupteses}
%\usepackage[mieec,juri]{feupteses}
%\usepackage[mieec,final]{feupteses}


%% Additional options for feupteses.sty:
%% - onpaper: links are not shown (for paper versions)
%% - backrefs: include back references from bibliography to citation  place

%% Uncomment to create an index (at the end of the document)
%\makeindex

%% Path to the figures directory
%% TIP: use folder ``figures'' to keep all your figures
\graphicspath{{figures/}}

%%----------------------------------------
%% TIP: if you want to define more macros, use an external file to keep them
\include{mymacros}
%%----------------------------------------

\makeatletter % <=======================================================
\def\logoa#1{\gdef\@logoa{#1}} % <======================================
%% Front pages
\def\maketitle{%
\newbox\@crestbox

%% TITLE page
\begin{titlepage}
{\vspace{-15mm}\Large\bf \textsc{\@school}}

\vspace*{35mm}%
\hbox to \textwidth{%
  \setbox\@crestbox=\vbox{\includegraphics[width=72mm]{\@logo}\hfill\includegraphics[width=72mm]{\@logoa}}% <=================
\box\@crestbox%
}
\vspace*{30mm}%
{\def\baselinestretch{1.2}\Huge\bf \@title \par}
\vskip 10mm%
{\Large\bf \@author}%
\if@watermark
\relax
\else
\vskip 10mm%
{\Large\textsc \@provisionaltext}
\fi
\vfill%
{\large \@degree}%
\vskip 2mm
\unvbox\@supervisorstext
\vskip 10mm
\@thesisdate
\end{titlepage}%

%% copyright page
\ifx\@copyrightnotice\@empty
  \relax
\else
  \vspace*{\fill}
  \par
  \begin{center}
    \@copyrightnotice
  \end{center}
\fi
\clearpage
} % maketitle
\makeatother % <========================================================

%%========================================
%% Start of document
%%========================================
\begin{document}

%%----------------------------------------
%% Information about the work
%%----------------------------------------
\title{Title of the Dissertation}
\author{Name of the Author}

%% Uncomment next line for date of submission
\thesisdate{July 31, 2008}

%% Comment next line copyright text if not used
\copyrightnotice{Name of the Author, 2008}

\supervisor{Supervisor}{Name of the Supervisor}

%% Uncomment next line if necessary
\supervisor{Second Supervisor}{Name of the Supervisor}

%% Uncomment committee stuff in the final version if used
%\committeetext{Approved by \ldots:}
%\committeemember{President}{Name of the President}
%\committeemember{Referee}{Name of the Referee}
%\committeemember{Referee}{Name of the Referee}
%\signature

%% Specify cover logo (in folder ``figures'')
%\logo{uporto-feup.pdf}
\logo{logo.png}
\logoa{logo2.png} % <===================================================

%% Uncomment next line for additional text  below the author's name (front page)

%%----------------------------------------
%% Preliminary materials
%%----------------------------------------

% remove unnecessary \include{} commands
\begin{Prolog}
  \include{abstract} % the abstract
  \include{acknows}  % the acknowledgments
  \include{quote}    % initial quotation if desired
  \cleardoublepage
  \pdfbookmark[0]{Table of Contents}{contents}
  \tableofcontents
  \cleardoublepage
  \pdfbookmark[0]{List of Figures}{figures}
  \listoffigures
  \cleardoublepage
  \pdfbookmark[0]{List of Tables}{tables}
  \listoftables
  \include{abbrevs}  % the list of abbreviations used
\end{Prolog}

%%----------------------------------------
%% Body
%%----------------------------------------
\StartBody

%% TIP: use a separate file for each chapter
\include{chapter1} 
\include{chapter2}
\include{chapter3}
\include{chapter4}
\include{chapter5} 

%% comment next 2 commands if numbered appendices are not used
\appendix
\include{appendix1}

%%----------------------------------------
%% Final materials
%%----------------------------------------

%% Bibliography
%% Comment the next command if BibTeX file not used
%% bibliography is in ``myrefs.bib''
\PrintBib{myrefs}

%% Index
%% Uncomment next command if index is required
%% don't forget to run ``makeindex thesis'' command
%\PrintIndex

\end{document}

您将获得以下结果标题页:

生成的 pdf 标题页

相关内容