mitchelloharawild / vitae

R Markdown Résumés and CVs

Home Page:https://pkg.mitchelloharawild.com/vitae/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change profilepic size

agdamsbo opened this issue · comments

Hi! I am using the awesome theme for my cv.

I figured how to change the profilepic fro circle to rectangle. Is there a way to change the height/with of the profilepic?

Have a look at your .cls file for you template, you'll find something like what is below for the "twenty seconds" theme

  • see line 139 of the cls file twentysecondcv.cls:
		\ifthenelse{\equal{\profilepic}{}}{\vspace*{0.5cm}}{
			\begin{center}
				\begin{tikzpicture}[x=\imagescale,y=-\imagescale]
					\clip (600/2, 587/2) circle (587/2);
					\node[anchor=north west, inner sep=0pt, outer sep=0pt] at (0,0) {\includegraphics[width=\imagewidth]{\profilepic}};
				\end{tikzpicture}
			\end{center}
		}

A bit of playing with those values should get the desired effect. I don't understand the settings fully, but I think it's essentially creating a bounding box and then anchoring the image within that box. Scaling/shifting should be possible.

To be honest, it would be nice to pull out some of these as clearer variables, for instance to scale the zoom factor of the image more easily.