顶部对齐-迷你页面

顶部对齐-迷你页面

我参考了之前关于使用 minipage 时顶部对齐的问题。但是,仍然无法解决问题。我猜我的代码中还有其他问题。这里给出了简化版本。确切的问题是文本导师应该放在顶部,然后....... J Braun 博士应该相应地对齐(参见图片)。有人可以指出代码中的错误吗?

\documentclass[12pt,oneside]{report}
\usepackage[byname]{smartref}
\usepackage{libertine}
\usepackage[libertine]{newtxmath}
\usepackage[T1]{fontenc}
\usepackage{setspace}

\makeatletter

\newenvironment{preliminary}%
{\pagestyle{plain}\pagenumbering{roman}}%
{\pagenumbering{arabic}}

% Set up page layout.
\setlength{\textheight}{9in} % Height of the main body of the text
\setlength{\topmargin}{-.5in} % .5" margin on top of page
\setlength{\headsep}{.5in}  % space between header and top of body
\addtolength{\headsep}{-\headheight} % See The LaTeX Companion, p 85
\setlength{\footskip}{.5in}  % space between footer and bottom of body
\setlength{\textwidth}{6.25in} % width of the body of the text
\setlength{\oddsidemargin}{.25in} % 1.25" margin on the left for odd pages
\setlength{\evensidemargin}{0in} % 1.25"  margin on the right for even pages

\raggedbottom

\def\normalspacing{1.25} % default line spacing

\newcommand\isdefinedsig[1]{%
  \edef\@tempa{#1}%
  \def\@tempb{}%
  \ifx\@tempa\@tempb
    \else \\ \dots\dots\dots\dots\dots\dots\dots\\{#1}\\
  \fi
}

\newcommand{\blank}{\hspace{-2mm}}
\newcommand{\super}{Dr. J Braun} %supervisor
\newcommand{\examo}{Dr. Aiham Naqvi}  %examining committee (up to four, if less leave blank)
\newcommand{\examt}{Dr. G. Kirloskar}
\newcommand{\examth}{Dr. D. Bing}
\newcommand{\examf}{Dr. A. Shing}
\newcommand{\department}{Civil and Environmental Engineering}
\newcommand{\degree}{Masters of Engineering Science}
\newcommand{\firstname}{Kumar}
\newcommand{\middlename}{Vishwas}
\newcommand{\lastname}{Om}
%\renewcommand{\author}[1]{\ifx\empty#1\else\gdef\@author{#1}\fi} 
\newcommand{\authorname}{{\firstname} {\middlename} {\lastname}}
\newcommand{\titl}{Design and implementation of Wind Turbine Foundations \protect\\ subjected to Combined Loading}
\newcommand{\thesisformat}{Monograph} %or Integrated Article
\newcommand{\gyear}{\number\year}

\newcommand{\makecert}{
   \setcounter{page}{1}
\vfill
\begin{center}
\large
THE UNIVERSITY OF XXXX XXXXXX\\
School of Graduate and Postdoctoral Studies\\
\vfill
\textbf{CERTIFICATE OF EXAMINATION}
\end{center}
\vfill
\begin{table}[ht]
\begin{minipage}[t]{0.5\linewidth} %tabular instead?

\begin{tabular}{l}
\underline{Supervisor:}\vspace{0.35in}
\isdefinedsig{\super}
\\
\end{tabular}
\vfill
\end{minipage}
%\hfill
\hspace{0.5in}
\begin{minipage}[t]{0.5\linewidth}
\begin{tabular}{l}
\underline{Examiners:} \\\vspace{.5cm}
\isdefinedsig{\examo}\\
\isdefinedsig{\examt}\\
\isdefinedsig{\examth}\\
\isdefinedsig{\examf}
\end{tabular}
\vfill
\end{minipage}
\vfill
\end{table}
\vfill
\begin{center}
The thesis by \\ \vfill
\textbf{\firstname{} \middlename{} \underline{\lastname}}\\
\vfill
entitled:\\ \vfill
\textbf{\titl}\\\vfill
is accepted in partial fulfillment of the \\
requirements for the degree of\\
\degree\\
\end{center}
\begin{table}[ht]
\begin{minipage}[t]{0.5\linewidth}
\begin{tabular}{l}
\dots\dots\dots\dots\dots\\
Date
\end{tabular}
\end{minipage}
\hspace{0.5in}
\begin{minipage}[t]{0.4\linewidth}
\begin{tabular}{l}
\dots\dots\dots\dots\dots\dots\dots\dots\dots\dots\\
Chair of the Thesis Examination \\Board
\end{tabular}
\end{minipage}
\end{table}
}

\makeatother

\begin{document}
\begin{preliminary}
\makecert
\end{preliminary}
\end{document}

我得到的输出是: 在此处输入图片描述

有人能帮忙吗?另外,我还收到一条警告,说 \hbox 超出 40 pts。

答案1

table两个minipage环境都不需要。保留这两个tabular环境,为每个环境提供一个[t]定位说明符,并通过在它们之间插入一条指令来最大限度地扩展它们\hfill

....
\noindent
\begin{tabular}[t]{@{}l}
\underline{Supervisor:}\vspace{0.35in}
\isdefinedsig{\super}\\
\end{tabular}
\hfill
\begin{tabular}[t]{l@{}}
\underline{Examiners:} \\ \vspace{.5cm}
\isdefinedsig{\examo}\\
\isdefinedsig{\examt}\\
\isdefinedsig{\examth}\\
\isdefinedsig{\examf}
\end{tabular}
....

相关内容