
私の論文の表紙は次のようになります。
関連するMWEは次のようになります(テンプレートを使用しています)
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\emph{Author:}\\
John \textsc{Smith}
% Your name
\href{mailto:[email protected]}{[email protected]}
\end{flushleft}
\end{minipage}
~
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Supervisor:} \\
Dr. Cornelius \textsc{Van der Westhuizen}% Supervisor's Name
\href{mailto:[email protected]}{[email protected]}
\end{flushright}
\end{minipage}\\[4cm]
「Westhuizen」の「Huizen」部分を同じ行に移動するにはどうすればいいですか?
答え1
上司の名前が非常に長いため、明示的な改行 (二重のバックスラッシュ) が必要になる場合もありますが、名前の後にスペースを入れるだけで十分な場合もあります。
Dr. Cornelius \textsc{Van der Westhuizen} % Supervisor's Name
\href{mailto:[email protected]}{[email protected]}
入力したとおり、%
中括弧内の名前の直後に が続くと\href{...}
、 は改行されずに名前の末尾にしっかりと結び付けられます。(また、これはカンマの位置として認識されません。たとえそこで行がカンマで区切られたとしても、それは望ましい出力にはなりません。)
答え2
いくつかの点を変更することを検討する必要があると思います:
他の人がすでに指摘しているように、2 番目のミニページの幅は、名前全体をタイプセットするには十分ではありません。幅を のように増やしてください
0.45\textwidth
。~
2 つのミニページを単に(スペース)で区切るのではなく、 を使用することをお勧めします\hspace{\fill}
。 そうすれば、2 つの名前のブロックがテキスト ブロックの幅全体に広がります。 (そうすることで 2 つの名前の間隔が離れすぎると思われる場合は、両方のミニページを、中央揃え0.8\textwidth
にできる (たとえば幅 の) より大きなミニページ環境内に配置することを検討してください。)レイアウトの対称性を保つために、メールアドレスの前に明示的に改行を追加します。そして上司のメールアドレス。
\documentclass{article}
\usepackage[margin=1in]{geometry} % set margins to suit your needs
\usepackage[colorlinks=true]{hyperref} % for \href macro
\begin{document}
\noindent
\begin{minipage}{0.3\textwidth}
\begin{flushleft}
\large
\emph{Author:}\\
John \textsc{Smith}\\ % Your name
\href{mailto:[email protected]}{[email protected]}
\end{flushleft}
\end{minipage}
\hspace{\fill}
\begin{minipage}{0.45\textwidth}
\begin{flushright}
\large
\emph{Supervisor:} \\
Dr.\ Cornelius \textsc{Van der Westhuizen}\\ %Supervisor's Name
\href{mailto:[email protected]}{[email protected]}
\end{flushright}
\end{minipage}
\end{document}
答え3
これは非常に悪い応急処置です。パッケージが必要です。また、名前の後に\usepackage{mathtools}
がないことに注意してください。\\
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\emph{Author:}\\
John \textsc{Smith}
% Your name
\href{mailto:[email protected]}{[email protected]}
\end{flushleft}
\end{minipage}
~
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Supervisor:} \\
\leavevmode\llap{Dr. Cornelius }\textsc{Van der Westhuizen}\\% Supervisor's Name
\href{mailto:[email protected]}{[email protected]}
\end{flushright}
\end{minipage}\\[4cm]
おそらく、不足しているものを追加するだけで\\
十分でしょう。
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\emph{Author:}\\
John \textsc{Smith}
% Your name
\href{mailto:[email protected]}{[email protected]}
\end{flushleft}
\end{minipage}
~
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Supervisor:} \\
Dr. Cornelius \textsc{Van der Westhuizen}\\% Supervisor's Name
\href{mailto:[email protected]}{[email protected]}
\end{flushright}
\end{minipage}\\[4cm]
また、完全なムウェ次回。
答え4
提供された他の回答とは別に、名前をボックス内に配置することもできます。
\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{hyperref}
\begin{document}
\noindent
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\emph{Author:}\\
John \textsc{Smith}
% Your name
\href{mailto:[email protected]}{[email protected]}
\end{flushleft}
\end{minipage}%%
%%
\hspace*{\fill}%%
%%
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Supervisor:} \\
\makebox[1.5in][r]{Dr. Cornelius \textsc{Van der Westhuizen}}\\% Supervisor's Name
\href{mailto:[email protected]}{[email protected]}
\end{flushright}
\end{minipage}\\[4cm]
\end{document}
ページの設定(余白の大きさ)がわからないため、見た目が混雑してしまう可能性があります。