改变小页面的(水平)位置

改变小页面的(水平)位置

我正在用 Latex 制作简历,这是我的第一个 Latex 项目。我使用该tabto包将一些点移动到某个水平位置。现在,我试图将顶部的地址移动到同一位置。但是,无论我做什么,我都无法弄清楚如何使用 将小页面移动到特定的水平位置tabto。有什么想法吗?

在此处输入图片描述

简历.tex

\documentclass{my_resume}
\setlength\parindent{0pt}
\begin{document}

\contactname{My Name} \\                % name
\noindent\begin{minipage}[ht]{.48\textwidth}
  \contactinfo
  {tel:+010000000000}                           % phone link (with int'l code)
    {000-000-0000}                              % phone display text
  {mailto:[email protected]}                        % email link
    {[email protected]}                             % email display text
  {https://user.com}                            % web link
    {user.com}                                  % web display text
\end{minipage}%
\noindent\begin{minipage}[ht]{.48\textwidth}
  \contactaddress
  {Street}                                      % address line 1 (house and street)
  {City, State}{Zip}                            % address line 2 (city, state, and zip)
  {Coutnry}                                     % address line 3 (country)
\end{minipage}%

\section{{\faBriefcase} Experience}
\placeandlocation{Company1}{City, State} \\
\titleandyears{Title}{Date - Date} \\
Duties \\
\begin{itemize}
  \item Item1
  \item Item2
  \item Item3
  \item Item4
\end{itemize}
Accomplishments \\
\begin{itemize}
  \item Item1
  \item Item2
  \item Item3
  \item Item4
\end{itemize}
\bigskip
\placeandlocation{Company2}{City, State} \\
\titleandyears{Title}{Date - Date} \\
Duties \\
\begin{itemize}
  \item Item1
  \item Item2
  \item Item3
  \item Item4
\end{itemize}
Accomplishments \\
\begin{itemize}
  \item Item1
  \item Item2
  \item Item3
  \item Item4
\end{itemize}

\section{{\faGraduationCap} Education}
\placeandlocation{University}{City, State} \\
Major:~\majorminor{Major}{Date - Date}\\
Minor:~\majorminor{Minor}{}\\
GPA:~~~~4.00/4.00 \\
Accomplishments \\
\begin{itemize}
  \item Item1
  \item Item2
  \item Item3
  \item Item4
\end{itemize}

\end{document} 

我的简历.cls

\ProvidesClass{my_resume}
\LoadClass{article}
\RequirePackage[document]{ragged2e}       % to left/right align items
\RequirePackage{enumitem}                 % to change spacing between lists
  \setlist[itemize]{noitemsep,topsep=0pt} % set some list defaults
\RequirePackage[letterpaper,portrait,margin=0.75in]{geometry}
%\RequirePackage[oldstylenums}
\RequirePackage[final]{microtype}
\RequirePackage{titlesec}                 % to format the title
\RequirePackage{color}                    % to define specific colors
  \definecolor{darkblue}{RGB}{6,69,173}
\RequirePackage{hyperref}                 % to make clickable URLs
  \hypersetup{
      colorlinks=true,
      linkcolor=darkblue,                 % color of internal links
      urlcolor=darkblue,                  % color of external links
  }
\RequirePackage{tabto}                    % for aligning text

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% FontAwesome               %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{fontspec}                 % to add fonts
\newfontfamily{\FA}{FontAwesome.ttf}      % place FontAwesome.ttf in the same folder
  \def\faMobile{\FA \symbol{"F10B}}
  \def\faPhone{\FA \symbol{"F095}}
  \def\faPhoneSquare{\FA \symbol{"F098}}
  \def\faEnvelope{\FA \symbol{"F0E0}}
  \def\faHome{\FA \symbol{"F015}}
  \def\faGlobe{\FA \symbol{"F0AC}}
  \def\faBriefcase{\FA \symbol{"F0B1}}
  \def\faGraduationCap{\FA \symbol{"F19D}}
  \def\faMapMarker{\FA \symbol{"F041}}

\newcommand{\rightsidetab}{4.9in}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Contact info              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\contactname}[1]{
  {\raggedright\Huge{#1}}
}
\newcommand{\contactinfo}[6]{
  \raggedright  
  \begin{tabular}[t]{@{} c l}
    {\faPhone} & \href{#1}{#2} \\
    {\faEnvelope} & \href{#3}{#4} \\
    {\faGlobe} & \href{#5}{#6}
  \end{tabular}
}
\newcommand{\contactaddress}[4]{
  \raggedright{\faHome} {#1} \\
   {#2} {#3} \\
   {#4}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Sections                  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\titleformat{\section}
  {\Large\scshape\raggedright}
  {}{0em}
  {}
  [\titlerule]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Experience specific stuff %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\placeandlocation}[2]{
  {\raggedright\bf{{#1}} \tabto{\rightsidetab}{\faMapMarker} {#2}}
}
\newcommand{\titleandyears}[2]{
  {\raggedright\textit{#1} \tabto{\rightsidetab} {#2}}
}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Education specific stuff  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\majorminor}[2]{
  {\raggedright\textit{#1} \tabto{\rightsidetab} {#2}}
}

相关内容