diff options
Diffstat (limited to 'macros/latex/contrib/curriculum-vitae')
-rw-r--r-- | macros/latex/contrib/curriculum-vitae/README.md | 19 | ||||
-rw-r--r-- | macros/latex/contrib/curriculum-vitae/curriculum-vitae-example.pdf | bin | 0 -> 103100 bytes | |||
-rw-r--r-- | macros/latex/contrib/curriculum-vitae/curriculum-vitae-example.tex | 40 | ||||
-rw-r--r-- | macros/latex/contrib/curriculum-vitae/curriculum-vitae.cls | 51 |
4 files changed, 110 insertions, 0 deletions
diff --git a/macros/latex/contrib/curriculum-vitae/README.md b/macros/latex/contrib/curriculum-vitae/README.md new file mode 100644 index 0000000000..6951c93206 --- /dev/null +++ b/macros/latex/contrib/curriculum-vitae/README.md @@ -0,0 +1,19 @@ +# *Curriculum vitae* class for LaTeX + +This is a lightweight class file that makes it convenient to typeset CVs/resumes with LaTeX. It provides a `\cvsection` command and `detail` environment. A sample is included in curriculum-vitae.tex. + +``` +Copyright 2023 Sumukh Prasad + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +```
\ No newline at end of file diff --git a/macros/latex/contrib/curriculum-vitae/curriculum-vitae-example.pdf b/macros/latex/contrib/curriculum-vitae/curriculum-vitae-example.pdf Binary files differnew file mode 100644 index 0000000000..669f0d4004 --- /dev/null +++ b/macros/latex/contrib/curriculum-vitae/curriculum-vitae-example.pdf diff --git a/macros/latex/contrib/curriculum-vitae/curriculum-vitae-example.tex b/macros/latex/contrib/curriculum-vitae/curriculum-vitae-example.tex new file mode 100644 index 0000000000..e11fb3b394 --- /dev/null +++ b/macros/latex/contrib/curriculum-vitae/curriculum-vitae-example.tex @@ -0,0 +1,40 @@ +\documentclass[12pt]{curriculum-vitae} +\usepackage[a4paper, total={7.3in, 9.7in}]{geometry} + +\name{Name Namename} +\mailingaddr{123 High Street, Anytown, County, Postcode} +\desc{Professional Action Figure Collector} +\webpage{www.example.com} +\phone{01234 567 890} + + + +\begin{document} + + \maketitle + + \cvsection[Education]{ + \begin{detail}[School of Action Figure Collecting]{Jan 2000}{Jan 2003} + \begin{itemize} + \item Learnt how to organise action figures + \item Conducted research on action figure heights + \end{itemize} + \end{detail} + } + + \cvsection[Rando Research]{ + \begin{detail}[Action Figure Heights: Are they growing smaller?]{Jan 2000}{Jan 2003} + Very important research article. + \end{detail} + \begin{detail}[Action Figure Heights: Are they growing taller?]{Jan 2000}{Jan 2003} + Another very important research article. + \end{detail} + \subsection{Journals} + \begin{itemize} + \item Journal of Action vol 333 + \item Journal of Action vol 334 + \item Journal of Action vol 335 + \end{itemize} + } + +\end{document}
\ No newline at end of file diff --git a/macros/latex/contrib/curriculum-vitae/curriculum-vitae.cls b/macros/latex/contrib/curriculum-vitae/curriculum-vitae.cls new file mode 100644 index 0000000000..cf4b03e3c2 --- /dev/null +++ b/macros/latex/contrib/curriculum-vitae/curriculum-vitae.cls @@ -0,0 +1,51 @@ +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesClass{curriculum-vitae}[2023/05/17 v1.0 LaTeX class for curriculum vitae] + +\LoadClass[onecolumn]{article} +\def\@name{} +\newcommand{\name}[1]{% + \def\@name{#1}% +} +\def\@webpage{} +\newcommand{\webpage}[1]{% + \def\@webpage{#1}% +} +\def\@phone{} +\newcommand{\phone}[1]{% + \def\@phone{#1}% +} +\def\@desc{} +\newcommand{\desc}[1]{% + \def\@desc{#1}% +} +\def\@email{} +\newcommand{\email}[1]{% + \def\@email{#1}% +} +\def\@mailingaddr{} +\newcommand{\mailingaddr}[1]{% + \def\@mailingaddr{#1}% +} +\renewcommand{\maketitle}{% + \begin{center} + \noindent{\bf\Huge\@name}\vspace{0.5cm}\\{\sc\@desc}\vspace{0.5cm}\\{\it\@mailingaddr}\\{\@phone $\vert$ \@webpage}\vspace{0.25cm}\\% + \noindent\rule{5cm}{0.4pt}\vspace{0.75cm}\\ + \end{center} +} + +\RequirePackage{titlesec} +\titleformat{\section}{\scshape\Large}{\thesection}{1em}{} +\titleformat{\subsection}{\normalfont\bfseries}{\thesubsection}{0.5em}{} +\setcounter{secnumdepth}{-1} +\newcommand{\cvsection}[2][]{ + \noindent\begin{minipage}[t]{4cm} + \begin{flushleft}{{\scshape\Large#1}\addcontentsline{toc}{section}{#1}}\end{flushleft} + \end{minipage} + \hspace{0.5cm}\begin{minipage}[t]{\dimexpr\linewidth-4.5cm\relax} + {#2} + \end{minipage}\vspace{0.2cm}\\ +} + +\newenvironment{detail}[3][]{% + {{\bfseries#1}\addcontentsline{toc}{subsection}{#1}}\hfill#2 -- #3\\% +\small}{\normalsize\noindent\vspace{0.5cm}\\}
\ No newline at end of file |