TeX - LaTeX Asked on December 23, 2021
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:
From version 1.x to 2.x was a major incompatible code changing between the two versions. That means that the layout differs between this two versions (also some command names changed ...).
So if I compile your given code with the original version 1.2 of moderncv
(see log file) I get the following result:
with the first lines from the log file created:
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.6.29) (preloaded format=pdflatex 2020.7.14) 7 AUG 2020 11:41
entering extended mode
**./554866.tex
(554866.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-06-18> (moderncv.cls
Document Class: moderncv 2012/10/31 v1.2.0 modern curriculum vitae and letter document class
As you can see, your two immages differ to mine image. I think your professor changed some code inside the class file or sty files ...
Your code compiled with the original and current version 2.0.0 of moderncv
results in
which is the same image you have on the right in your question.
With the first lines from the log file created:
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.6.29) (preloaded format=pdflatex 2020.7.14) 7 AUG 2020 11:38
entering extended mode
**./554866.tex
(554866.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-06-18> ("C:Program FilesMiKTeX 2.9tex/latex/moderncvmoderncv.cls"
Document Class: moderncv 2015/07/28 v2.0.0 modern curriculum vitae and letter document class
To be able to use the version your professor gave you copy all given files into a new directory. Then copy your given MWE into the same directory, for example with filename mwe.tex
, and compile it. Now you can check the logfile to see, that your local class and style files are used.
The advantage is you have the layout your professor wants.
The disadvantage is that we do not see the changed code and can you not help you more (or do you have an link to the zip file your professor gave you?)
Answered by Mensch on December 23, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP