我的短信
\begin{titlepage}
\maketitle
\begin{flushright} \large
\begin{align}
\emph{Supervisor:} & \emph{Intsructor:} \\
Prof. Sami & M.Sc. Tech. Henri
\end{align}
\end{flushright}
% Bottom of the page
\vfill
{\large \today}
\end{titlepage}
我明白了
其中没有对齐。
如何才能使主管在左边而讲师在右边呢?
答案1
也可以用 来完成tabbing environment
。
\documentclass{article}
\usepackage{tabbing}
\begin{document}
\begin{titlepage}
\begin{tabbing}
\hspace{7em} \= \\ %defines length of first tabular with \hspace
Supervisor: \> Instructor: \\
Prof. Sami \> M.Sc. Tecg. Henri \\
\end{tabbing}
\begin{tabbing}
\hspace{15em} \= \\ % increased the length to 15em
Supervisor: \> Instructor: \\
Prof. Sami \> M.Sc. Tecg. Henri \\
\end{tabbing}
\begin{tabbing}
\hspace{15em} \= \\
Supervisor: \> Instructor: \\
Prof. Sami Sami Sami Sami Sami \> M.Sc. Tecg. Henri \\
\end{tabbing}
\end{titlepage}
\end{document}
答案2
{lr}
我可能会做这样的事情(如果您希望在表格定义中使用讲师右对齐):
\begin{flushright} \large
\begin{tabular}{lc}
\emph{Supervisor:} & \emph{Instructor:} \\
Prof. Sami & M.Sc. Tech. Henri
\end{tabular}
\begin{tabular}{lc}
\emph{Supervisor:} & Prof. Sami \\
\emph{Instructor:} & M.Sc. Tech. Henri
\end{tabular}
\begin{tabular}{lcl}
\emph{Supervisor} & : & Prof. Sami \\
\emph{Instructor} & : & M.Sc. Tech. Henri
\end{tabular}
\end{flushright}
得出的结果是:
您可以随时调整列之间的间距来获得所需的间距。
答案3
Align 用于数学方程式。这不是数学方程式。您不应该在这里使用 align 环境。您可以尝试这样做:
\begin{titlepage}
\maketitle
{\large
\begin{minipage}{0.4\textwidth}
\begin{flushleft}
\emph{Supervisor:}
Prof. Sami
\end{flushleft}
\end{minipage}
\hfill
\begin{minipage}{0.4\textwidth}
\begin{flushright}
\emph{Instructor:}
M.Sc. Tech. Henri
\end{flushright}
\end{minipage}
}
\end{titlepage}