Untitled
unknown
latex
2 years ago
6.4 kB
6
Indexable
% -- load the article class and options \NeedsTeXFormat{LaTeX2e} \ProvidesClass{awesome-cv}[Resume of Tareq Aziz Khan] \LoadClassWithOptions{scrartcl} % -- set the page margins \RequirePackage[hmargin=1.25cm,vmargin=1.25cm,twocolumn,columnsep=1.25cm]{geometry} % -- load additional packages \RequirePackage{ bookman, booktabs, enumitem, etoolbox, fontawesome, hyperref, lmodern, mdframed, multirow, needspace, pifont, ragged2e, setspace, tabularx, tikz, xcolor, xfakebold, xhfill } % -- set the font encodings and input encoding \RequirePackage[T1]{fontenc} \RequirePackage[utf8]{inputenc} % -- define the colors \definecolor{colorlink}{HTML}{224191} \definecolor{link}{HTML}{2c527d} \definecolor{lightgray}{HTML}{292929} % -- define a command for setting the global text color \newcommand{\globalcolor}[1]{% \color{#1}\global\let\default@color\current@color} % -- define a command for checking the job name \newcommand\ifjob[3]{% \edef\JOBNAME{\jobname}% \edef\PIVOT{\detokenize{#1}}% \ifdefstrequal{\JOBNAME}{\PIVOT}{#2}{#3}} % -- define a command for capitalizing words \newcommand\ucwords[2][3]{% \providecommand\directlua[1]{#2}% \directlua{% local minlen = tonumber("#1") local src = "\luaescapestring{\unexpanded{#2}}" local dst = {} for w in src:gmatch(string.char(37) .. "S+") do if w:len() >= minlen then table.insert(dst, w:sub(1,1):upper() .. w:sub(2)) else table.insert(dst, w) end end tex.print(dst)}} % -- define a command for creating tags \newcommand{\tag}[1]{% \tikz[baseline]\node[ anchor=base, draw=black!90!white!35, rounded corners, inner xsep=0.78ex, inner ysep =0.75ex, text height=1.5ex, text depth=.25ex]{ \fontsize{2.3ex}{0pt}\selectfont#1 };} % -- define a command for the name \newcommand{\name}[1]{{% \fontsize{6.0ex}{0pt}\selectfont% set font size #1}} % Header \renewcommand\part[2][]{% Defines a new part command, redefining an existing one \twocolumn[{% Start a two-column layout \setlength\arrayrulewidth{1.25pt}% Set the thickness of the horizontal line \begin{tabularx}{\textwidth}{@{}X@{}r@{}}% Create a table with two columns \multirow{2}*% {\name{#2}}% Use a custom \name command to display the name &% \href% {mailto:tare@gmail.com}% Create a hyperlink to the email address {tare@gmail.com} \faEnvelopeO\\% Use Font Awesome icon for email &% \href% {https://www.linkedin.com/in/the-badcoder/}% Create a hyperlink to LinkedIn profile {linkedin.com/in/tare} \faLinkedin\\% Use Font Awesome icon for LinkedIn Sylhet, Bangladesh | +880 17tare2% Display location and phone number &% \href% {https://github.com/ttareer}% Create a hyperlink to the GitHub profile {github.com/the-tarer} \faGithub \medskip\\% Use Font Awesome icon for GitHub \cline{1-2}% Draw a horizontal line \medskip% Add vertical space \end{tabularx}}]} % Section \let\old@section\section % Save the original \section command as \old@section \renewcommand\section[2][]{% Define a new \section command with two arguments \vspace{-0.8ex}% Reduce the vertical space before the section title \old@section[#1]{% Call the original \section command with the optional argument #1 \textcolor{black}{% Set the section title color to black \ucwords{\Large\MakeUppercase{#2}}}% Capitalize and style the section title \enspace\xrfill[0.7ex]{0.5pt}}% Add a horizontal line below the section title \vspace{-0.8ex}}% Reduce the vertical space after the section title % Subsection title \newcommand{\subsssectiontitle}[1]{% Define a new command with one argument {% \fontsize{13pt}{0pt}\selectfont% Set the font size to 13pt \textbf{#1}}}% Make the text bold % Titles for work experience section \newcommand\worksubsection[3]{% Define a new command with three arguments {% \textbf{#1}% Make the first argument bold }% \vspace{2pt}\\% Add vertical space and a line break after the first argument #2\vspace{0.5pt}\\% Add the second argument and a small amount of vertical space #3}% Add the third argument % Titles for project section \newcommand\projectsubsection[2]{% Define a new command with two arguments {% % \fontsize{13pt}{0pt}\selectfont% Set the font size to 13pt \textbf{#1}% Make the first argument bold }% \vspace{2pt}\\% Add vertical space and a line break after the first argument #2}% Add the second argument % Define a new command named 'projectsubsectionnew' with one parameter \newcommand\projectsubsectionnew[1]{ {% Start of a new group \textbf{#1}% Typeset the parameter in bold font }% End of the group } % Define a new command named 'awardssubsection' with one parameter \newcommand\awardssubsection[1]{ {% Start of a new group \textbf{#1}% Typeset the parameter in bold font }% End of the group } % -------------------------- % Document global settings % -------------------------- % Use the KOMAoption command to set the bibliography option to "totocnumbered" \KOMAoption{bibliography}{totocnumbered} % At the end of the preamble, define the heading for the bibliography (if biblatex is loaded) \AtEndPreamble{% \@ifpackageloaded{biblatex}{% \defbibheading{bibliography}[\refname]{% \section{#1}}}% {}% } % Set the page style to "empty" \pagestyle{empty} % At the beginning of the document, set the text color to black \AtBeginDocument{\globalcolor{black}} % Set the default foreground color to HTML color #303030 \color[HTML]{303030} % Set the hyperlink colors to black \hypersetup{colorlinks,breaklinks,urlcolor=black,linkcolor=black} % Set the font color for section headings to black \setkomafont{disposition}{\color[HTML]{000000}} % Set the font style for section headings to small caps, large, and medium weight \setkomafont{section}{\scshape\Large\mdseries} % Remove section numbering \setcounter{secnumdepth}{-1} % Set the paragraph indentation to 0 \setlength\parindent{0pt} %% End
Editor is loading...