Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems adding profile picture #93

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
main.*
pdfa.*
!main.tex
Binary file removed Globe_High.png
Binary file not shown.
28 changes: 13 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
# AltaCV, yet another LaTeX CV/Résumé class
# AltaCV, yet another LaTeX CV/Résumé class | A fork

v1.6.4 (13 Nov 2021), by LianTze Lim ([email protected])

## Original Sample

This is how the orignal re-created résumé looks like ([view/open on Overleaf](https://www.overleaf.com/latex/examples/recreating-business-insiders-cv-of-marissa-mayer-using-altacv/gtqfpbwncfvp)):
v1.6.4 (13 Nov 2021), by LianTze Lim ([email protected])
* Starred `\NewInfoField*` command to handle Mastodon; Icons, `\cvskills`, `\wheelchart` have "copyable" text values; `\cvskill` supports numerical values {0.5, 1, ..., 4.5, 5} on 21 May 2021
* Moved `biblatex`-related code to `*.cfg` files for easier edit on 8 May 2021
* Removed dependency on `academicons` on 12 Apr 2021
* Clickable hyperlinked info fields added on 10 May 2020
* Sample file with new `paracol` layout added on 2 February 2020

(Thanks to [Nur](https://github.com/nurh) for the name.)

It all started with this:

[<img src="tweet-that-started-this.png" width="500px">](https://twitter.com/Leonduck/status/764281546408923136)

Leonardo was talking about a [résumé of Marissa Mayer that Business Insider put together](http://www.businessinsider.my/a-sample-resume-for-marissa-mayer-2016-7/) using [enhancv.com](https://enhancv.com).
I _knew_ I had to do something about it. And so AltaCV was born.

## Samples
## Forked Sample

This is how the re-created résumé looks like ([view/open on Overleaf](https://www.overleaf.com/latex/examples/recreating-business-insiders-cv-of-marissa-mayer-using-altacv/gtqfpbwncfvp)):
As a personal adition, I wanted to add a color variation following the "dark mode". In order to use it, add the `darkmode` option in line 31 of file `main.tex`.

<img src="mmayer.png" alt="Marissa Mayer's résumé, re-created with AltaCV" width="600px">
Though if you're creating your own CV/résumé, you'd probably prefer using the basic template ([view/open on Overleaf](https://www.overleaf.com/latex/templates/altacv-nicolasomar-fork/htfpmrwhbwpw)):

Though if you're creating your own CV/résumé, you'd probably prefer using the basic template ([view/open on Overleaf](https://www.overleaf.com/latex/templates/altacv-template/trgqjpwnmtgv)):
This is how the final version looks like on:

<img src="sample.png" alt="sample barebones AltaCV template" width="600px">
### Light mode
<img src="sampleLightMode.png" alt="Résumé sample | Light mode, based on AltaCV" width="300px">

### Dark mode
<img src="sampleDarkMode.png" alt="Résumé sample | Dark mode, based on AltaCV" width="300px">

## Requirements and Compilation

Expand Down
Binary file removed Suitcase_High.png
Binary file not shown.
Binary file removed Yacht_High.png
Binary file not shown.
61 changes: 36 additions & 25 deletions altacv.cls
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
%%%%%%%%%%%%%%%%%
% This is altacv.cls (v1.6.4, 13 Nov 2021) written by
% LianTze Lim ([email protected]).
% This fork/modified version has been made by Nicolás Omar González Passerino ([email protected], 15 Oct 2020)
%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
Expand All @@ -12,6 +13,7 @@
%%
%%
% Contributions:
% - https://github.com/liantze/AltaCV Original template
% - https://github.com/akreuzer Added ragged2e option (5 Nov 2018)
% - https://github.com/stefanogermano Fixed bad boxes and undefined font shape (July 2018)
% - https://github.com/foohyfooh Fixed blank spaces in \cvevent and bad link in README.md (June 2018)
Expand All @@ -33,6 +35,8 @@
%% v1.3: load hyperref for clickable hyperlinks
\newif\if@withhyper
\DeclareOption{withhyper}{\@withhypertrue}
\newif\ifdarkmode
\DeclareOption{darkmode}{\darkmodetrue}
\ProcessOptions\relax

\LoadClass{extarticle}
Expand All @@ -46,6 +50,7 @@
\RequirePackage{ifxetex,ifluatex}
\RequirePackage{scrlfile}
\RequirePackage{xparse}
\RequirePackage{markdown}

%% v1.1.5: added for convenience
\newif\ifxetexorluatex
Expand Down Expand Up @@ -87,15 +92,6 @@
\fi

\RequirePackage{xcolor}

\colorlet{accent}{blue!70!black}
\colorlet{emphasis}{black}
\colorlet{heading}{black}
\colorlet{headingrule}{black}
\colorlet{subheading}{emphasis}
\colorlet{body}{black!80!white}
\colorlet{name}{heading}
\colorlet{tagline}{accent}
\newcommand{\itemmarker}{{\small\textbullet}}
\newcommand{\ratingmarker}{\faCircle}

Expand Down Expand Up @@ -201,6 +197,9 @@
% v1.?? Use fontawesome5 for Orcid symbol
\NewInfoField{orcid}{\faOrcid}[https://orcid.org/]
\NewInfoField{location}{\faMapMarker}
% Fork: New optional options added for dev and medium accounts
\NewInfoField{dev}{\faDev}[https://dev.to/]
\NewInfoField{medium}{\faMedium}[https://medium.com/@]

% v1.2: Support for multiple photos
\newlength{\altacv@photos@width}
Expand All @@ -214,21 +213,23 @@
\if@normalphoto
\includegraphics[width=\linewidth]{#2}
\else
\tikz\path[fill overzoom image={#2}]circle[radius=0.5\linewidth];
% Fork: The photo image has modified to include a border around it, which color is aligned to document's theme
\tikz\filldraw[color=headingrule, fill overzoom image={#2}, ultra thick](-1,0) circle[radius=0.5\linewidth];
\fi%
\end{minipage}%
}

% Fork: Horizontal space changed from 1ex to 6,5ex to align photo container width to smaller column width (25%)
\newcommand{\altacv@add@photo@left}[1]{%
\appto{\altacv@left@photos}{%
\@makeaphoto{\altacv@photo@diam@left}{#1}\hspace{1ex}%
\@makeaphoto{\altacv@photo@diam@left}{#1}\hspace{6,5ex}%
}%
\addtolength{\altacv@photos@width}{\altacv@photo@diam@left}%
\addtolength{\altacv@photos@width}{1ex}%
}
\newcommand{\altacv@add@photo@right}[1]{%
\appto{\altacv@right@photos}{%
\@makeaphoto{\altacv@photo@diam@right}{#1}\hspace{1ex}%
\@makeaphoto{\altacv@photo@diam@right}{#1}\hspace{6,5ex}%
}%
\addtolength{\altacv@photos@width}{\altacv@photo@diam@right}%
\addtolength{\altacv@photos@width}{1ex}%
Expand Down Expand Up @@ -266,6 +267,7 @@

\renewenvironment{quote}{\color{accent}\itshape\large}{\par}

% Fork: Two bigskip tags added for better section separation
\newcommand{\cvsection}[2][]{%
\nointerlineskip\bigskip% %% bugfix in v1.6.2
\ifstrequal{#1}{}{}{\marginpar{\vspace*{\dimexpr1pt-\baselineskip}\raggedright\input{#1}}}%
Expand All @@ -279,14 +281,13 @@
}

% v1.1.4: fixes inconsistent font size
% Fork: structure modified to include change title, company name, start/end dates and work location (only a string)
\newcommand{\cvevent}[4]{%
{\large\color{emphasis}#1\par}
\smallskip\normalsize
\ifstrequal{#2}{}{}{
\textbf{\color{accent}#2}\par
\smallskip}
\ifstrequal{#3}{}{}{{\small\makebox[0.5\linewidth][l]{\faCalendar~#3}}}%
\ifstrequal{#4}{}{}{{\small\makebox[0.5\linewidth][l]{\faMapMarker~#4}}}\par
{\large\color{emphasis}#1}
\ifstrequal{#2}{}{}{\large{\color{accent}#2}}
\par\medskip\normalsize
\ifstrequal{#3}{}{}{{\small\makebox[0.5\linewidth][l]{\color{accent}\faCalendar\color{emphasis}~#3}}}
\ifstrequal{#4}{}{}{{\small\makebox[0.5\linewidth][l]{\color{accent}\faMapMarker\color{emphasis}~#4}}}\par
\medskip\normalsize
}

Expand All @@ -298,8 +299,10 @@
\smallskip
}

% Fork: Tags now have a more consistent vertican and horizontal separation
\newcommand{\cvtag}[1]{%
\tikz[baseline]\node[anchor=base,draw=body!30,rounded corners,inner xsep=1ex,inner ysep =0.75ex,text height=1.5ex,text depth=.25ex]{#1};
\tikz[baseline]\node[anchor=base,draw=body,rounded corners,inner xsep=1ex,inner ysep=0.75ex,text height=1.5ex,text depth=.25ex]{#1};
\vspace{0.25ex}
}

% v1.6: Use accsupp so that the actual numeric value is copied/pasted
Expand All @@ -315,6 +318,12 @@
}\EndAccSupp{}\par%
}

% Fork: Tag added for languages rating, avoiding star/button/progress bar previous ideas, I made a simpler and more accurate representation using a single string, which will be colored to be oustanding
\newcommand{\cvlang}[2]{%
\textcolor{emphasis}{\textbf{#1: }}
\textcolor{accent}{\textbf{#2}}
}

% Adapted from @Jake's answer at http://tex.stackexchange.com/a/82729/226
\newcommand{\wheelchart}[4][0]{%
\begingroup\centering
Expand Down Expand Up @@ -371,14 +380,16 @@
\endgroup
}

\newcommand{\cvref}[3]{%
\smallskip
% Fork: CV reference tag has been modified to accept only linkedin accounts instead mail. It can be modified easily in case you need to display other type of contact
\newcommand{\cvref}[2]{%
\textcolor{emphasis}{\textbf{#1}}\par
\begin{description}[font=\color{accent},style=multiline,leftmargin=1.35em,align=left]
\item[\small\normalfont\emailsymbol] #2
\item[\small\normalfont\mailaddresssymbol] #3
\item[\small\normalfont\faLinkedin]\href{https://linkedin.com/in/#2}{#2}
\end{description}
% \medskip
}

\newcommand{\cvrepo}[2]{
\textcolor{accent}{\href{#2}{#1}}
}

\newenvironment{cvcolumn}[1]{\begin{minipage}[t]{#1}\raggedright}{\end{minipage}}
Expand Down
Binary file added john-doe.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading