
이력서의 교육 섹션을 생성하는 데 사용하는 다음 LaTeX 코드가 있습니다.
\documentclass[a4paper,20pt]{article}
\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage[usenames,dvipsnames]{color}
\usepackage{verbatim}
\usepackage{enumitem}
\usepackage[pdftex]{hyperref}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{} % clear all header and footer fields
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
% Adjust margins
\addtolength{\oddsidemargin}{-0.530in}
\addtolength{\evensidemargin}{-0.375in}
\addtolength{\textwidth}{1in}
\addtolength{\topmargin}{-.45in}
\addtolength{\textheight}{1in}
\urlstyle{rm}
\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}
% Sections formatting
\titleformat{\section}{
\vspace{-10pt}\scshape\raggedright\large
}{}{0em}{}[\color{black}\titlerule \vspace{-6pt}]
%-------------------------
% Custom commands
\newcommand{\resumeItem}[1]{
\item\small{
#1 \vspace{-2pt}
}
}
\newcommand{\resumeItemWithoutTitle}[1]{
\item\small{
{\vspace{-2pt}}
}
}
\newcommand{\resumeSubheading}[4]{
\vspace{-1pt}\item
\begin{tabular*}{0.97\textwidth}{l@{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{#3} & \textit{#4} \\
\end{tabular*}\vspace{-5pt}
}
\newcommand{\resumeSubItem}[2]{\resumeItem{#1}{#2}\vspace{-3pt}}
\renewcommand{\labelitemii}{$\circ$}
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=*]}
\newcommand{\resumeSubHeadingListEnd}{\end{itemize}}
\newcommand{\resumeItemListStart}{\begin{itemize}}
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}}
%-----------------------------
%%%%%% RESUME STARTS HERE %%%%%%
\begin{document}
%----------HEADING-----------------
\begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r}
\textbf{{\LARGE Shrey Joshi}} & Email: \href{mailto:[email protected]}{[email protected]}\\
\href{https://shreyjoshi.com}{Website: shreyjoshi.com} & LinkedIn: \href{https://www.linkedin.com/in/sjoshi1729/}{in/sjoshi1729} |
\href{https://github.com/xprilion}{GitHub: ~~@shreyj1729} \\
\end{tabular*}
%-----------EDUCATION-----------------
\section{~~Education}
\resumeSubHeadingListStart
\resumeSubheading
{University of Texas at Dallas}{Dallas, Texas}
{B.S. Computer Science, AES + National Merit Full-ride Scholarship}{2022 - 2025 (Expected)}
\resumeSubHeadingListEnd
\end{document}
그러나 이로 인해 글머리 기호가 두 줄의 텍스트 사이 중앙에 위치하는 다음과 같은 출력이 생성됩니다. 글머리 기호가 굵은 첫 번째 줄에만 표시되도록 하려면 어떻게 해야 합니까?
답변1
내가 주석에 쓴 내용을 반복하려면 tabular* 환경 [t]
에 두 번째 선택적 인수를 추가하여 tabular* 환경의 상단을 주변 텍스트와 정렬할 수 있습니다.
\newcommand{\resumeSubheading}[4]{
\vspace{-1pt}\item
\begin{tabular*}{0.97\textwidth}[t]{l@{\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{#3} & \textit{#4} \\
\end{tabular*}\vspace{-5pt}
}