标题页居中位置奇怪

标题页居中位置奇怪

我必须将论文的封面作为标题页插入,所以openright我猜它也会从页面的中心移动到。

扉页代码如下:

\begin{titlepage}
\begin{center}
{{\Large{\textsc{Alma Mater Studiorum $\cdot$ Universit\`a di
Bologna}}}} \rule[0.1cm]{15.8cm}{0.1mm}
\rule[0.5cm]{15.8cm}{0.6mm}
{\bf FACULTY OF ENGINEERING \\ Master degree in Electrical Engineering\\
\small{Curriculum:\\ Electronic systems for information processing}}
\end{center}
% [... more stuff]
\end{titlepage}

当将其用作封面时,效果很好,但如果我\include在论文中使用它,它就会奇怪地居中:

在此处输入图片描述

该文件的序言(不包括软件包)如下:

\documentclass[12pt, a4paper, titlepage, twoside, openright]{book}
\usepackage{graphicx}   %Figures management
\linespread{1.2}

我可以让它居中而不必将其作为pdf页面包含吗?

更好的是,我可以重复使用封面和标题页的代码,而只需在外部更改设置吗?

答案1

您可以使用geometry

\documentclass[12pt, a4paper, titlepage, twoside, openright]{book}
\usepackage[pass]{geometry}
\usepackage{graphicx}   %Figures management
\linespread{1.2}

\begin{document}
\newgeometry{margin=2cm}
\begin{titlepage}
\linespread{1}
\centering

{\Large\scshape Alma Mater Studiorum $\cdot$ Universit\`a di Bologna}

\rule[0.1cm]{15.8cm}{0.1mm}
\rule[0.5cm]{15.8cm}{0.6mm}

{\bfseries FACULTY OF ENGINEERING \\ Master degree in Electrical Engineering

\small Curriculum:\\ Electronic systems for information processing\par}

\vspace{15mm}

{\LARGE\bfseries Power consumption analysis\\
 for self diagnosis of\\
 Wireless Sensor Nodes\par}

\vspace{19mm}

{\large\bfseries Master thesis in Electronic Calculators M\par}

\vspace{40mm}

\begin{minipage}[t]{0.50\textwidth}
\bfseries Supervisors:\\
\large Prof. Tullio Salmon Cinotti \\ Dr. Syed Aly Aamer
\end{minipage}%
\hfill
\begin{minipage}[t]{0.47\textwidth}\raggedleft
\bfseries Author:\\
\large Claudio Bacchiani
\end{minipage}

\vfill

{\large\bfseries Session 1\\ Year 2011-2012}
\end{titlepage}
\restoregeometry

The rest of the document

\end{document}

pass选项不会改变类的默认参数,但允许使用\newgeometry

注意输入中的简化:\large\bfseries是声明,因此它们没有参数。请注意,这\bf已经过时了。

风格备注:在意大利语中,名字总是姓氏。谁要是说相反的话,那他就是个官僚。


您可以考虑使用该包frontespizio

\documentclass[a4paper]{book}

\usepackage{frontespizio}

\begin{document}

\begin{frontespizio}

\Istituzione{ALMA MATER STUDIORUM $\cdot$ UNIVERSIT\`A DI BOLOGNA}
\Divisione{Faculty of Engineering}
\Scuola{Master degree in Electrical Engineering\\
  Curriculum:\\
  Electronic systems for information processing}
\Titolo{Power consumption analysis \\
  for self diagnosis of \\
  Wireless Sensor Nodes}
\Sottotitolo{Master thesis in Electronic Calculators M}

\Candidato{Claudio Bacchiani}
\Relatore{Prof. Tullio Salmon Cinotti}
\Relatore{Dr. Syed Aly Aamer}

\NCandidato{Author}
\NRelatore{Advisor}{Advisors}
\Piede{Session 1 \\ Year 2011--2012}

\Margini{2.5cm}{1cm}{2.5cm}{2cm}


\end{frontespizio}

相关内容