# Adjust spacing between personal information & photo columns in moderncv classic

I wish to reduce the spacing between the personal information column and the photo column in moderncv classic style.

Here is a MWE

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\usepackage{graphicx}

\firstname{John}
\familyname{Doe}

\phone[mobile]{123 456 7890}
\email{someone@xyz.com}
\photo[64pt][0.5pt]{example-image-a}

\begin{document}
\makecvtitle
\end{document}


which produces

How can I control/reduce/fine-tune the horizontal space indicated in the above PDF output?

Change the value of \separatorcolumnwidth to the value you need.

See for example the code (see marked code with <=======):

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\usepackage{graphicx}

\firstname{John}
\familyname{Doe}

\phone[mobile]{123 456 7890}
\email{someone@xyz.com}
\photo[64pt][0.5pt]{example-image-a}

\setlength{\separatorcolumnwidth}{0mm} % <==============================

\begin{document}
\makecvtitle
\end{document}


and its result:

To get the usual distance back after the title just use \setlength again:

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\usepackage{graphicx}

\firstname{John}
\familyname{Doe}

\phone[mobile]{123 456 7890}
\email{someone@xyz.com}
\photo[64pt][0.5pt]{example-image-a}

\setlength{\separatorcolumnwidth}{0mm} % <==============================

\begin{document}

\makecvtitle

\setlength{\separatorcolumnwidth}{9pt}% <===============================
\section{Education}
\cventry{year--year}{Degree}{Institution--3}{City--4}{\textit{Grade}--5}{Description--6}  % arguments 3 to 6 can be left empty

\section{Master thesis}
\cvitem{title}{\emph{Title}}
\cvitem{supervisors}{Supervisors}
\cvitem{description}{Short thesis abstract}
\end{document}


and the result:

• thank you for the answer. How do we know the default value for this parameter? – Krishna Feb 12 at 16:26
• Add the\separatorcolumnwidth to your cv, but do not change this length in your code. Then you will find the printed length: 8.9978pt. – Kurt Feb 12 at 16:38
• thank u. But your solution has a side effect of messing up the spacing between the cventry column and the main column, and is therefore not viable – Krishna Feb 12 at 16:39
• Hm, simply define a new value (or the old) after \maketitle`. See updated answer. – Kurt Feb 12 at 16:48
• great. Thank you so much. Accepted and upvoted. – Krishna Feb 12 at 16:56