텍스트가 다음 줄로 이동합니다. 같은 줄을 유지하는 방법은 무엇입니까?

텍스트가 다음 줄로 이동합니다. 같은 줄을 유지하는 방법은 무엇입니까?

내 논문 표지는 다음과 같습니다.

논문 표지

관련 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

내 생각에는 다음과 같은 몇 가지 사항을 변경하는 것을 고려해야 합니다.

  • 다른 사람들이 이미 언급했듯이 두 번째 미니페이지의 너비는 전체 이름을 조판하기에는 충분하지 않습니다. 너비를 0.45\textwidth.

  • ~(공백) 만으로 두 개의 미니페이지를 분리하는 대신 \hspace{\fill}. 이렇게 하면 두 이름을 가진 블록이 텍스트 블록의 전체 너비에 걸쳐 있게 됩니다. (그렇게 하면 두 이름이 너무 멀리 떨어져 있다고 생각되면 두 미니페이지를 0.8\textwidth중앙에 배치할 수 있는 더 큰 미니페이지 환경(가령 width 등)에 배치하는 것이 좋습니다.)

  • 레이아웃의 대칭을 위해 이메일 주소 앞에 명시적인 줄바꿈을 추가하겠습니다.그리고감독자의 이메일 주소.

여기에 이미지 설명을 입력하세요

\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]

그것도 풀버전으로 올려주세요MWE다음번.

답변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}

귀하의 페이지 설정(여백의 크기)이 무엇인지 모르기 때문에 페이지가 너무 복잡해 보일 수 있습니다.

관련 정보