TransWikia.com

PDF output is different after copying code into new file and compling

TeX - LaTeX Asked by A.B. on August 3, 2020

I received a code for a CV from a professor of mine, which I intended to replace the information in and use as a template. Here is the code (after I replaced the original information with my own):

documentclass[11pt,a4paper,roman]{moderncv}

% --------------------------------------------------------------------
moderncvstyle{banking} moderncvcolor{black}
renewcommand*{namefont}{fontsize{23}{1}mdseriesupshape}
renewcommand*{titlefont}{fontsize{23}{1}mdseriesupshape}
usepackage[scale=0.76]{geometry}
usepackage{amsfonts}

% --------------------------------------------------------------------
firstname{John}
familyname{Hancock}
title{Curriculum Vitae}
email{[email protected]}
phone{(123) 456-789}
address{123 Blue Drive, Albany NY}{USA}{}

%--------------------------------------------------------------------
begin{document}

makecvtitle

% --------------------------------------------------------------------
section{EDUCATION}
vspace{1pt}
cventry{}{}{BSc, ABC, Science University}{2021 (Candidate)}{}
    {Thesis title: textit{Name of thesis}  Supervisor: John Doe}{}

vspace{.7em}  

end{document}

Compiling this file produced an identical format to the original CV my professor sent me. However, I copied the code into a new tab of my editor, saved it as a new file, and compiled again. This time, the output was different (see images 1 and 2). Is there any reason this might be the case? The output in the second image was also produced when compiling the code in another LaTeX editor, so it seems that editing the original .tex file I received is the only way to produce the output I desire.

Before and after copying & compiling in new file:

enter image description here

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