TeX - LaTeX Asked by nenno lillo on April 23, 2021
I would like to insert a section in my curriculum vitae where my skills are graphically represented(I’m using this template -> it.overleaf.com/latex/templates/forty-seconds-cv/pztcktmyngsk). Since the spaces are limited I would like to delete the image that precedes the description of the skill (which in this case is the blue arrow). How could I do ?
% uniform icon style for all skill icons, e.g. flags or fontawesome icons
newcommand{cvicon}[1]{makebox[1em]{color{iconcolor} #1}}
% pointskill[<indent>]{<description>}{<points>}[<maxpoints>] creates
% | [indent] description hfill ● ● ● ○ ○ |
% -- inspired by arravc.cls by LianTze Lim: https://github.com/liantze/AltaCV
NewDocumentCommand{pointskill}{ O{0em} m m m O{5} }{%
hspace{#1} cvicon{#2} ~ #3 hfill%
foreach x in {1,...,#5}{%
space%
{ifnumgreater{x}{#4}{color{skillbg}}{color{iconcolor}}% from etoolbox
% don't use totalheight; see https://tex.stackexchange.com/a/41014
raisebox{0.5height-0.4ex}{scriptsizefaCircle}%
}
}par%
}
graphic example of how it looks if I call pointskill{►}{Python}{3} :
You can update the definition of pointskill
to ignore whatever is supplied as the second argument (noting that the first is optional):
NewDocumentCommand{pointskill}{ O{0em} m m m O{5} }{%
hspace{#1}#3 hfill%
foreach x in {1,...,#5}{%
space%
{ifnumgreater{x}{#4}{color{skillbg}}{color{iconcolor}}% from etoolbox
% don't use totalheight; see https://tex.stackexchange.com/a/41014
raisebox{0.5height-0.4ex}{scriptsizefaCircle}%
}
}par%
}
You'll see there's no use of #2
in the above definition, so you can still call it using
pointskill{►}{Python}{3}
If you which to fully remove the option of passing a preceding icon, then use
NewDocumentCommand{pointskill}{ O{0em} m m O{5} }{%
hspace{#1}#2 hfill%
foreach x in {1,...,#4}{%
space%
{ifnumgreater{x}{#3}{color{skillbg}}{color{iconcolor}}% from etoolbox
% don't use totalheight; see https://tex.stackexchange.com/a/41014
raisebox{0.5height-0.4ex}{scriptsizefaCircle}%
}
}par%
}
Correct answer by Werner on April 23, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP