How to fix vertical spacing issues in a CV template? The Next CEO of Stack OverflowVertical Spacing of twocolumn optionDouble vertical spacing : how to fix this?Issues with multicols when using a templateHow to change spacing in a template?Wrong vertical spacing in twocolumn modeHow do I fix vertical spacing between tables?professional cv spacing issuesHow to fix spacing for summationFix spacing in twocolumn documentSpacing issues from vertical margins

Why did we only see the N-1 starfighters in one film?

WOW air has ceased operation, can I get my tickets refunded?

How to write papers efficiently when English isn't my first language?

What is the point of a new vote on May's deal when the indicative votes suggest she will not win?

How can I quit an app using Terminal?

Are there languages with no euphemisms?

Can a single photon have an energy density?

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Why do professional authors make "consistency" mistakes? And how to avoid them?

If I blow insulation everywhere in my attic except the door trap, will heat escape through it?

India just shot down a satellite from the ground. At what altitude range is the resulting debris field?

How to be diplomatic in refusing to write code that breaches the privacy of our users

Why do remote companies require working in the US?

What does "Its cash flow is deeply negative" mean?

The King's new dress

How long to clear the 'suck zone' of a turbofan after start is initiated?

How should I support this large drywall patch?

What do "high sea" and "carry" mean in this sentence?

Robert Sheckley short story about vacation spots being overwhelmed

Why didn't Theresa May consult with Parliament before negotiating a deal with the EU?

What makes a siege story/plot interesting?

Natural language into sentence logic

How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?

Does it take more energy to get to Venus or to Mars?



How to fix vertical spacing issues in a CV template?



The Next CEO of Stack OverflowVertical Spacing of twocolumn optionDouble vertical spacing : how to fix this?Issues with multicols when using a templateHow to change spacing in a template?Wrong vertical spacing in twocolumn modeHow do I fix vertical spacing between tables?professional cv spacing issuesHow to fix spacing for summationFix spacing in twocolumn documentSpacing issues from vertical margins










0















I am using this template for a CV. However, for some reason I am getting incomplete sections over the two pages, for example:



enter image description here



How can I make section 4 appear in the other side of the page (top of the second one)? Also Section 5 is not appearing in the second side of the second page. Any idea of how to fix this issues? I tried to use vspace but its not working.



The minimum example:



main:



documentclass[10pt,a4paper,academicons]altacv


geometryleft=1cm,right=9cm,marginparwidth=6.8cm,marginparsep=1.2cm,top=1.25cm,bottom=1.25cm


ifxetexorluatex
% If using xelatex or lualatex:
setmainfontCarlito
usepackagehyperref
usepackageacademicons
usepackagefontawesome
usepackagemarvosym
usepackagelipsum


else
% If using pdflatex:
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackage[default]lato
fi

% Change the colours if you want to

definecolorhanbluergb0.0, 0.25, 0.42

definecolorSlateGreyHTML2E2E2E
definecolorLightGreyHTML666666
colorletheadinghanblue
colorletaccenthanblue
colorletemphasisSlateGrey
colorletbodyLightGrey

% Change the bullets for itemize and rating marker
% for cvskill if you want to
renewcommanditemmarkersmalltextbullet
renewcommandratingmarkerfaCircle

%% sample.bib contains your publications
addbibresourcesample.bib

begindocument
nameJohn DO
taglineLarge position
personalinfo%
% Not all of these are required!
% You can add your own with printinfosymboldetail
emailhrefmail@.com
phone3209840932 0938 23948
% mailaddressAddress, Street, 00000 County
locationworldwide, world
linkedinwww.myexample.com
faGlobe urlwww.myexample.com
hrefwww.myexample.comsite
hrefwww.myexample.comtextitsite2


beginfullwidth
makecvheader
endfullwidth

AtBeginEnvironmentitemizesmall

cvsection[page1sidebar]Section 1

cveventSection 1placedateplace.
beginitemize
item lipsum[4]
item lipsum[4]
item lipsum[4]
item lipsum[4]
item lipsum[4]
enditemize


cveventSection 2placedateplace.
beginitemize
item lipsum[4]
item lipsum[4]
item lipsum[4]
item lipsum[4]
item lipsum[4]
enditemize



cveventSection 3placedateplace.
beginitemize
item lipsum[4]
item lipsum[4]
item lipsum[4]
item lipsum[4]
item lipsum[4]
enditemize


enddocument
vfill


alta.cls:



%%%%%%%%%%%%%%%%%
% This is altacv.cls (v1.1.5, 1 December 2018) written by
% LianTze Lim (liantze@gmail.com).
%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2003/12/01 or later.
%%
%%
% Contributions:
% - https://github.com/akreuzer Added ragged2e option (5 Nov 2018)
% - https://github.com/stefanogermano Fixed bad boxes and undefined font shape (July 2018)
% - https://github.com/foohyfooh Fixed blank spaces in cvevent and bad link in README.md (June 2018)

%%%%%%%%%%%%%%%%
NeedsTeXFormatLaTeX2e[1995/12/01]
%% v1.4: Detect TL2018 to handle accented characters in class information
@ifl@t@rfmtversion2018/04/01UseRawInputEncoding
ProvidesClassaltacv[2018/12/01 AltaCV v1.1.5, yet another alternative class for a résumé/curriculum vitae.]

%% v1.1: Optionally load academicons
newifif@academicons
DeclareOptionacademicons@academiconstrue
%% v1.1.3: Choice of round/square photo
newifif@normalphoto
DeclareOptionnormalphoto@normalphototrue
DeclareOption*PassOptionsToClassCurrentOptionextarticle
newifif@raggedtwoe
DeclareOptionragged2e@raggedtwoetrue
ProcessOptionsrelax

LoadClassextarticle

RequirePackage[margin=2cm]geometry
RequirePackagefontawesome
RequirePackageifxetex,ifluatex
RequirePackagescrlfile

%% v1.1.5: added for convenience
newififxetexorluatex
ifxetex
xetexorluatextrue
else
ifluatex
xetexorluatextrue
else
xetexorluatexfalse
fi
fi

%% v1.1: Optionally load academicons
%% v1.1.5: Handle different versions of academicons
if@academicons
ifxetexorluatex
RequirePackagefontspec
%% academicons in TL2018 doesn't require
%% Academicons to be installed in OS fonts
%% so can be loaded directly
@ifl@t@rfmtversion2018/04/01%
RequirePackageacademicons
%
% TL2017
@ifl@t@rfmtversion2017/04/01%
@ifpackagelateracademicons2018/03/01%
RequirePackageacademicons
%
letori@newfontfamilynewfontfamily%
renewcommandnewfontfamily[2]
RequirePackageacademicons
letnewfontfamilyori@newfontfamily
newfontfamilyAIacademicons.ttf

% TL2016 requires the package to be loaded before
% the version can be checked. Only added because
% Overleaf v1 still runs TL2016; will be removed
% when v1 is completely retired.
letori@newfontfamilynewfontfamily%
renewcommandnewfontfamily[2]
RequirePackageacademicons
letnewfontfamilyori@newfontfamily
newfontfamilyAIacademicons.ttf


else
ClassErrorAltaCVacademicons unsupported by latex or pdflatex. Please compile with xelatex or lualatexPlease compile with xelatex or lualatex to use the academicons option
fi
fi

if@raggedtwoe
RequirePackage[newcommands]ragged2e
fi

RequirePackagexcolor

colorletaccentblue!70!black
colorletheadingblack
colorletemphasisblack
colorletbodyblack!80!white
newcommanditemmarkersmalltextbullet
newcommandratingmarkerfaCircle

RequirePackagetikz
usetikzlibraryarrows
RequirePackage[skins]tcolorbox
RequirePackageenumitem
setlistleftmargin=*,labelsep=0.5em,nosep,itemsep=0.25baselineskip,after=vskip0.25baselineskip
setlist[itemize]label=itemmarker
RequirePackagegraphicx
RequirePackageetoolbox
RequirePackagedashrule
RequirePackagemultirow,tabularx
RequirePackagechangepage
% RequirePackagemarginfix

setlengthparindent0pt
newcommanddividertextcolorbody!30hdashrulelinewidth0.6pt0.5exmedskip

newenvironmentfullwidth%
beginadjustwidthdimexpr-marginparwidth-marginparseprelax
endadjustwidth

newcommandemailsymbolfaAt
newcommandphonesymbolfaPhone
newcommandhomepagesymbolfaChain
newcommandlocationsymbolfaMapMarker
newcommandlinkedinsymbolfaLinkedin
newcommandtwittersymbolfaTwitter
newcommandgithubsymbolfaGithub
newcommandorcidsymbolaiOrcid
newcommandmailsymbolfaEnvelope

newcommandprintinfo[2]mboxtextcoloraccentnormalfont #1hspace0.5em#2hspace2em

newcommandname[1]def@name#1
newcommandtagline[1]def@tagline#1
newcommandphoto[2]def@photo#2def@photodiameter#1
newcommandemail[1]printinfoemailsymbol#1
newcommandmailaddress[1]printinfomailsymbol#1
newcommandphone[1]printinfophonesymbol#1
newcommandhomepage[1]printinfohomepagesymbol#1
newcommandtwitter[1]printinfotwittersymbol#1
newcommandlinkedin[1]printinfolinkedinsymbol#1
newcommandgithub[1]printinfogithubsymbol#1
newcommandorcid[1]printinfoorcidsymbol#1
newcommandlocation[1]printinfolocationsymbol#1

newcommandpersonalinfo[1]def@personalinfo#1

newcommandmakecvheader%
begingroup
ifdef@photodiameterbeginminipagedimexprlinewidth-@photodiameter-2em%
raggedrightcoloremphasis%
HugebfseriesMakeUppercase@namepar
medskip
largebfseriescoloraccent@taglinepar
medskip
footnotesizebfseries@personalinfopar
ifdef@photodiameter%
endminipagehfill%
beginminipage@photodiameter
if@normalphoto
includegraphics[width=linewidth]@photo
else
tikzpath[fill overzoom image=@photo]circle[radius=0.5linewidth];
fi%
endminipagepar%
endgroupmedskip


renewenvironmentquotecoloraccentitshapelargepar

newcommandcvsection[2][]%
bigskip%
ifstrequal#1marginparvspace*dimexpr1pt-baselineskipraggedrightinput#1%
colorheadingLARGEbfseriesMakeUppercase#2\[-1ex]%
colorheadingrulelinewidth2ptparmedskip


newcommandcvsubsection[1]%
smallskip%
coloremphasislargebfseries#1parmedskip


% v1.1.4: fixes inconsistent font size
newcommandcvevent[4]%
largecoloremphasis#1par
smallskipnormalsize
ifstrequal#2
textbfcoloraccent#2par
smallskip
ifstrequal#3smallmakebox[0.5linewidth][l]faCalendarhspace0.5em#3%
ifstrequal#4smallmakebox[0.5linewidth][l]faMapMarkerhspace0.5em#4par
medskipnormalsize


newcommandcvachievement[3]%
begintabularxlinewidth@p2em @hspace1ex >raggedrightarraybackslashX@
multirow2*Largecoloraccent#1 & bfseriestextcoloremphasis#2\
& #3
endtabularx%
smallskip


newcommandcvtag[1]%
tikz[baseline]node[anchor=base,draw=body!30,rounded corners,inner xsep=1ex,inner ysep =0.75ex,text height=1.5ex,text depth=.25ex]#1;


newcommandcvskill[2]%
textcoloremphasistextbf#1hfill
foreach x in 1,...,5%
spaceifnumgreaterx#2colorbody!30coloraccentratingmarkerpar%


% Adapted from @Jake's answer at http://tex.stackexchange.com/a/82729/226
newcommandwheelchart[4][0]%
begingroupcentering
definnerradius#3%
defouterradius#2%
% Calculate total
pgfmathsetmacrototalnum0%
foreach value/colour/name in #4 %
pgfmathparsevalue+totalnum%
globallettotalnum=pgfmathresult%
%
begintikzpicture

% Calculate the thickness and the middle line of the wheel
pgfmathsetmacrowheelwidthouterradius-innerradius
pgfmathsetmacromidradius(outerradius+innerradius)/2
pgfmathsetmacrototalrot-90 + #1

% Rotate so we start from the top
beginscope[rotate=totalrot]

% Loop through each value set. cumnum keeps track of where we are in the wheel
pgfmathsetmacrocumnum0
foreach value/width/colour/name in #4
pgfmathsetmacronewcumnumcumnum + value/totalnum*360

% Calculate the percent value
pgfmathsetmacropercentagevalue/totalnum*100
% Calculate the mid angle of the colour segments to place the labels
pgfmathsetmacromidangle-(cumnum+newcumnum)/2

% This is necessary for the labels to align nicely
pgfmathparse
(-midangle>180?"west":"east")
edeftextanchorpgfmathresult
pgfmathparse
(-midangle>180?"flush left":"flush right")
edeftextalignpgfmathresult
pgfmathsetmacrolabelshiftdir1-2*(-midangle<180)

% Draw the color segments. Somehow, the midrow units got lost, so we add 'pt' at the end. Not nice...
filldraw[draw=white,fill=colour] (-cumnum:outerradius) arc (-cumnum:-(newcumnum):outerradius) --
(-newcumnum:innerradius) arc (-newcumnum:-(cumnum):innerradius) -- cycle;

% Draw the data labels
draw [*-,thin,emphasis] node [append after command=(midangle:midradius pt) -- (midangle:outerradius + 1ex) -- (tikzlastnode)] at (midangle:outerradius + 1ex) [xshift=labelshiftdir*0.5cm,inner sep=1ex, outer sep=0pt, text width=width,anchor=textanchor,align=textalign,font=small,text=body]name;
% Set the old cumulated angle to the new value
globalletcumnum=newcumnum

endscope
% draw[gray] (0,0) circle (outerradius) circle (innerradius);
endtikzpicturepar
endgroup


newcommandcvref[3]%
smallskip
textcoloremphasistextbf#1par
begindescription[font=coloraccent,style=multiline,leftmargin=1.35em]
item[normalfontemailsymbol] #2
item[smallnormalfontmailsymbol] #3
enddescription
% medskip


newenvironmentcvcolumn[1]beginminipage[t]#1raggedrightendminipage

RequirePackage[backend=biber,style=authoryear,sorting=ydnt]biblatex
%% For removing numbering entirely when using a numeric style
% setlengthbibhang1em
% DeclareFieldFormatlabelnumberwidthmakebox[bibhang][l]itemmarker
% setlengthbiblabelsep0pt
defbibheadingpubtypecvsubsection#1
renewcommandbibsetupvspace*-baselineskip
AtEveryBibitemmakebox[bibhang][l]itemmarker
setlengthbibitemsep0.25baselineskip

% v1.1.2: make it easier to add a sidebar aligned with top of next page
RequirePackageafterpage
newcommandaddsidebar[2][]marginpar%
ifstrequal#1vspace*#1%
input#2%

newcommandaddnextpagesidebar[2][]afterpageaddsidebar[#1]#2

AtBeginDocument%
pagestyleempty
colorbody
raggedright



page1sidebar.tex:



cvsectionSection 2

cveventSection 3placedateplace.
beginitemize
item lipsum[2]

enditemize

cvsectionSection 3

cveventSection 4placedateplace.
beginitemize
item lipsum[4]
item lipsum[4]
enditemize


cvsectionSection 4

cveventSection 5placedateplace.
beginitemize
item lipsum[4]
item lipsum[4]
item lipsum[4]
item lipsum[4]
item lipsum[4]
enditemize


page2sidebar.tex:



cvsectionSection 5


cveventSection 3placedateplace.
beginitemize
item lipsum[4]
item lipsum[4]
item lipsum[4]
item lipsum[4]
item lipsum[4]
enditemize


sample.bib



the bib









share|improve this question









New contributor




anon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    0















    I am using this template for a CV. However, for some reason I am getting incomplete sections over the two pages, for example:



    enter image description here



    How can I make section 4 appear in the other side of the page (top of the second one)? Also Section 5 is not appearing in the second side of the second page. Any idea of how to fix this issues? I tried to use vspace but its not working.



    The minimum example:



    main:



    documentclass[10pt,a4paper,academicons]altacv


    geometryleft=1cm,right=9cm,marginparwidth=6.8cm,marginparsep=1.2cm,top=1.25cm,bottom=1.25cm


    ifxetexorluatex
    % If using xelatex or lualatex:
    setmainfontCarlito
    usepackagehyperref
    usepackageacademicons
    usepackagefontawesome
    usepackagemarvosym
    usepackagelipsum


    else
    % If using pdflatex:
    usepackage[utf8]inputenc
    usepackage[T1]fontenc
    usepackage[default]lato
    fi

    % Change the colours if you want to

    definecolorhanbluergb0.0, 0.25, 0.42

    definecolorSlateGreyHTML2E2E2E
    definecolorLightGreyHTML666666
    colorletheadinghanblue
    colorletaccenthanblue
    colorletemphasisSlateGrey
    colorletbodyLightGrey

    % Change the bullets for itemize and rating marker
    % for cvskill if you want to
    renewcommanditemmarkersmalltextbullet
    renewcommandratingmarkerfaCircle

    %% sample.bib contains your publications
    addbibresourcesample.bib

    begindocument
    nameJohn DO
    taglineLarge position
    personalinfo%
    % Not all of these are required!
    % You can add your own with printinfosymboldetail
    emailhrefmail@.com
    phone3209840932 0938 23948
    % mailaddressAddress, Street, 00000 County
    locationworldwide, world
    linkedinwww.myexample.com
    faGlobe urlwww.myexample.com
    hrefwww.myexample.comsite
    hrefwww.myexample.comtextitsite2


    beginfullwidth
    makecvheader
    endfullwidth

    AtBeginEnvironmentitemizesmall

    cvsection[page1sidebar]Section 1

    cveventSection 1placedateplace.
    beginitemize
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    enditemize


    cveventSection 2placedateplace.
    beginitemize
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    enditemize



    cveventSection 3placedateplace.
    beginitemize
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    enditemize


    enddocument
    vfill


    alta.cls:



    %%%%%%%%%%%%%%%%%
    % This is altacv.cls (v1.1.5, 1 December 2018) written by
    % LianTze Lim (liantze@gmail.com).
    %
    %% It may be distributed and/or modified under the
    %% conditions of the LaTeX Project Public License, either version 1.3
    %% of this license or (at your option) any later version.
    %% The latest version of this license is in
    %% http://www.latex-project.org/lppl.txt
    %% and version 1.3 or later is part of all distributions of LaTeX
    %% version 2003/12/01 or later.
    %%
    %%
    % Contributions:
    % - https://github.com/akreuzer Added ragged2e option (5 Nov 2018)
    % - https://github.com/stefanogermano Fixed bad boxes and undefined font shape (July 2018)
    % - https://github.com/foohyfooh Fixed blank spaces in cvevent and bad link in README.md (June 2018)

    %%%%%%%%%%%%%%%%
    NeedsTeXFormatLaTeX2e[1995/12/01]
    %% v1.4: Detect TL2018 to handle accented characters in class information
    @ifl@t@rfmtversion2018/04/01UseRawInputEncoding
    ProvidesClassaltacv[2018/12/01 AltaCV v1.1.5, yet another alternative class for a résumé/curriculum vitae.]

    %% v1.1: Optionally load academicons
    newifif@academicons
    DeclareOptionacademicons@academiconstrue
    %% v1.1.3: Choice of round/square photo
    newifif@normalphoto
    DeclareOptionnormalphoto@normalphototrue
    DeclareOption*PassOptionsToClassCurrentOptionextarticle
    newifif@raggedtwoe
    DeclareOptionragged2e@raggedtwoetrue
    ProcessOptionsrelax

    LoadClassextarticle

    RequirePackage[margin=2cm]geometry
    RequirePackagefontawesome
    RequirePackageifxetex,ifluatex
    RequirePackagescrlfile

    %% v1.1.5: added for convenience
    newififxetexorluatex
    ifxetex
    xetexorluatextrue
    else
    ifluatex
    xetexorluatextrue
    else
    xetexorluatexfalse
    fi
    fi

    %% v1.1: Optionally load academicons
    %% v1.1.5: Handle different versions of academicons
    if@academicons
    ifxetexorluatex
    RequirePackagefontspec
    %% academicons in TL2018 doesn't require
    %% Academicons to be installed in OS fonts
    %% so can be loaded directly
    @ifl@t@rfmtversion2018/04/01%
    RequirePackageacademicons
    %
    % TL2017
    @ifl@t@rfmtversion2017/04/01%
    @ifpackagelateracademicons2018/03/01%
    RequirePackageacademicons
    %
    letori@newfontfamilynewfontfamily%
    renewcommandnewfontfamily[2]
    RequirePackageacademicons
    letnewfontfamilyori@newfontfamily
    newfontfamilyAIacademicons.ttf

    % TL2016 requires the package to be loaded before
    % the version can be checked. Only added because
    % Overleaf v1 still runs TL2016; will be removed
    % when v1 is completely retired.
    letori@newfontfamilynewfontfamily%
    renewcommandnewfontfamily[2]
    RequirePackageacademicons
    letnewfontfamilyori@newfontfamily
    newfontfamilyAIacademicons.ttf


    else
    ClassErrorAltaCVacademicons unsupported by latex or pdflatex. Please compile with xelatex or lualatexPlease compile with xelatex or lualatex to use the academicons option
    fi
    fi

    if@raggedtwoe
    RequirePackage[newcommands]ragged2e
    fi

    RequirePackagexcolor

    colorletaccentblue!70!black
    colorletheadingblack
    colorletemphasisblack
    colorletbodyblack!80!white
    newcommanditemmarkersmalltextbullet
    newcommandratingmarkerfaCircle

    RequirePackagetikz
    usetikzlibraryarrows
    RequirePackage[skins]tcolorbox
    RequirePackageenumitem
    setlistleftmargin=*,labelsep=0.5em,nosep,itemsep=0.25baselineskip,after=vskip0.25baselineskip
    setlist[itemize]label=itemmarker
    RequirePackagegraphicx
    RequirePackageetoolbox
    RequirePackagedashrule
    RequirePackagemultirow,tabularx
    RequirePackagechangepage
    % RequirePackagemarginfix

    setlengthparindent0pt
    newcommanddividertextcolorbody!30hdashrulelinewidth0.6pt0.5exmedskip

    newenvironmentfullwidth%
    beginadjustwidthdimexpr-marginparwidth-marginparseprelax
    endadjustwidth

    newcommandemailsymbolfaAt
    newcommandphonesymbolfaPhone
    newcommandhomepagesymbolfaChain
    newcommandlocationsymbolfaMapMarker
    newcommandlinkedinsymbolfaLinkedin
    newcommandtwittersymbolfaTwitter
    newcommandgithubsymbolfaGithub
    newcommandorcidsymbolaiOrcid
    newcommandmailsymbolfaEnvelope

    newcommandprintinfo[2]mboxtextcoloraccentnormalfont #1hspace0.5em#2hspace2em

    newcommandname[1]def@name#1
    newcommandtagline[1]def@tagline#1
    newcommandphoto[2]def@photo#2def@photodiameter#1
    newcommandemail[1]printinfoemailsymbol#1
    newcommandmailaddress[1]printinfomailsymbol#1
    newcommandphone[1]printinfophonesymbol#1
    newcommandhomepage[1]printinfohomepagesymbol#1
    newcommandtwitter[1]printinfotwittersymbol#1
    newcommandlinkedin[1]printinfolinkedinsymbol#1
    newcommandgithub[1]printinfogithubsymbol#1
    newcommandorcid[1]printinfoorcidsymbol#1
    newcommandlocation[1]printinfolocationsymbol#1

    newcommandpersonalinfo[1]def@personalinfo#1

    newcommandmakecvheader%
    begingroup
    ifdef@photodiameterbeginminipagedimexprlinewidth-@photodiameter-2em%
    raggedrightcoloremphasis%
    HugebfseriesMakeUppercase@namepar
    medskip
    largebfseriescoloraccent@taglinepar
    medskip
    footnotesizebfseries@personalinfopar
    ifdef@photodiameter%
    endminipagehfill%
    beginminipage@photodiameter
    if@normalphoto
    includegraphics[width=linewidth]@photo
    else
    tikzpath[fill overzoom image=@photo]circle[radius=0.5linewidth];
    fi%
    endminipagepar%
    endgroupmedskip


    renewenvironmentquotecoloraccentitshapelargepar

    newcommandcvsection[2][]%
    bigskip%
    ifstrequal#1marginparvspace*dimexpr1pt-baselineskipraggedrightinput#1%
    colorheadingLARGEbfseriesMakeUppercase#2\[-1ex]%
    colorheadingrulelinewidth2ptparmedskip


    newcommandcvsubsection[1]%
    smallskip%
    coloremphasislargebfseries#1parmedskip


    % v1.1.4: fixes inconsistent font size
    newcommandcvevent[4]%
    largecoloremphasis#1par
    smallskipnormalsize
    ifstrequal#2
    textbfcoloraccent#2par
    smallskip
    ifstrequal#3smallmakebox[0.5linewidth][l]faCalendarhspace0.5em#3%
    ifstrequal#4smallmakebox[0.5linewidth][l]faMapMarkerhspace0.5em#4par
    medskipnormalsize


    newcommandcvachievement[3]%
    begintabularxlinewidth@p2em @hspace1ex >raggedrightarraybackslashX@
    multirow2*Largecoloraccent#1 & bfseriestextcoloremphasis#2\
    & #3
    endtabularx%
    smallskip


    newcommandcvtag[1]%
    tikz[baseline]node[anchor=base,draw=body!30,rounded corners,inner xsep=1ex,inner ysep =0.75ex,text height=1.5ex,text depth=.25ex]#1;


    newcommandcvskill[2]%
    textcoloremphasistextbf#1hfill
    foreach x in 1,...,5%
    spaceifnumgreaterx#2colorbody!30coloraccentratingmarkerpar%


    % Adapted from @Jake's answer at http://tex.stackexchange.com/a/82729/226
    newcommandwheelchart[4][0]%
    begingroupcentering
    definnerradius#3%
    defouterradius#2%
    % Calculate total
    pgfmathsetmacrototalnum0%
    foreach value/colour/name in #4 %
    pgfmathparsevalue+totalnum%
    globallettotalnum=pgfmathresult%
    %
    begintikzpicture

    % Calculate the thickness and the middle line of the wheel
    pgfmathsetmacrowheelwidthouterradius-innerradius
    pgfmathsetmacromidradius(outerradius+innerradius)/2
    pgfmathsetmacrototalrot-90 + #1

    % Rotate so we start from the top
    beginscope[rotate=totalrot]

    % Loop through each value set. cumnum keeps track of where we are in the wheel
    pgfmathsetmacrocumnum0
    foreach value/width/colour/name in #4
    pgfmathsetmacronewcumnumcumnum + value/totalnum*360

    % Calculate the percent value
    pgfmathsetmacropercentagevalue/totalnum*100
    % Calculate the mid angle of the colour segments to place the labels
    pgfmathsetmacromidangle-(cumnum+newcumnum)/2

    % This is necessary for the labels to align nicely
    pgfmathparse
    (-midangle>180?"west":"east")
    edeftextanchorpgfmathresult
    pgfmathparse
    (-midangle>180?"flush left":"flush right")
    edeftextalignpgfmathresult
    pgfmathsetmacrolabelshiftdir1-2*(-midangle<180)

    % Draw the color segments. Somehow, the midrow units got lost, so we add 'pt' at the end. Not nice...
    filldraw[draw=white,fill=colour] (-cumnum:outerradius) arc (-cumnum:-(newcumnum):outerradius) --
    (-newcumnum:innerradius) arc (-newcumnum:-(cumnum):innerradius) -- cycle;

    % Draw the data labels
    draw [*-,thin,emphasis] node [append after command=(midangle:midradius pt) -- (midangle:outerradius + 1ex) -- (tikzlastnode)] at (midangle:outerradius + 1ex) [xshift=labelshiftdir*0.5cm,inner sep=1ex, outer sep=0pt, text width=width,anchor=textanchor,align=textalign,font=small,text=body]name;
    % Set the old cumulated angle to the new value
    globalletcumnum=newcumnum

    endscope
    % draw[gray] (0,0) circle (outerradius) circle (innerradius);
    endtikzpicturepar
    endgroup


    newcommandcvref[3]%
    smallskip
    textcoloremphasistextbf#1par
    begindescription[font=coloraccent,style=multiline,leftmargin=1.35em]
    item[normalfontemailsymbol] #2
    item[smallnormalfontmailsymbol] #3
    enddescription
    % medskip


    newenvironmentcvcolumn[1]beginminipage[t]#1raggedrightendminipage

    RequirePackage[backend=biber,style=authoryear,sorting=ydnt]biblatex
    %% For removing numbering entirely when using a numeric style
    % setlengthbibhang1em
    % DeclareFieldFormatlabelnumberwidthmakebox[bibhang][l]itemmarker
    % setlengthbiblabelsep0pt
    defbibheadingpubtypecvsubsection#1
    renewcommandbibsetupvspace*-baselineskip
    AtEveryBibitemmakebox[bibhang][l]itemmarker
    setlengthbibitemsep0.25baselineskip

    % v1.1.2: make it easier to add a sidebar aligned with top of next page
    RequirePackageafterpage
    newcommandaddsidebar[2][]marginpar%
    ifstrequal#1vspace*#1%
    input#2%

    newcommandaddnextpagesidebar[2][]afterpageaddsidebar[#1]#2

    AtBeginDocument%
    pagestyleempty
    colorbody
    raggedright



    page1sidebar.tex:



    cvsectionSection 2

    cveventSection 3placedateplace.
    beginitemize
    item lipsum[2]

    enditemize

    cvsectionSection 3

    cveventSection 4placedateplace.
    beginitemize
    item lipsum[4]
    item lipsum[4]
    enditemize


    cvsectionSection 4

    cveventSection 5placedateplace.
    beginitemize
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    enditemize


    page2sidebar.tex:



    cvsectionSection 5


    cveventSection 3placedateplace.
    beginitemize
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    item lipsum[4]
    enditemize


    sample.bib



    the bib









    share|improve this question









    New contributor




    anon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0








      I am using this template for a CV. However, for some reason I am getting incomplete sections over the two pages, for example:



      enter image description here



      How can I make section 4 appear in the other side of the page (top of the second one)? Also Section 5 is not appearing in the second side of the second page. Any idea of how to fix this issues? I tried to use vspace but its not working.



      The minimum example:



      main:



      documentclass[10pt,a4paper,academicons]altacv


      geometryleft=1cm,right=9cm,marginparwidth=6.8cm,marginparsep=1.2cm,top=1.25cm,bottom=1.25cm


      ifxetexorluatex
      % If using xelatex or lualatex:
      setmainfontCarlito
      usepackagehyperref
      usepackageacademicons
      usepackagefontawesome
      usepackagemarvosym
      usepackagelipsum


      else
      % If using pdflatex:
      usepackage[utf8]inputenc
      usepackage[T1]fontenc
      usepackage[default]lato
      fi

      % Change the colours if you want to

      definecolorhanbluergb0.0, 0.25, 0.42

      definecolorSlateGreyHTML2E2E2E
      definecolorLightGreyHTML666666
      colorletheadinghanblue
      colorletaccenthanblue
      colorletemphasisSlateGrey
      colorletbodyLightGrey

      % Change the bullets for itemize and rating marker
      % for cvskill if you want to
      renewcommanditemmarkersmalltextbullet
      renewcommandratingmarkerfaCircle

      %% sample.bib contains your publications
      addbibresourcesample.bib

      begindocument
      nameJohn DO
      taglineLarge position
      personalinfo%
      % Not all of these are required!
      % You can add your own with printinfosymboldetail
      emailhrefmail@.com
      phone3209840932 0938 23948
      % mailaddressAddress, Street, 00000 County
      locationworldwide, world
      linkedinwww.myexample.com
      faGlobe urlwww.myexample.com
      hrefwww.myexample.comsite
      hrefwww.myexample.comtextitsite2


      beginfullwidth
      makecvheader
      endfullwidth

      AtBeginEnvironmentitemizesmall

      cvsection[page1sidebar]Section 1

      cveventSection 1placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      enditemize


      cveventSection 2placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      enditemize



      cveventSection 3placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      enditemize


      enddocument
      vfill


      alta.cls:



      %%%%%%%%%%%%%%%%%
      % This is altacv.cls (v1.1.5, 1 December 2018) written by
      % LianTze Lim (liantze@gmail.com).
      %
      %% It may be distributed and/or modified under the
      %% conditions of the LaTeX Project Public License, either version 1.3
      %% of this license or (at your option) any later version.
      %% The latest version of this license is in
      %% http://www.latex-project.org/lppl.txt
      %% and version 1.3 or later is part of all distributions of LaTeX
      %% version 2003/12/01 or later.
      %%
      %%
      % Contributions:
      % - https://github.com/akreuzer Added ragged2e option (5 Nov 2018)
      % - https://github.com/stefanogermano Fixed bad boxes and undefined font shape (July 2018)
      % - https://github.com/foohyfooh Fixed blank spaces in cvevent and bad link in README.md (June 2018)

      %%%%%%%%%%%%%%%%
      NeedsTeXFormatLaTeX2e[1995/12/01]
      %% v1.4: Detect TL2018 to handle accented characters in class information
      @ifl@t@rfmtversion2018/04/01UseRawInputEncoding
      ProvidesClassaltacv[2018/12/01 AltaCV v1.1.5, yet another alternative class for a résumé/curriculum vitae.]

      %% v1.1: Optionally load academicons
      newifif@academicons
      DeclareOptionacademicons@academiconstrue
      %% v1.1.3: Choice of round/square photo
      newifif@normalphoto
      DeclareOptionnormalphoto@normalphototrue
      DeclareOption*PassOptionsToClassCurrentOptionextarticle
      newifif@raggedtwoe
      DeclareOptionragged2e@raggedtwoetrue
      ProcessOptionsrelax

      LoadClassextarticle

      RequirePackage[margin=2cm]geometry
      RequirePackagefontawesome
      RequirePackageifxetex,ifluatex
      RequirePackagescrlfile

      %% v1.1.5: added for convenience
      newififxetexorluatex
      ifxetex
      xetexorluatextrue
      else
      ifluatex
      xetexorluatextrue
      else
      xetexorluatexfalse
      fi
      fi

      %% v1.1: Optionally load academicons
      %% v1.1.5: Handle different versions of academicons
      if@academicons
      ifxetexorluatex
      RequirePackagefontspec
      %% academicons in TL2018 doesn't require
      %% Academicons to be installed in OS fonts
      %% so can be loaded directly
      @ifl@t@rfmtversion2018/04/01%
      RequirePackageacademicons
      %
      % TL2017
      @ifl@t@rfmtversion2017/04/01%
      @ifpackagelateracademicons2018/03/01%
      RequirePackageacademicons
      %
      letori@newfontfamilynewfontfamily%
      renewcommandnewfontfamily[2]
      RequirePackageacademicons
      letnewfontfamilyori@newfontfamily
      newfontfamilyAIacademicons.ttf

      % TL2016 requires the package to be loaded before
      % the version can be checked. Only added because
      % Overleaf v1 still runs TL2016; will be removed
      % when v1 is completely retired.
      letori@newfontfamilynewfontfamily%
      renewcommandnewfontfamily[2]
      RequirePackageacademicons
      letnewfontfamilyori@newfontfamily
      newfontfamilyAIacademicons.ttf


      else
      ClassErrorAltaCVacademicons unsupported by latex or pdflatex. Please compile with xelatex or lualatexPlease compile with xelatex or lualatex to use the academicons option
      fi
      fi

      if@raggedtwoe
      RequirePackage[newcommands]ragged2e
      fi

      RequirePackagexcolor

      colorletaccentblue!70!black
      colorletheadingblack
      colorletemphasisblack
      colorletbodyblack!80!white
      newcommanditemmarkersmalltextbullet
      newcommandratingmarkerfaCircle

      RequirePackagetikz
      usetikzlibraryarrows
      RequirePackage[skins]tcolorbox
      RequirePackageenumitem
      setlistleftmargin=*,labelsep=0.5em,nosep,itemsep=0.25baselineskip,after=vskip0.25baselineskip
      setlist[itemize]label=itemmarker
      RequirePackagegraphicx
      RequirePackageetoolbox
      RequirePackagedashrule
      RequirePackagemultirow,tabularx
      RequirePackagechangepage
      % RequirePackagemarginfix

      setlengthparindent0pt
      newcommanddividertextcolorbody!30hdashrulelinewidth0.6pt0.5exmedskip

      newenvironmentfullwidth%
      beginadjustwidthdimexpr-marginparwidth-marginparseprelax
      endadjustwidth

      newcommandemailsymbolfaAt
      newcommandphonesymbolfaPhone
      newcommandhomepagesymbolfaChain
      newcommandlocationsymbolfaMapMarker
      newcommandlinkedinsymbolfaLinkedin
      newcommandtwittersymbolfaTwitter
      newcommandgithubsymbolfaGithub
      newcommandorcidsymbolaiOrcid
      newcommandmailsymbolfaEnvelope

      newcommandprintinfo[2]mboxtextcoloraccentnormalfont #1hspace0.5em#2hspace2em

      newcommandname[1]def@name#1
      newcommandtagline[1]def@tagline#1
      newcommandphoto[2]def@photo#2def@photodiameter#1
      newcommandemail[1]printinfoemailsymbol#1
      newcommandmailaddress[1]printinfomailsymbol#1
      newcommandphone[1]printinfophonesymbol#1
      newcommandhomepage[1]printinfohomepagesymbol#1
      newcommandtwitter[1]printinfotwittersymbol#1
      newcommandlinkedin[1]printinfolinkedinsymbol#1
      newcommandgithub[1]printinfogithubsymbol#1
      newcommandorcid[1]printinfoorcidsymbol#1
      newcommandlocation[1]printinfolocationsymbol#1

      newcommandpersonalinfo[1]def@personalinfo#1

      newcommandmakecvheader%
      begingroup
      ifdef@photodiameterbeginminipagedimexprlinewidth-@photodiameter-2em%
      raggedrightcoloremphasis%
      HugebfseriesMakeUppercase@namepar
      medskip
      largebfseriescoloraccent@taglinepar
      medskip
      footnotesizebfseries@personalinfopar
      ifdef@photodiameter%
      endminipagehfill%
      beginminipage@photodiameter
      if@normalphoto
      includegraphics[width=linewidth]@photo
      else
      tikzpath[fill overzoom image=@photo]circle[radius=0.5linewidth];
      fi%
      endminipagepar%
      endgroupmedskip


      renewenvironmentquotecoloraccentitshapelargepar

      newcommandcvsection[2][]%
      bigskip%
      ifstrequal#1marginparvspace*dimexpr1pt-baselineskipraggedrightinput#1%
      colorheadingLARGEbfseriesMakeUppercase#2\[-1ex]%
      colorheadingrulelinewidth2ptparmedskip


      newcommandcvsubsection[1]%
      smallskip%
      coloremphasislargebfseries#1parmedskip


      % v1.1.4: fixes inconsistent font size
      newcommandcvevent[4]%
      largecoloremphasis#1par
      smallskipnormalsize
      ifstrequal#2
      textbfcoloraccent#2par
      smallskip
      ifstrequal#3smallmakebox[0.5linewidth][l]faCalendarhspace0.5em#3%
      ifstrequal#4smallmakebox[0.5linewidth][l]faMapMarkerhspace0.5em#4par
      medskipnormalsize


      newcommandcvachievement[3]%
      begintabularxlinewidth@p2em @hspace1ex >raggedrightarraybackslashX@
      multirow2*Largecoloraccent#1 & bfseriestextcoloremphasis#2\
      & #3
      endtabularx%
      smallskip


      newcommandcvtag[1]%
      tikz[baseline]node[anchor=base,draw=body!30,rounded corners,inner xsep=1ex,inner ysep =0.75ex,text height=1.5ex,text depth=.25ex]#1;


      newcommandcvskill[2]%
      textcoloremphasistextbf#1hfill
      foreach x in 1,...,5%
      spaceifnumgreaterx#2colorbody!30coloraccentratingmarkerpar%


      % Adapted from @Jake's answer at http://tex.stackexchange.com/a/82729/226
      newcommandwheelchart[4][0]%
      begingroupcentering
      definnerradius#3%
      defouterradius#2%
      % Calculate total
      pgfmathsetmacrototalnum0%
      foreach value/colour/name in #4 %
      pgfmathparsevalue+totalnum%
      globallettotalnum=pgfmathresult%
      %
      begintikzpicture

      % Calculate the thickness and the middle line of the wheel
      pgfmathsetmacrowheelwidthouterradius-innerradius
      pgfmathsetmacromidradius(outerradius+innerradius)/2
      pgfmathsetmacrototalrot-90 + #1

      % Rotate so we start from the top
      beginscope[rotate=totalrot]

      % Loop through each value set. cumnum keeps track of where we are in the wheel
      pgfmathsetmacrocumnum0
      foreach value/width/colour/name in #4
      pgfmathsetmacronewcumnumcumnum + value/totalnum*360

      % Calculate the percent value
      pgfmathsetmacropercentagevalue/totalnum*100
      % Calculate the mid angle of the colour segments to place the labels
      pgfmathsetmacromidangle-(cumnum+newcumnum)/2

      % This is necessary for the labels to align nicely
      pgfmathparse
      (-midangle>180?"west":"east")
      edeftextanchorpgfmathresult
      pgfmathparse
      (-midangle>180?"flush left":"flush right")
      edeftextalignpgfmathresult
      pgfmathsetmacrolabelshiftdir1-2*(-midangle<180)

      % Draw the color segments. Somehow, the midrow units got lost, so we add 'pt' at the end. Not nice...
      filldraw[draw=white,fill=colour] (-cumnum:outerradius) arc (-cumnum:-(newcumnum):outerradius) --
      (-newcumnum:innerradius) arc (-newcumnum:-(cumnum):innerradius) -- cycle;

      % Draw the data labels
      draw [*-,thin,emphasis] node [append after command=(midangle:midradius pt) -- (midangle:outerradius + 1ex) -- (tikzlastnode)] at (midangle:outerradius + 1ex) [xshift=labelshiftdir*0.5cm,inner sep=1ex, outer sep=0pt, text width=width,anchor=textanchor,align=textalign,font=small,text=body]name;
      % Set the old cumulated angle to the new value
      globalletcumnum=newcumnum

      endscope
      % draw[gray] (0,0) circle (outerradius) circle (innerradius);
      endtikzpicturepar
      endgroup


      newcommandcvref[3]%
      smallskip
      textcoloremphasistextbf#1par
      begindescription[font=coloraccent,style=multiline,leftmargin=1.35em]
      item[normalfontemailsymbol] #2
      item[smallnormalfontmailsymbol] #3
      enddescription
      % medskip


      newenvironmentcvcolumn[1]beginminipage[t]#1raggedrightendminipage

      RequirePackage[backend=biber,style=authoryear,sorting=ydnt]biblatex
      %% For removing numbering entirely when using a numeric style
      % setlengthbibhang1em
      % DeclareFieldFormatlabelnumberwidthmakebox[bibhang][l]itemmarker
      % setlengthbiblabelsep0pt
      defbibheadingpubtypecvsubsection#1
      renewcommandbibsetupvspace*-baselineskip
      AtEveryBibitemmakebox[bibhang][l]itemmarker
      setlengthbibitemsep0.25baselineskip

      % v1.1.2: make it easier to add a sidebar aligned with top of next page
      RequirePackageafterpage
      newcommandaddsidebar[2][]marginpar%
      ifstrequal#1vspace*#1%
      input#2%

      newcommandaddnextpagesidebar[2][]afterpageaddsidebar[#1]#2

      AtBeginDocument%
      pagestyleempty
      colorbody
      raggedright



      page1sidebar.tex:



      cvsectionSection 2

      cveventSection 3placedateplace.
      beginitemize
      item lipsum[2]

      enditemize

      cvsectionSection 3

      cveventSection 4placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      enditemize


      cvsectionSection 4

      cveventSection 5placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      enditemize


      page2sidebar.tex:



      cvsectionSection 5


      cveventSection 3placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      enditemize


      sample.bib



      the bib









      share|improve this question









      New contributor




      anon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am using this template for a CV. However, for some reason I am getting incomplete sections over the two pages, for example:



      enter image description here



      How can I make section 4 appear in the other side of the page (top of the second one)? Also Section 5 is not appearing in the second side of the second page. Any idea of how to fix this issues? I tried to use vspace but its not working.



      The minimum example:



      main:



      documentclass[10pt,a4paper,academicons]altacv


      geometryleft=1cm,right=9cm,marginparwidth=6.8cm,marginparsep=1.2cm,top=1.25cm,bottom=1.25cm


      ifxetexorluatex
      % If using xelatex or lualatex:
      setmainfontCarlito
      usepackagehyperref
      usepackageacademicons
      usepackagefontawesome
      usepackagemarvosym
      usepackagelipsum


      else
      % If using pdflatex:
      usepackage[utf8]inputenc
      usepackage[T1]fontenc
      usepackage[default]lato
      fi

      % Change the colours if you want to

      definecolorhanbluergb0.0, 0.25, 0.42

      definecolorSlateGreyHTML2E2E2E
      definecolorLightGreyHTML666666
      colorletheadinghanblue
      colorletaccenthanblue
      colorletemphasisSlateGrey
      colorletbodyLightGrey

      % Change the bullets for itemize and rating marker
      % for cvskill if you want to
      renewcommanditemmarkersmalltextbullet
      renewcommandratingmarkerfaCircle

      %% sample.bib contains your publications
      addbibresourcesample.bib

      begindocument
      nameJohn DO
      taglineLarge position
      personalinfo%
      % Not all of these are required!
      % You can add your own with printinfosymboldetail
      emailhrefmail@.com
      phone3209840932 0938 23948
      % mailaddressAddress, Street, 00000 County
      locationworldwide, world
      linkedinwww.myexample.com
      faGlobe urlwww.myexample.com
      hrefwww.myexample.comsite
      hrefwww.myexample.comtextitsite2


      beginfullwidth
      makecvheader
      endfullwidth

      AtBeginEnvironmentitemizesmall

      cvsection[page1sidebar]Section 1

      cveventSection 1placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      enditemize


      cveventSection 2placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      enditemize



      cveventSection 3placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      enditemize


      enddocument
      vfill


      alta.cls:



      %%%%%%%%%%%%%%%%%
      % This is altacv.cls (v1.1.5, 1 December 2018) written by
      % LianTze Lim (liantze@gmail.com).
      %
      %% It may be distributed and/or modified under the
      %% conditions of the LaTeX Project Public License, either version 1.3
      %% of this license or (at your option) any later version.
      %% The latest version of this license is in
      %% http://www.latex-project.org/lppl.txt
      %% and version 1.3 or later is part of all distributions of LaTeX
      %% version 2003/12/01 or later.
      %%
      %%
      % Contributions:
      % - https://github.com/akreuzer Added ragged2e option (5 Nov 2018)
      % - https://github.com/stefanogermano Fixed bad boxes and undefined font shape (July 2018)
      % - https://github.com/foohyfooh Fixed blank spaces in cvevent and bad link in README.md (June 2018)

      %%%%%%%%%%%%%%%%
      NeedsTeXFormatLaTeX2e[1995/12/01]
      %% v1.4: Detect TL2018 to handle accented characters in class information
      @ifl@t@rfmtversion2018/04/01UseRawInputEncoding
      ProvidesClassaltacv[2018/12/01 AltaCV v1.1.5, yet another alternative class for a résumé/curriculum vitae.]

      %% v1.1: Optionally load academicons
      newifif@academicons
      DeclareOptionacademicons@academiconstrue
      %% v1.1.3: Choice of round/square photo
      newifif@normalphoto
      DeclareOptionnormalphoto@normalphototrue
      DeclareOption*PassOptionsToClassCurrentOptionextarticle
      newifif@raggedtwoe
      DeclareOptionragged2e@raggedtwoetrue
      ProcessOptionsrelax

      LoadClassextarticle

      RequirePackage[margin=2cm]geometry
      RequirePackagefontawesome
      RequirePackageifxetex,ifluatex
      RequirePackagescrlfile

      %% v1.1.5: added for convenience
      newififxetexorluatex
      ifxetex
      xetexorluatextrue
      else
      ifluatex
      xetexorluatextrue
      else
      xetexorluatexfalse
      fi
      fi

      %% v1.1: Optionally load academicons
      %% v1.1.5: Handle different versions of academicons
      if@academicons
      ifxetexorluatex
      RequirePackagefontspec
      %% academicons in TL2018 doesn't require
      %% Academicons to be installed in OS fonts
      %% so can be loaded directly
      @ifl@t@rfmtversion2018/04/01%
      RequirePackageacademicons
      %
      % TL2017
      @ifl@t@rfmtversion2017/04/01%
      @ifpackagelateracademicons2018/03/01%
      RequirePackageacademicons
      %
      letori@newfontfamilynewfontfamily%
      renewcommandnewfontfamily[2]
      RequirePackageacademicons
      letnewfontfamilyori@newfontfamily
      newfontfamilyAIacademicons.ttf

      % TL2016 requires the package to be loaded before
      % the version can be checked. Only added because
      % Overleaf v1 still runs TL2016; will be removed
      % when v1 is completely retired.
      letori@newfontfamilynewfontfamily%
      renewcommandnewfontfamily[2]
      RequirePackageacademicons
      letnewfontfamilyori@newfontfamily
      newfontfamilyAIacademicons.ttf


      else
      ClassErrorAltaCVacademicons unsupported by latex or pdflatex. Please compile with xelatex or lualatexPlease compile with xelatex or lualatex to use the academicons option
      fi
      fi

      if@raggedtwoe
      RequirePackage[newcommands]ragged2e
      fi

      RequirePackagexcolor

      colorletaccentblue!70!black
      colorletheadingblack
      colorletemphasisblack
      colorletbodyblack!80!white
      newcommanditemmarkersmalltextbullet
      newcommandratingmarkerfaCircle

      RequirePackagetikz
      usetikzlibraryarrows
      RequirePackage[skins]tcolorbox
      RequirePackageenumitem
      setlistleftmargin=*,labelsep=0.5em,nosep,itemsep=0.25baselineskip,after=vskip0.25baselineskip
      setlist[itemize]label=itemmarker
      RequirePackagegraphicx
      RequirePackageetoolbox
      RequirePackagedashrule
      RequirePackagemultirow,tabularx
      RequirePackagechangepage
      % RequirePackagemarginfix

      setlengthparindent0pt
      newcommanddividertextcolorbody!30hdashrulelinewidth0.6pt0.5exmedskip

      newenvironmentfullwidth%
      beginadjustwidthdimexpr-marginparwidth-marginparseprelax
      endadjustwidth

      newcommandemailsymbolfaAt
      newcommandphonesymbolfaPhone
      newcommandhomepagesymbolfaChain
      newcommandlocationsymbolfaMapMarker
      newcommandlinkedinsymbolfaLinkedin
      newcommandtwittersymbolfaTwitter
      newcommandgithubsymbolfaGithub
      newcommandorcidsymbolaiOrcid
      newcommandmailsymbolfaEnvelope

      newcommandprintinfo[2]mboxtextcoloraccentnormalfont #1hspace0.5em#2hspace2em

      newcommandname[1]def@name#1
      newcommandtagline[1]def@tagline#1
      newcommandphoto[2]def@photo#2def@photodiameter#1
      newcommandemail[1]printinfoemailsymbol#1
      newcommandmailaddress[1]printinfomailsymbol#1
      newcommandphone[1]printinfophonesymbol#1
      newcommandhomepage[1]printinfohomepagesymbol#1
      newcommandtwitter[1]printinfotwittersymbol#1
      newcommandlinkedin[1]printinfolinkedinsymbol#1
      newcommandgithub[1]printinfogithubsymbol#1
      newcommandorcid[1]printinfoorcidsymbol#1
      newcommandlocation[1]printinfolocationsymbol#1

      newcommandpersonalinfo[1]def@personalinfo#1

      newcommandmakecvheader%
      begingroup
      ifdef@photodiameterbeginminipagedimexprlinewidth-@photodiameter-2em%
      raggedrightcoloremphasis%
      HugebfseriesMakeUppercase@namepar
      medskip
      largebfseriescoloraccent@taglinepar
      medskip
      footnotesizebfseries@personalinfopar
      ifdef@photodiameter%
      endminipagehfill%
      beginminipage@photodiameter
      if@normalphoto
      includegraphics[width=linewidth]@photo
      else
      tikzpath[fill overzoom image=@photo]circle[radius=0.5linewidth];
      fi%
      endminipagepar%
      endgroupmedskip


      renewenvironmentquotecoloraccentitshapelargepar

      newcommandcvsection[2][]%
      bigskip%
      ifstrequal#1marginparvspace*dimexpr1pt-baselineskipraggedrightinput#1%
      colorheadingLARGEbfseriesMakeUppercase#2\[-1ex]%
      colorheadingrulelinewidth2ptparmedskip


      newcommandcvsubsection[1]%
      smallskip%
      coloremphasislargebfseries#1parmedskip


      % v1.1.4: fixes inconsistent font size
      newcommandcvevent[4]%
      largecoloremphasis#1par
      smallskipnormalsize
      ifstrequal#2
      textbfcoloraccent#2par
      smallskip
      ifstrequal#3smallmakebox[0.5linewidth][l]faCalendarhspace0.5em#3%
      ifstrequal#4smallmakebox[0.5linewidth][l]faMapMarkerhspace0.5em#4par
      medskipnormalsize


      newcommandcvachievement[3]%
      begintabularxlinewidth@p2em @hspace1ex >raggedrightarraybackslashX@
      multirow2*Largecoloraccent#1 & bfseriestextcoloremphasis#2\
      & #3
      endtabularx%
      smallskip


      newcommandcvtag[1]%
      tikz[baseline]node[anchor=base,draw=body!30,rounded corners,inner xsep=1ex,inner ysep =0.75ex,text height=1.5ex,text depth=.25ex]#1;


      newcommandcvskill[2]%
      textcoloremphasistextbf#1hfill
      foreach x in 1,...,5%
      spaceifnumgreaterx#2colorbody!30coloraccentratingmarkerpar%


      % Adapted from @Jake's answer at http://tex.stackexchange.com/a/82729/226
      newcommandwheelchart[4][0]%
      begingroupcentering
      definnerradius#3%
      defouterradius#2%
      % Calculate total
      pgfmathsetmacrototalnum0%
      foreach value/colour/name in #4 %
      pgfmathparsevalue+totalnum%
      globallettotalnum=pgfmathresult%
      %
      begintikzpicture

      % Calculate the thickness and the middle line of the wheel
      pgfmathsetmacrowheelwidthouterradius-innerradius
      pgfmathsetmacromidradius(outerradius+innerradius)/2
      pgfmathsetmacrototalrot-90 + #1

      % Rotate so we start from the top
      beginscope[rotate=totalrot]

      % Loop through each value set. cumnum keeps track of where we are in the wheel
      pgfmathsetmacrocumnum0
      foreach value/width/colour/name in #4
      pgfmathsetmacronewcumnumcumnum + value/totalnum*360

      % Calculate the percent value
      pgfmathsetmacropercentagevalue/totalnum*100
      % Calculate the mid angle of the colour segments to place the labels
      pgfmathsetmacromidangle-(cumnum+newcumnum)/2

      % This is necessary for the labels to align nicely
      pgfmathparse
      (-midangle>180?"west":"east")
      edeftextanchorpgfmathresult
      pgfmathparse
      (-midangle>180?"flush left":"flush right")
      edeftextalignpgfmathresult
      pgfmathsetmacrolabelshiftdir1-2*(-midangle<180)

      % Draw the color segments. Somehow, the midrow units got lost, so we add 'pt' at the end. Not nice...
      filldraw[draw=white,fill=colour] (-cumnum:outerradius) arc (-cumnum:-(newcumnum):outerradius) --
      (-newcumnum:innerradius) arc (-newcumnum:-(cumnum):innerradius) -- cycle;

      % Draw the data labels
      draw [*-,thin,emphasis] node [append after command=(midangle:midradius pt) -- (midangle:outerradius + 1ex) -- (tikzlastnode)] at (midangle:outerradius + 1ex) [xshift=labelshiftdir*0.5cm,inner sep=1ex, outer sep=0pt, text width=width,anchor=textanchor,align=textalign,font=small,text=body]name;
      % Set the old cumulated angle to the new value
      globalletcumnum=newcumnum

      endscope
      % draw[gray] (0,0) circle (outerradius) circle (innerradius);
      endtikzpicturepar
      endgroup


      newcommandcvref[3]%
      smallskip
      textcoloremphasistextbf#1par
      begindescription[font=coloraccent,style=multiline,leftmargin=1.35em]
      item[normalfontemailsymbol] #2
      item[smallnormalfontmailsymbol] #3
      enddescription
      % medskip


      newenvironmentcvcolumn[1]beginminipage[t]#1raggedrightendminipage

      RequirePackage[backend=biber,style=authoryear,sorting=ydnt]biblatex
      %% For removing numbering entirely when using a numeric style
      % setlengthbibhang1em
      % DeclareFieldFormatlabelnumberwidthmakebox[bibhang][l]itemmarker
      % setlengthbiblabelsep0pt
      defbibheadingpubtypecvsubsection#1
      renewcommandbibsetupvspace*-baselineskip
      AtEveryBibitemmakebox[bibhang][l]itemmarker
      setlengthbibitemsep0.25baselineskip

      % v1.1.2: make it easier to add a sidebar aligned with top of next page
      RequirePackageafterpage
      newcommandaddsidebar[2][]marginpar%
      ifstrequal#1vspace*#1%
      input#2%

      newcommandaddnextpagesidebar[2][]afterpageaddsidebar[#1]#2

      AtBeginDocument%
      pagestyleempty
      colorbody
      raggedright



      page1sidebar.tex:



      cvsectionSection 2

      cveventSection 3placedateplace.
      beginitemize
      item lipsum[2]

      enditemize

      cvsectionSection 3

      cveventSection 4placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      enditemize


      cvsectionSection 4

      cveventSection 5placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      enditemize


      page2sidebar.tex:



      cvsectionSection 5


      cveventSection 3placedateplace.
      beginitemize
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      item lipsum[4]
      enditemize


      sample.bib



      the bib






      spacing two-column document-classes double-sided cv






      share|improve this question









      New contributor




      anon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      anon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 1 min ago







      anon













      New contributor




      anon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 10 mins ago









      anonanon

      1011




      1011




      New contributor




      anon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      anon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      anon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "85"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          anon is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482059%2fhow-to-fix-vertical-spacing-issues-in-a-cv-template%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          anon is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          anon is a new contributor. Be nice, and check out our Code of Conduct.












          anon is a new contributor. Be nice, and check out our Code of Conduct.











          anon is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482059%2fhow-to-fix-vertical-spacing-issues-in-a-cv-template%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

          Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"

          Haugesund Nexus externi | Tabula navigationisHaugesund pagina interretialisAmplifica