.png)
내 연락처 옆에 내 이름과 프로그램을 어떻게 넣는지 모르겠습니다. 내 이름과 프로그램이 별도의 줄에 있습니다. 내 연락처는 표(1열, 3행, 텍스트는 왼쪽 맞춤)에 배치됩니다.
내 코드는 다음과 같습니다.
\documentclass[a4paper,12pt]{article}
%======PREAMBLE======================
% Document font - https://ctan.org/tex-archive/fonts/gillius?lang=en
\usepackage{gillius}
% Add clickable links
\usepackage{hyperref}
% Set spacing
\usepackage{setspace}
% Use Font Awesome icons
\usepackage{fontspec}
\usepackage{fontawesome5}
\usepackage{xparse}
%====================================
\onehalfspacing
\begin{document}
% HEADER
% Name & Program
\begin{flushleft}
Anthony Johnson \\*
Electrical Engineering Student at MIT
\end{flushleft}
% Contacts Section
\begin{flushright}
\begin{tabular}{ l }
\href{https://github.com/AnthonyJohnson}{\faGithub \hspace{0.25 em} AnthonyJohnson} \\
\href{mailto:[email protected]}{\faEnvelope \hspace{0.25 em} [email protected]} \\
\faPhone \hspace{0.25 em} (123) - 456 - 7890 \\
\end{tabular}
\end{flushright}
\end{document}
\end{onehalfspacing}
누군가 내가 이것을 어떻게 달성할 수 있는지 말해 줄 수 있습니까? 감사해요 :)
답변1
이와 같이 두 개의 미니 페이지를 사용할 수 있습니다
\documentclass[a4paper,12pt]{article}
%======PREAMBLE======================
% Document font - https://ctan.org/tex-archive/fonts/gillius?lang=en
\usepackage{gillius}
% Set spacing
\usepackage{setspace}
% Use Font Awesome icons
\usepackage{fontspec}
\usepackage{fontawesome5}
\usepackage{xparse}
% Add clickable links
\usepackage{hyperref}
\onehalfspacing
\begin{document}
% HEADER
% Name & Program
\noindent % <===========================================================
\begin{minipage}[c]{0.6\textwidth} % <==================================
\begin{flushleft}
Anthony Johnson \\*
Electrical Engineering Student at MIT
\end{flushleft}
\end{minipage} % <======================================================
\hfill
\begin{minipage}[c]{0.35\textwidth}% <==================================
% Contacts Section
\begin{flushright}
\begin{tabular}{ l }
\href{https://github.com/AnthonyJohnson}{\faGithub \hspace{0.25 em} AnthonyJohnson} \\
\href{mailto:[email protected]}{\faEnvelope \hspace{0.25 em} [email protected]} \\
\faPhone \hspace{0.25 em} (123) - 456 - 7890 \\
\end{tabular}
\end{flushright}
\end{minipage}% <=======================================================
\end{document}
원하는 결과를 얻으려면 :