updates: add zoey resume
This commit is contained in:
parent
8a737fbb37
commit
efd7999992
3 changed files with 109 additions and 11 deletions
35
.latexmkrc
Normal file
35
.latexmkrc
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
# .latexmkrc
|
||||||
|
$pdf_mode = 4; # Generate PDF using lualatex
|
||||||
|
$lualatex = 'lualatex -interaction=nonstopmode -shell-escape';
|
||||||
|
$clean_ext = 'aux fdb_latexmk fls log synctex.gz xdv';
|
||||||
|
|
||||||
|
# Check if isZoey is set
|
||||||
|
$is_zoey = $ENV{isZoey} || '0'; # Default to false
|
||||||
|
|
||||||
|
# Set variables based on isZoey
|
||||||
|
if ($is_zoey eq '1') {
|
||||||
|
$name = 'Zoey Myers';
|
||||||
|
$email = 'hi@zoeys.computer';
|
||||||
|
$website = 'zoeys.computer';
|
||||||
|
$social = '\\emoji{transgender-flag}';
|
||||||
|
$linkedin = ''; # Empty or alternative URL if needed
|
||||||
|
} else {
|
||||||
|
$name = 'Zachary Myers';
|
||||||
|
$email = 'me@zackmyers.io';
|
||||||
|
$website = 'zackmyers.io';
|
||||||
|
$social = 'zackartz';
|
||||||
|
$linkedin = 'https://www.linkedin.com/in/zachary-myers-b9a150186/';
|
||||||
|
}
|
||||||
|
|
||||||
|
$lualatex = "lualatex '\\newcommand{\\myname}{Default}" .
|
||||||
|
"\\newcommand{\\myemail}{Default}" .
|
||||||
|
"\\newcommand{\\mywebsite}{Default}" .
|
||||||
|
"\\newcommand{\\mysocial}{Default}" .
|
||||||
|
"\\newcommand{\\mylinkedin}{Default}" .
|
||||||
|
"\\newcommand{\\gituser}{zackartz}" .
|
||||||
|
"\\renewcommand{\\myname}{$name}" .
|
||||||
|
"\\renewcommand{\\myemail}{$email}" .
|
||||||
|
"\\renewcommand{\\mywebsite}{$website}" .
|
||||||
|
"\\renewcommand{\\mysocial}{$social}" .
|
||||||
|
"\\renewcommand{\\mylinkedin}{$linkedin}" .
|
||||||
|
"\\input{%S}'";
|
||||||
49
flake.nix
49
flake.nix
|
|
@ -24,24 +24,59 @@
|
||||||
pkgs.coreutils
|
pkgs.coreutils
|
||||||
pkgs.findutils
|
pkgs.findutils
|
||||||
pkgs.texlive.combined.scheme-full
|
pkgs.texlive.combined.scheme-full
|
||||||
|
pkgs.noto-fonts-color-emoji
|
||||||
|
pkgs.fontconfig
|
||||||
|
pkgs.dejavu_fonts
|
||||||
|
pkgs.gnugrep
|
||||||
];
|
];
|
||||||
|
|
||||||
|
FONTCONFIG_FILE = pkgs.makeFontsConf {
|
||||||
|
fontDirectories = [
|
||||||
|
pkgs.noto-fonts-color-emoji
|
||||||
|
pkgs.dejavu_fonts
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export PATH="${pkgs.lib.makeBinPath buildInputs}"
|
export PATH="${pkgs.lib.makeBinPath buildInputs}"
|
||||||
echo $PATH
|
export XDG_CACHE_HOME="$PWD/.cache"
|
||||||
mkdir -p .cache/texmf-var
|
export FONTCONFIG_CACHE_DIR="$PWD/.cache/fontconfig"
|
||||||
|
|
||||||
|
mkdir -p .cache/texmf-var $FONTCONFIG_CACHE_DIR
|
||||||
|
|
||||||
|
# Rebuild font cache (redirect stderr to suppress font cache messages)
|
||||||
|
fc-cache -f -v 2>&1 | grep -v "caching" | grep -v "skipping" || true
|
||||||
|
|
||||||
|
# Run latexmk and filter out specific warnings
|
||||||
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \
|
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \
|
||||||
latexmk -interaction=nonstopmode -f -pdf \
|
isZoey=1 latexmk -interaction=nonstopmode -f resume.tex 2>&1 \
|
||||||
resume.tex
|
| grep -v "Missing character" \
|
||||||
|
| grep -v "Font.*cache" \
|
||||||
|
| grep -v "fontconfig:" \
|
||||||
|
| grep -v "looped directory detected" \
|
||||||
|
|| [ $? -eq 1 ] # Allow latexmk to fail but still show output
|
||||||
|
mv resume.pdf ZoeyMyersResume.pdf
|
||||||
|
|
||||||
|
env TEXMFHOME=.cache TEXMFVAR=.cache/texmf-var \
|
||||||
|
isZoey=0 latexmk -interaction=nonstopmode -f resume.tex 2>&1 \
|
||||||
|
| grep -v "Missing character" \
|
||||||
|
| grep -v "Font.*cache" \
|
||||||
|
| grep -v "fontconfig:" \
|
||||||
|
| grep -v "looped directory detected" \
|
||||||
|
|| [ $? -eq 1 ]
|
||||||
|
mv resume.pdf ZacharyMyersResume.pdf
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p $out
|
||||||
cp resume.pdf $out/
|
cp *.pdf $out/
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
pdf = pkgs.runCommand "resume-pdf" {} ''
|
pdf = pkgs.runCommand "resume-pdf" {} ''
|
||||||
mkdir -p $out/nix-support
|
mkdir -p $out/nix-support
|
||||||
cp ${self.packages.${pkgs.system}.default}/resume.pdf $out/
|
cp ${self.packages.${pkgs.system}.default}/ZoeyMyersResume.pdf $out/
|
||||||
echo "file pdf $out/resume.pdf" > $out/nix-support/hydra-build-products
|
cp ${self.packages.${pkgs.system}.default}/ZacharyMyersResume.pdf $out/
|
||||||
|
echo "file pdf $out/ZoeyMyersResume.pdf" > $out/nix-support/hydra-build-products
|
||||||
|
echo "file pdf $out/ZacharyMyersResume.pdf" >> $out/nix-support/hydra-build-products
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
36
resume.tex
36
resume.tex
|
|
@ -6,6 +6,16 @@
|
||||||
|
|
||||||
\documentclass[letterpaper,5pt]{article}
|
\documentclass[letterpaper,5pt]{article}
|
||||||
|
|
||||||
|
\providecommand{\myname}{Zachary Myers}
|
||||||
|
\providecommand{\myemail}{me@zackmyers.io}
|
||||||
|
\providecommand{\mywebsite}{zackmyers.io}
|
||||||
|
\providecommand{\mysocial}{zackartz}
|
||||||
|
\providecommand{\mylinkedin}{https://www.linkedin.com/in/zachary-myers-b9a150186/}
|
||||||
|
|
||||||
|
\usepackage[utf8]{inputenc}
|
||||||
|
\usepackage{newunicodechar}
|
||||||
|
\usepackage{fontspec} % For Unicode symbols
|
||||||
|
|
||||||
\usepackage[mocha]{catppuccin}
|
\usepackage[mocha]{catppuccin}
|
||||||
\usepackage{latexsym}
|
\usepackage{latexsym}
|
||||||
\usepackage[empty]{fullpage}
|
\usepackage[empty]{fullpage}
|
||||||
|
|
@ -16,8 +26,16 @@
|
||||||
\usepackage[english]{babel}
|
\usepackage[english]{babel}
|
||||||
\usepackage{tabularx}
|
\usepackage{tabularx}
|
||||||
\usepackage{fontawesome5}
|
\usepackage{fontawesome5}
|
||||||
|
\usepackage{emoji}
|
||||||
% \input{glyphtounicode}
|
% \input{glyphtounicode}
|
||||||
|
|
||||||
|
|
||||||
|
\setemojifont{Noto Color Emoji}[
|
||||||
|
Path = /nix/store/y2h3pmlj3msxm8f1fw99kpbl2kfr2sr3-noto-fonts-color-emoji-2.042/share/fonts/noto/,
|
||||||
|
Extension = .ttf
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
\setlength{\footskip}{3.60004pt}
|
\setlength{\footskip}{3.60004pt}
|
||||||
\pagestyle{fancy}
|
\pagestyle{fancy}
|
||||||
\fancyhf{} % clear all header and footer fields
|
\fancyhf{} % clear all header and footer fields
|
||||||
|
|
@ -85,18 +103,28 @@
|
||||||
}
|
}
|
||||||
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{0pt}}
|
\newcommand{\resumeItemListEnd}{\end{itemize}\vspace{0pt}}
|
||||||
|
|
||||||
|
\newcommand{\equal}[2]{\ifnum\pdf@strcmp{#1}{#2}=0 }
|
||||||
|
\newcommand{\sociallinks}{%
|
||||||
|
\ifx\mysocial\gituser
|
||||||
|
{\faLinkedin\space\href{\mylinkedin}{\underline{\myname}}} {\space\space\space}%
|
||||||
|
{\faIcon{github}\space\href{https://github.com/\mysocial}{\underline{\mysocial}}} {\space\space\space}%
|
||||||
|
\else
|
||||||
|
{\mysocial} {\space\space\space}%
|
||||||
|
\fi
|
||||||
|
}
|
||||||
|
|
||||||
%-------------------------------------------
|
%-------------------------------------------
|
||||||
%%%%%% CV STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%% CV STARTS HERE %%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
|
|
||||||
%----------HEADING-----------------
|
%----------HEADING-----------------
|
||||||
\begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r}
|
\begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r}
|
||||||
\textbf{\href{https://zackmyers.io/}{\Large \color{ctpBlue}Zachary Myers}} & {\faIcon{envelope}\space}Email : \href{mailto:me@zackmyers.io}{me@zackmyers.io}\\
|
\textbf{\href{https://\mywebsite/}{\Large \color{ctpBlue}\myname}} & {\faIcon{envelope}\space}Email : \href{mailto:\myemail}{\myemail}\\
|
||||||
{\faLinkedin\space\href{https://www.linkedin.com/in/zachary-myers-b9a150186/}{\underline{Zachary Myers}}} {\space\space\space}
|
\sociallinks
|
||||||
{\faIcon{github}\space\href{https://github.com/zackartz}{\underline{zackartz}}} {\space\space\space}
|
{\faIcon{user}\space \href{https://\mywebsite}{\underline{Website}}} {\space\space\space}
|
||||||
{\faIcon{user}\space \href{https://zackmyers.io}{\underline{Website}}} {\space\space\space}
|
|
||||||
{\faIcon{passport}\space{{US Citizen}}}{\space\space\space}
|
{\faIcon{passport}\space{{US Citizen}}}{\space\space\space}
|
||||||
{\faIcon{clock}\space{EST/EDT}}
|
{\faIcon{clock}\space{EST/EDT}}
|
||||||
{\space\space\space}
|
{\space\space\space}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue