你能帮我格式化标题页(封面页)吗?这是我的博士论文。我必须遵循这个例子https://www.dropbox.com/s/clexb8dauxom2k4/tamplate.jpg...为此,我使用了这些代码作为标题页
\begin{titlepage}
\pagecolor{gray}\afterpage{\nopagecolor}
%Cover image
\begin{center}
\includegraphics[width=0.8\textwidth]{images.eps}
\end{center}
%Autor name
\begin{center}
\vspace*{2cm}
{\LARGE\bf Gilson Manuel Gomes Pina}
%Thesis title
\vspace*{1.2cm}
{\Huge \bf Monetary and Fiscal Policy and Business Cycles in Emerging Markets}
\vspace*{1.2cm}
{\small PhD thesis in economics, specializing in Monetary Economics, supervised by Professor Pedro Bação and Professor Ricardo Sousa and presented to the Faculty of Economics, University of Coimbra.}
\vspace*{1.0cm}
{\small September 2014}
\end{center}
\vspace*{1.6cm}
\begin{center}
\includegraphics[width=0.3\textwidth]{insigniafeuc.eps}
\end{center}
\begin{center}
\textsc{\small Faculty of Economics, University of Coimbra}
\end{center}
\end{titlepage}
对于我的完整论文汇编,我使用的是:
\documentclass{dmathesis}
%% uncommand the following line to print equation labels next to
%% equation numbers.
\usepackage{lipsum}% for auto generating text
\usepackage{xcolor}
\usepackage{showlabel}
%% The following is to control the format of the thesis
\input{format}
%% File to be included while running latex.
\includeonly{chapter1,chapter2,chapter3%
,chapter4,chapter5,chapter6,ref,append}
\begin{document}
%% Front page of thesis
\input{coverpage}
\input{frontpage}
%% Main text
% set page number starts from 1
\pagenumbering{arabic}
\setcounter{page}{1}
%% To ensure the equation counter works correctly
\eqlabon
\eqlaboff
\include{chapter1}
\include{chapter2}
\include{chapter3}
\include{chapter4}
\include{chapter5}
\include{chapter6}
\include{ref}
\include{append}
\end{document}
所以,问题是:第一个问题,我需要在封面页中包含“彩色页面”,但它会出现在整篇论文中。我尝试了网络上的许多示例,但都行不通。我该怎么做?第二个问题,我怎样才能让图像占据封面页的整个顶部,就像示例中那样?谢谢你的帮助。
答案1
我已经使用过该book
课程,但它也适用于你的课程。
\documentclass{book}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{afterpage}
\usepackage[a4paper,margin=1in]{geometry}
\begin{document}
\newgeometry{centering,top=0in}
\begin{titlepage}
\pagecolor{gray}
\afterpage{\pagecolor{white}}
%Cover image
\centering
\noindent
\makebox[0pt]{%
\includegraphics[width=\paperwidth,height=0.4\textheight]{example-image-a}%
}
%Author name
\vspace*{2cm}
{\LARGE\bf Gilson Manuel Gomes Pina\par}
%Thesis title
\vspace*{1.2cm}
{\Huge \bf Monetary and Fiscal Policy and Business Cycles in Emerging Markets \par}
\vspace*{1.2cm}
{\small PhD thesis in economics, specializing in Monetary Economics, supervised by Professor
Pedro Bação and Professor Ricardo Sousa and presented to the Faculty of Economics, University
of Coimbra. \par}
\vspace*{1.0cm}
{\small September 2014 \par}
\vspace*{1.6cm}
\includegraphics[width=0.3\textwidth]{example-image-b}
\textsc{\small Faculty of Economics, University of Coimbra}
\par
\end{titlepage}
\cleardoublepage
Some text
\end{document}
所属dmathesis
类别:
\documentclass{dmathesis}
\usepackage{xcolor}
\usepackage[math]{blindtext} %% for demo
\usepackage{graphicx}
\usepackage{afterpage}
\usepackage[pass]{geometry} %% pass in important
\begin{document}
%% cover.tex starts--------------------------
\newgeometry{centering,top=0in}
\begin{titlepage}
\pagecolor{gray}
\afterpage{\pagecolor{white}}
%Cover image
\centering
\setlength{\hoffset}{0in}
\noindent
\makebox[0pt]{%
\includegraphics[width=\paperwidth,height=0.5\textheight]{example-image-a}%
}
%Author name
\vspace*{1cm}
{\LARGE\bf Gilson Manuel Gomes Pina\par}
%Thesis title
\vspace*{0.75cm}
{\Huge \bf Monetary and Fiscal Policy and Business Cycles in Emerging Markets \par}
\vspace*{0.75cm}
{\small PhD thesis in economics, specializing in Monetary Economics, supervised by Professor
Pedro Bação and Professor Ricardo Sousa and presented to the Faculty of Economics, University
of Coimbra. \par}
\vspace*{0.5cm}
{\small September 2014 \par}
\vspace*{1.1cm}
\includegraphics[width=0.3\textwidth]{example-image-b}
\textsc{\small Faculty of Economics, University of Coimbra}
\par
\end{titlepage}
\cleardoublepage %% imp
\restoregeometry %% imp
%% cover.tex ends--------------------------
\Blinddocument %% for demo
\end{document}