LaTeX forum ⇒ Curricula Vitae / RésumésDeveloper CV Avoid Overlapping Text

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

Developer CV Avoid Overlapping Text

Postby jdelaney8340 » Mon Feb 14, 2022 5:36 pm

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:
\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 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
jdelaney8340
Posts: 2
Joined: Mon Feb 14, 2022 5:08 pm

Developer CV Avoid Overlapping Text

Postby jdelaney8340 » Mon Feb 14, 2022 9:11 pm

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:

\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/483935/add-a-padding-around-draw-nodes-and-images

Cheers,

JD


Return to “Curricula Vitae / Résumés”

Who is online

Users browsing this forum: No registered users and 3 guests