I'm writing a CV for my wife using moderncv. We're not sure whether her supervisor wants links in the document, so every time a link might be required, I write the text twice:
PhD student at the Weizmann Institute of Science
% PhD student at the \textcolor{cyan}{\href{http://www.weizmann.ac.il/}{Weizmann Institute of Science}}}
If the tutor decides that we should use links, I will comment out the unlinke text:
% PhD student at the Weizmann Institute of Science
PhD student at the \textcolor{cyan}{\href{http://www.weizmann.ac.il/}{Weizmann Institute of Science}}}
I don't like duplicating code, so I was looking for a way to define a Tex macro for my link style. Perhaps something like:
PhD student at the {\myhref{http://www.weizmann.ac.il/}{Weizmann Institute of Science}}
Where \myhref is defined once at the top, where I can toggle the links on and off, and set the link colors if they exist.
Is there a way to define a global, custom macro in tex?
