Search code examples
latexpdflatexoverleaf

The email text is not aligned with the rest in overleaf


The email text is not aligned with the rest of the information in the same line. ’’''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''’''''''''''''''''''''''''''''''''''

Here's the code:

\documentclass[letterpaper,11pt]{article}

\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{marvosym}
\usepackage[usenames,dvipsnames {color}
\usepackage{verbatim}
\usepackage{enumitem}
\usepackage[hidelinks]{hyperref}
\usepackage{fancyhdr}
\usepackage[english]{babel}
\usepackage{tabularx}
\usepackage{fontawesome5}
\usepackage{multicol}
\setlength{\multicolsep}{-3.0pt}
\setlength{\columnsep}{-1pt}
\input{glyphtounicode}

\setlength{\footskip}{5pt}

\pagestyle{fancy}
\fancyhf{}
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

\addtolength{\oddsidemargin}{-0.6in}
\addtolength{\evensidemargin}{-0.5in}
\addtolength{\textwidth}{1.19in}
\addtolength{\topmargin}{-.7in}
\addtolength{\textheight}{1.4in}
\usepackage[hidelinks]{hyperref}
\usepackage{xcolor}
\hypersetup{
colorlinks,
linkcolor={red!50!black},
citecolor={blue!50!black},
urlcolor={blue!80!black} }

\raggedbottom
\raggedright
\setlength{\tabcolsep}{0in}

 
\titleformat{\section}{ \vspace{-4pt}\scshape\raggedright\large\bfseries}{}{0em}{ [\color{black}\titlerule 
\vspace{-5pt}]
\pdfgentounicode=1
\newcommand{\resumeItem}[1]{ \item\small{
{#1 \vspace{-2pt}}}

\newcommand{\classesList}[4]{
\item\small{
    {#1 #2 #3 #4 \vspace{-2pt}}}}

\newcommand{\resumeSubheading}[4{\vspace{-2pt}\item
\begin{tabular*}{1.0\textwidth [t]{l@{\extracolsep{\fill}}r}
  \textbf{#1} & \textbf{\small #2} \\
  \textit{\small#3} & 
\textit{\small #4} \\
\end{tabular*}\vspace{-7pt}}

\newcommand{\resumeSubSubheading}[2]{
\item
\begin{tabular*}{0.97\textwidth {l@{\extracolsep{\fill}}r}
  \textit{\small#1} & 
\textit{\small #2} \\
\end{tabular*}\vspace{-7pt}}

\newcommand{\resumeProjectHeading}[2]{
\item
\begin{tabular*}{1.001\textwidth {l@{\extracolsep{\fill}}r}
  \small#1 & \textbf{\small #2}\\
\end{tabular*}\vspace{-7pt}}
\newcommand{\resumeSubItem}[1]l {\resumeItem{#1}\vspace{-4pt}}\renewcommand\labelitemi{$\vcenter{\hbox{\tiny$\bullet$}}$}\renewcommand\labelitemii{$\vcenter{\hbox{\tiny$\bullet$}}$}\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[leftmargin=0.0in, label={}]}\newcommand{\resumeSubHeadingListEnd}{\end{itemize}}
\newcommand{\resumeItemListStart}{\begin{itemize}}
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{-5pt}}

\begin{document}
\begin{center}
{\Huge \scshape TRIDEV SINGH} \\ 
\vspace{1pt}
\raisebox{-0.1\height}\ 8178XXXXXX ~ \href{mailto:triXXXXXX@gmail.com}{\raisebox{-0.2\height} { tridevben@gmail.com}} ~ 
\href{https://www.linkedin.com}{\raisebox{-0.2\height}\ {LinkedIn Profile}}  ~
\href{https://github.com/TriXXXX}{\raisebox{-0.2\height}\ {GitHub Profile}}
\vspace{-8pt}
\end{center} 
\end{document}

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

Here's the output: enter image description here


Solution

  • Your links will be aligned automatically if you remove all your \raiseboxes:

    \documentclass[letterpaper,11pt]{article}
    
    \usepackage[hidelinks]{hyperref}
    \usepackage{xcolor}
    \hypersetup{
    colorlinks,
    linkcolor={red!50!black},
    citecolor={blue!50!black},
    urlcolor={blue!80!black} }
    
    \begin{document}
    
    \begin{center}
    {\Huge \scshape TRIDEV SINGH}
    
    8178XXXXXX ~ \href{mailto:triXXXXXX@gmail.com}{tridevben@gmail.com} ~ 
    \href{https://www.linkedin.com}{LinkedIn Profile} ~
    \href{https://github.com/TriXXXX}{GitHub Profile}
    
    \end{center} 
    \end{document}
    

    enter image description here