所以我正在为我的论文创建一个标题页,我正在使用 Classicthesis,我正在使用这个标题页作为草稿墨西哥国立自治大学 (UNAM) 论文标题页 (portada tesis UNAM)。我遇到的问题是标题页看起来很小并且不居中,我希望我的标题页适合整个页面。
这是我的标题页代码:
\documentclass[11pt,a4paper,titlepage]{book}
\usepackage[spanish,mexico]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{xcolor}
\begin{document}
%*******************************************************
% Titlepage
%*******************************************************
\begin{titlepage}
\thispagestyle{empty}
\fbox{
\begin{minipage}[c][0.1\textheight][c]{0.2\textwidth}
\begin{center}
% \includegraphics[width=1.2\textwidth]{gfx/Logo_ITC_cl.pdf}
\end{center}
\end{minipage}
}
\fbox{
\begin{minipage}[c][0.1\textheight][t]{0.65\textwidth}
\begin{center}
{\scshape{TECNOLOGICO NACIONAL DE MEXICO}}
\vspace{.3cm}
\hrule height2.5pt
\vspace{.1cm}
\hrule height1pt
\vspace{.3cm}
{\scshape {INSTITUTO TECNOLOGICO DE CELAYA}}
\end{center}
\end{minipage}
}
\fbox{
\begin{minipage}[c][0.6\textheight][t]{0.2\textwidth}
\begin{center}
\hskip2pt
\vrule width2.5pt height10cm
\hskip1mm
\vrule width1pt height10cm \\
%\includegraphics[width=1.5\textwidth]{gfx/Logo-TecNM.pdf}
\end{center}
\end{minipage}
}
\fbox{
\begin{minipage}[c][0.6\textheight][t]{0.65\textwidth}
\vspace*{1cm}
\begin{center}
{\Large \scshape {\begingroup \color{red}{myTitle}
\endgroup}}
\vspace{2cm}
\makebox[5cm][c]{\huge T \hspace{0.5cm} E \hspace{0.5cm} S \hspace{0.5cm} I \hspace{0.5cm} S } \\[8pt]
QUE PARA OBTENER EL TITULO DE:\\[5pt]
{\large{myDegree}}\\[40pt]
PRESENTA:\\[5pt]
{\large{myName}}
\vspace{1cm}
{TUTOR:\\ \large{{myProf}}}
\vspace{0.5cm}
myTime
\end{center}
\end{minipage}
}
\end{titlepage}
\end{document}
这是输出
我尝试使用\resizebox{\textwidth}{!}{content}
但发生了以下情况:
有任何想法吗?
John Kormylo 以非常精确的方式解决了这个问题。
我发现的另一个解决方案是将每个小页面置于 graphicx 包中的 scalebox{1.2}{content} 之间,它可以解决问题,但不如 John Kormylo 的方法那么敏锐和准确。
答案1
原始代码浪费了空间。此版本充分利用了所有空间。
\documentclass[11pt,a4paper,titlepage]{book}
\usepackage[spanish,mexico]{babel}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{xcolor}
%\usepackage{showframe}% show extent of text area
\newlength{\maxwidth}
\newlength{\maxheight}
\begin{document}
\setlength{\maxwidth}{\dimexpr \textwidth-4\fboxsep-4\fboxrule-\lineskip}%
\setlength{\maxheight}{\dimexpr \textheight-4\fboxsep-4\fboxrule-\lineskip}%
%*******************************************************
% Titlepage
%*******************************************************
\begin{titlepage}
\thispagestyle{empty}
\noindent\fbox{%
\begin{minipage}[c][0.1\maxheight][c]{0.25\maxwidth}
\begin{center}
% \includegraphics[width=1.2\textwidth]{gfx/Logo_ITC_cl.pdf}
\end{center}
\end{minipage}%
}\hskip\lineskip% symmetry
\fbox{%
\begin{minipage}[c][0.1\maxheight][c]{0.75\maxwidth}
\begin{center}
{\scshape{TECNOLOGICO NACIONAL DE MEXICO}}
\vspace{.3cm}
\hrule height2.5pt
\vspace{.1cm}
\hrule height1pt
\vspace{.3cm}
{\scshape {INSTITUTO TECNOLOGICO DE CELAYA}}
\end{center}
\end{minipage}%
}\allowbreak
\fbox{%
\begin{minipage}[c][0.9\maxheight][t]{0.25\maxwidth}
\begin{center}
\hskip2pt
\vrule width2.5pt height0.9\maxheight
\hskip1mm
\vrule width1pt height0.9\maxheight \\
%\includegraphics[width=1.5\textwidth]{gfx/Logo-TecNM.pdf}
\end{center}
\end{minipage}%
}\hskip\lineskip
\fbox{%
\begin{minipage}[c][0.9\maxheight][c]{0.75\maxwidth}
\vspace*{1cm}
\begin{center}
{\Large \scshape {\begingroup \color{red}{myTitle}
\endgroup}}
\vspace{2cm}
\makebox[5cm][c]{\huge T \hspace{0.5cm} E \hspace{0.5cm} S \hspace{0.5cm} I \hspace{0.5cm} S } \\[8pt]
QUE PARA OBTENER EL TITULO DE:\\[5pt]
{\large{myDegree}}\\[40pt]
PRESENTA:\\[5pt]
{\large{myName}}
\vspace{1cm}
{TUTOR:\\ \large{{myProf}}}
\vspace{0.5cm}
myTime
\end{center}
\end{minipage}%
}
\end{titlepage}
\end{document}