From 5be84b02c2de0eeb3b182a9c6f5fae515483263c Mon Sep 17 00:00:00 2001
From: Gustaf Rydholm <gustaf.rydholm@gmail.com>
Date: Sat, 11 Sep 2021 16:45:10 +0200
Subject: Add section and subsection macros

---
 cv.tex | 59 +++++++++++++++++++++++++++++++++++------------------------
 1 file changed, 35 insertions(+), 24 deletions(-)

(limited to 'cv.tex')

diff --git a/cv.tex b/cv.tex
index a438063..bc5c52b 100644
--- a/cv.tex
+++ b/cv.tex
@@ -1,10 +1,12 @@
 \documentclass[9pt, oneside]{article}
+\usepackage[margin=1cm]{geometry}
 \usepackage[utf8]{inputenc} % Change according your file encoding
 \usepackage[english]{babel}
 \usepackage[T1]{fontenc}
 \usepackage{lmodern}
 \usepackage{csquotes}
 \usepackage{float}
+\usepackage{titlesec}
 
 \usepackage[export]{adjustbox}
 \usepackage{fancyhdr}
@@ -27,10 +29,22 @@
 \usepackage{tabularx}
 \usepackage{framed}
 
-% \newcommand{\runsubsection}[1]{
-% \fontsize{11pt}{9pt}\selectfont\scshape {#1} }
+\setlength\parindent{0pt}
+
+\titleformat{\section}
+{\normalsize}
+{\hspace{-0.75em}}
+{0em}
+{}
+
+
+\titleformat{\subsection}
+{\footnotesize}
+{}
+{0em}
+{}
 
-\newcommand{\ruler}[0]{{\color{gray}\rule{13cm}{.2pt}\vspace{0.3cm}}}
+\newcommand{\ruler}[0]{{\color{gray}\rule{12cm}{.2pt}\vspace{0.25cm}}}
 
 \newcommand{\largesubsection}[1]{
 \normalsize\selectfont\fontshape{}\textbf{#1}}
@@ -44,13 +58,13 @@
 % Company name
 \\\vspace{0.04cm}\fontshape{}\small\selectfont{#2}
 % Duration
-\\{\color{gray}\vspace{-0.05cm}\fontshape{}\footnotesize\selectfont{#3}}
+\\{\color{gray}\vspace{-0.05cm}\fontshape{}\scriptsize\selectfont{#3}}
 % Location
-\\{\color{gray}\vspace{0.1cm}\fontshape{}\footnotesize\selectfont{#4}}
+\\{\color{gray}\vspace{0.1cm}\fontshape{}\scriptsize\selectfont{#4}}
 % Description
 % According to Google Recruiters, use the XYZ formula - Accomplished [X] as measured by [Y], by doing [Z]
-\\\begin{minipage}{13cm}
-\fontshape{}\fontsize{8pt}{8pt}\selectfont{#5}
+\\\begin{minipage}{12cm}
+\fontshape{}\scriptsize\selectfont{#5}
 \end{minipage}
 }
 
@@ -60,10 +74,10 @@
 % Course
 \\\fontshape{}\small\selectfont{#2}
 % When
-\\{\color{gray}\vspace{0.2cm}\fontshape{}\footnotesize\selectfont{#3}}
+\\{\color{gray}\vspace{0.2cm}\fontshape{}\scriptsize\selectfont{#3}}
 % Description
-\\\begin{minipage}{13cm}
-\fontshape{}\footnotesize\selectfont{#4}
+\\\begin{minipage}{12cm}
+\fontshape{}\scriptsize\selectfont{#4}
 \end{minipage}
 }
 
@@ -71,10 +85,10 @@
 % Name
 \fontshape{}\normalsize\selectfont\textbf{#1}
 % When
-\\{\color{gray}\vspace{0.2cm}\fontshape{}\footnotesize\selectfont{#2}}
+\\{\color{gray}\vspace{0.2cm}\fontshape{}\scriptsize\selectfont{#2}}
 % Description
-\\\begin{minipage}{13cm}
-\fontshape{}\footnotesize\selectfont{#3}
+\\\begin{minipage}{12cm}
+\fontshape{}\scriptsize\selectfont{#3}
 \end{minipage}
 }
 
@@ -88,26 +102,23 @@
 
 }
 
-\usepackage[left = 1 cm, right = 1 cm, top = 0.75 cm, bottom = 0.5 cm]{geometry}
-\setlength\parindent{0pt}
-
 \begin{document}
 \begin{samepage}
 {\fontfamily{lmss}\selectfont
 \input{title}
-      \begin{minipage}[t]{0.66\textwidth}
-        \input{work}
-
-        \input{edu}
-
+      \begin{minipage}[t]{0.63\textwidth}
+        \input{experiance}
+        \vspace{-0.5cm}
+        \input{education}
+        \vspace{-0.5cm}
         \input{projects}
       \end{minipage}
     \hspace{.03\linewidth}
-\framebox[1.15\width][l]{    \begin{minipage}[t]{0.25\textwidth}
+\framebox[1.15\width][l]{    \begin{minipage}[t]{0.27\textwidth}
 
-        \input{tech}
+        \input{technical}
         \vspace{0.2cm}
-        \input{other}
+        \input{general}
     \end{minipage}}
     }
   \end{samepage}
-- 
cgit v1.2.3-70-g09d2

