Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions altacv.cls
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,37 @@
\smallskip
}

\newcommand{\cvtag}[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};
\newlength{\tagwidth}
% \cvtags{comma-separated list of tags}
\newcommand{\cvtags}[1]{%
% Varibale for saving total tag width in current line
\pgfmathsetmacro{\sofarlinewidth}{0}%
\foreach \tagtext in {#1} {%
% Calculate tagwidth with length of tagtext + 2*(inner xsep)
\settowidth{\tagwidth}{\tagtext}%
\addtolength{\tagwidth}{8pt}%
% Check if tag is too large for current line
\pgfmathparse{\linewidth-\sofarlinewidth}%
\ifdimgreater{\tagwidth}{\pgfmathresult pt}{%
% Go to next line
\par%
\pgfmathparse{\tagwidth+2}%
\global\let\sofarlinewidth=\pgfmathresult%
}%
{%
% Add tagwidth + node distance
\pgfmathparse{\sofarlinewidth+\tagwidth+2}%
\global\let\sofarlinewidth=\pgfmathresult%
}%
\tikz[baseline]\node[
anchor=base,
draw=body!30,
rounded corners,
inner xsep=4pt,
inner ysep =0.75ex,
text height=1.5ex,
text depth=.25ex]{\tagtext};
}
}

% v1.6: Use accsupp so that the actual numeric value is copied/pasted
Expand Down
Binary file modified mmayer.pdf
Binary file not shown.
16 changes: 10 additions & 6 deletions mmayer.tex
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,19 @@

\cvsection{Strengths}

\cvtag{Hard-working (18/24)}
\cvtag{Persuasive}\\
\cvtag{Motivator \& Leader}
\cvtags{%
Hard-working (18/24),
Persuasive,
Motivator \& Leader
}

\divider\smallskip

\cvtag{UX}
\cvtag{Mobile Devices \& Applications}
\cvtag{Product Management \& Marketing}
\cvtags{%
UX,
Mobile Devices \& Applications,
Product Management \& Marketing
}

\cvsection{Languages}

Expand Down
Binary file modified sample.pdf
Binary file not shown.
16 changes: 10 additions & 6 deletions sample.tex
Original file line number Diff line number Diff line change
Expand Up @@ -212,15 +212,19 @@

\cvsection{Strengths}

\cvtag{Hard-working}
\cvtag{Eye for detail}\\
\cvtag{Motivator \& Leader}
\cvtags{%
Hard-working,
Eye for detail,
Motivator \& Leader
}

\divider\smallskip

\cvtag{C++}
\cvtag{Embedded Systems}\\
\cvtag{Statistical Analysis}
\cvtags{%
C++,
Embedded Systems,
Statistical Analysis
}

\cvsection{Languages}

Expand Down