I am using this resume template.
There is no \homepage
defined in the resume.cls
file, does this mean I can't add a homepage address?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI am using this resume template.
There is no \homepage
defined in the resume.cls
file, does this mean I can't add a homepage address?
There are two cases:
\address
sYou just have to use the last one:
main.tex
etc etc...
\documentclass{resume} % Use the custom resume.cls style
\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} % Document margins
\usepackage{hyperref}
\newcommand{\tab}[1]{\hspace{.2667\textwidth}\rlap{#1}}
\newcommand{\itab}[1]{\hspace{0em}\rlap{#1}}
\name{Rishi Shah} % Your name
\address{156 Kasturi, Balajinagar, Sangli 416416} % Your address
\address{Homepage: \href{https://tex.stackexchange.com/}{\texttt{https://tex.stackexchange.com/}}} % Your secondary addess (optional)
\address{(+91)9975808780 \\ rishishah105@gmail.com} % Your phone number and email
\begin{document}
%----------------------------------------------------------------------------------------
etc etc...
\address
s:First you have to modify resume.cls
a little bit:
resume.cls
Add
\let \@addressfour \relax
after \let \@addressthree \relax
.
Change the definition of \address
to
\def \address #1{
\@ifundefined{@addresstwo}{
\def \@addresstwo {#1}
}{
\@ifundefined{@addressthree}{
\def \@addressthree {#1}
}{
\@ifundefined{@addressfour}{
\def \@addressfour {#1}
}{
\def \@addressone {#1}
}
}
}
}
Change \renewcommand{\document}{}
:
\renewcommand{\document}{
\ori@document % Begin document
\printname % Print the name specified with \name
\@ifundefined{@addressone}{}{ % Print the first address if specified
\printaddress{\@addressone}}
\@ifundefined{@addresstwo}{}{ % Print the second address if specified
\printaddress{\@addresstwo}}
\@ifundefined{@addressthree}{}{ % Print the third address if specified
\printaddress{\@addressthree}}
\@ifundefined{@addressfour}{}{
\printaddress{\@addressfour}}
}
Now you only have to add another \address
command:
main.tex
etc etc...
%----------------------------------------------------------------------------------------
\documentclass{resume} % Use the custom resume.cls style
\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry} % Document margins
\usepackage{hyperref}
\newcommand{\tab}[1]{\hspace{.2667\textwidth}\rlap{#1}}
\newcommand{\itab}[1]{\hspace{0em}\rlap{#1}}
\name{Rishi Shah} % Your name
\address{156 Kasturi, Balajinagar, Sangli 416416} % Your address
\address{Somewhere in the world} % Your secondary addess (optional)
\address{(+91)9975808780 \\ rishishah105@gmail.com} % Your phone number and email
\address{Homepage: \href{https://tex.stackexchange.com/}{\texttt{https://tex.stackexchange.com/}}}
\begin{document}
%----------------------------------------------------------------------------------------
etc etc...
\homepage
then. Either define it in your document or go to the source fileresume.cls
and define it.