liantze / AltaCV

Yet another alternative curriculum vitae/résumé class with LaTeX
Other
1.26k stars 329 forks source link

Use `alt` Fontawesome for `faCalendar` and `faMapMarker` #109

Closed dmohns closed 1 year ago

dmohns commented 1 year ago

The calendar and location icons used in a cvevent currently look a bit odd, and not quite like the original design.

Simply replace \faMapMarker with \faMapMarker*. For the calendar icon I (personally) would even consider using the regular version of the icon (which is luckily part of free), i.e. \faCalendar*[regular].

Before:

image

After:

image

Note: The MapMarker icon should also be changed in the header.

liantze commented 1 year ago

You can change these using \patchcmd to replace these fontawesome5 symbols in the \cvevent definition, by adding these lines before \begin{document}:

\patchcmd{\cvevent}{\faCalendar}{\faCalendar*[regular]}{}{}
\patchcmd{\cvevent}{\faMapMarker}{\faMapMarker*}{}{}

So if you had preferred to use coloured emojis you could even do

\usepackage{emoji} % Requires LuaLaTeX as compiler
\patchcmd{\cvevent}{\faCalendar}{\emoji{calendar}}{}{}
\patchcmd{\cvevent}{\faMapMarker}{\emoji{world-map}}{}{}

(It's probably easier if these are placed into macros e.g. with current \itemmarker, \ratingmarker. Something for a future version.)

dmohns commented 1 year ago

Cool, thanks, I made it work for my setup.

Should I leave this issue open as a reminder for future improvements?

liantze commented 1 year ago

Maybe close this one for now — the actual choice for default icons can be rather dependent on personal preferences. I'll make a personal note to implement \cveventdatemarker and \cvlocationmarker.

liantze commented 12 months ago

With altacv.cls v1.7 this can now be done with

\renewcommand{\cvDateMarker}{\faCalendar*[regular]}
\renewcommand{\cvLocationMarker}{\faMapMarker*}