commit 5b9a0145e9ed3d1d37ab5548c048f18e2f41cee2
parent 1e4e2858a736789349b8f8e2607ffa997cc52901
Author: Mateusz Baran <mateusz.baran.sanok@gmail.com>
Date: Sun, 9 Jul 2023 15:36:20 +0200
feat: add parameter to adjust header margin separately from other pages
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/assets/BubbleCV.png b/assets/BubbleCV.png
Binary files differ.
diff --git a/bubblecv.sty b/bubblecv.sty
@@ -20,8 +20,9 @@
%----------------------------------------------------------------------------------------
% MARGIN
%----------------------------------------------------------------------------------------
-\newcommand\cvtopmargin{5}
-\newcommand\cvbottommargin{5}
+\newcommand\cvheadermargin{5}
+\newcommand\cvtopmargin{10}
+\newcommand\cvbottommargin{10}
\newcommand\cvleftmargin{35}
\newcommand\cvrightmargin{10}
@@ -111,6 +112,7 @@
\usepackage[a4paper]{geometry}
\geometry{top=\cvtopmargin mm, bottom=\cvbottommargin mm, left=\cvleftmargin mm, right=\cvrightmargin mm}
+\setlength{\topskip}{0mm} % no top margin default
\setlength{\parindent}{0mm} % no indent default
\pagenumbering{gobble} % disable page numbering
@@ -239,6 +241,8 @@
\relscale{\cvscale}%
\fontfamily{\cvfont}%
+ \vspace*{\cvheadermargin mm}%
+ \vspace*{-\cvtopmargin mm}%
\hspace{-\timelinespace mm}%
\hspace{-\cvavatarradius mm}%
\begin{minipage}{\dimexpr(\cvavatarradius mm + \cvavatarradius mm)}%