Curricula Vitae / RésumésDeveloper CV Avoid Overlapping Text

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
Post Reply
jdelaney8340
Posts: 2
Joined: Mon Feb 14, 2022 5:08 pm

Developer CV Avoid Overlapping Text

Post by jdelaney8340 »

Hi!

Using the developer CV template (found here: https://www.latextemplates.com/template/developer-cv) and have found it to be great. However, I am currently encountering an issue where longer text will cause the bubble labels to overlap. Is there anything that could be amended in the preamble or within the bubble command itself to fix this?

Bubbles:

Code: Select all

\newcounter{a}
\newcounter{b}
\newcounter{c}

% Command to output a number of automatically-sized bubbles from a string in the format of '<size>/<label>', e.g. \bubbles{5/Eclipse, 6/git, 4/Office, 3/Inkscape, 3/Blender}
\newcommand{\bubbles}[1]{
	% Reset counters
	\setcounter{a}{0}
	\setcounter{c}{150}
	
	\begin{tikzpicture}[scale=3]
		\foreach \p/\t in {#1} {
			\addtocounter{a}{1}
			\bubble{\thea/2}{\theb}{\p/25}{\t}{1\p0}
		}
	\end{tikzpicture}
}

% Command to output a bubble at a specific position with a specific size
\newcommand{\bubble}[5]{
	\filldraw[fill=black, draw=none] (#1,0.5) circle (#3); % Bubble
	\node[label=\textcolor{black}{#4}] at (#1,0.7) {}; % Label
}

Cheers,

JD
Last edited by Stefan Kottwitz on Mon Feb 14, 2022 6:56 pm, edited 1 time in total.
Reason: code marked

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
jdelaney8340
Posts: 2
Joined: Mon Feb 14, 2022 5:08 pm

Developer CV Avoid Overlapping Text

Post by jdelaney8340 »

Hey,

Just to update, think I've managed to fix the issue of the overlapping label text, by adding the package \usetikzlibrary{positioning} and replacing the original Bubbles code in the preamble with the following:

Code: Select all

\newcommand\bubbles[1] {%
\begin{tikzpicture}[scale=3.5]
    \coordinate (a0) at (0,0);
    \foreach \sz/\name [count=\cnt,count=\xcnt from 0] in {#1} {%
        \node[right=0pt of a\xcnt,minimum height=.75cm] (a\cnt) {\name};
        \path (a\cnt.south);
        \node[fill=black,circle,minimum size=5*\sz] at ([yshift=-3.5pt]a\cnt.south) {};
    }
\end{tikzpicture}}
Hope this may help someone else. Found the solution from the following link: https://tex.stackexchange.com/questions ... and-images

Cheers,

JD
Post Reply