TransWikia.com

How to remove a blank horizontal line from CV template?

TeX - LaTeX Asked by V Kahn on March 21, 2021

I am writing my academic CV in a Latex template I found online. It has a contact information section on the top which after compilation looks like this:
enter image description here

I tried my best to figure out why there is a blank horizontal line against the word CONTACT but it was in vain. It seems the address is beginning against the word INFORMATION. Will appreciate any help. Here’s the MWE:

documentclass[12pt]{article}
RequirePackage[T1]{fontenc}
usepackage{times}
usepackage{calc}
reversemarginpar

usepackage[paper=a4paper,
        marginparwidth=30.5mm,    
        marginparsep=1.5mm,       
        margin=1.9cm,             
        includemp]{geometry}

setlength{parindent}{0in}

usepackage{color,hyperref}

newcommand{makeheading}[2][]%
    {hspace*{-marginparsep minus marginparwidth}%
     begin{minipage}[t]{textwidth+marginparwidth+marginparsep}%
         {large #2 hfill #1}[-0.15baselineskip]%
             rule{columnwidth}{1pt}%
     end{minipage}}

renewcommand{section}[1]{pagebreak[3]%
vspace{1.3baselineskip}%
phantomsectionaddcontentsline{toc}{section}{#1}%
noindentllap{scshapesmash{parbox[t]{marginparwidth}{hyphenpenalty=10000raggedright #1}}}%
vspace{-baselineskip}par}


begin{document}
makeheading{Huge{textsc{John Doe}}}

section{Contact Information}
%
newlength{rcollength}setlength{rcollength}{1.85in}%
newlength{spacewidth}setlength{spacewidth}{20pt}
%
begin{tabular}[t]{@{}p{textwidth-rcollength-spacewidth}@{}p{spacewidth}@{}p{rcollength}}%

% Address box
parbox{textwidth-rcollength-spacewidth}{%
Center for Big Shot Studies
The Haughty University
Viale Brillianca, 23, 00197 Rome RM, Italy}

&
parbox[m][5baselineskip]{spacewidth}{} &
parbox{rcollength}{%
textit{Mobile:} +39-00000-11111 
textit{E-mail:} href{[email protected]}{[email protected]}
textit{WWW:} href{https://haughty.com/}{haughty.com/}}

end{tabular}

end{document}

One Answer

A simple tabular without the parboxes should work perfectly fine. Instead of calculated column widthy, you could aslo just use a simple tabular* in combination with extracolsep{fill}} in order to make sure, the table uses the available text width.

enter image description here

documentclass[12pt]{article}
RequirePackage[T1]{fontenc}
usepackage{times}
usepackage{calc}
reversemarginpar

usepackage[paper=a4paper,
        marginparwidth=30.5mm,    
        marginparsep=1.5mm,       
        margin=1.9cm,             
        includemp]{geometry}

setlength{parindent}{0in}

usepackage{color,hyperref}

newcommand{makeheading}[2][]%
    {hspace*{-marginparsep minus marginparwidth}%
     begin{minipage}[t]{textwidth+marginparwidth+marginparsep}%
         {large #2 hfill #1}[-0.15baselineskip]%
             rule{columnwidth}{1pt}%
     end{minipage}}

renewcommand{section}[1]{pagebreak[3]%
vspace{1.3baselineskip}%
phantomsectionaddcontentsline{toc}{section}{#1}%
noindentllap{scshapesmash{parbox[t]{marginparwidth}{hyphenpenalty=10000raggedright #1}}}%
vspace{-baselineskip}par}


begin{document}
makeheading{Huge{textsc{John Doe}}}

section{Contact Information}
%
newlength{rcollength}setlength{rcollength}{1.85in}%
newlength{spacewidth}setlength{spacewidth}{20pt}
%
begin{tabular}[t]{@{}p{textwidth-rcollength-spacewidth}@{}p{spacewidth}@{}p{rcollength}@{}}%
Center for Big Shot Studies && textit{Mobile:} +39-00000-11111
The Haughty University      && textit{E-mail:} href{[email protected]}{[email protected]}
Viale Brillianca, 23, 00197 Rome RM, Italy && textit{WWW:} href{https://haughty.com/}{haughty.com/}
end{tabular}

begin{tabular*}{hsize}[t]{@{extracolsep{fill}}l@{}l@{}}%
Center for Big Shot Studies & textit{Mobile:} +39-00000-11111
The Haughty University      & textit{E-mail:} href{[email protected]}{[email protected]}
Viale Brillianca, 23, 00197 Rome RM, Italy & textit{WWW:} href{https://haughty.com/}{haughty.com/}
end{tabular*}

end{document}

Correct answer by leandriis on March 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP