- #1
Eclair_de_XII
- 1,083
- 91
- TL;DR Summary
- Quick question. Title gives the most straight-forward version of it.
This is some sample code that I drew up.
The name is "\PFlink"
The macro is "\linktoPF"
My question is this: Would you be able to tell which is the name and which is the macro without referring to their respective definitions in the pre-amble below?
Functionality-wise, they both seem to do exactly the same thing: link to this site. Are they different in any way, or no? If so, how would you show someone that they are different without telling the arbitrary novice to just look at the definitions of them in the pre-amble?
The name is "\PFlink"
The macro is "\linktoPF"
My question is this: Would you be able to tell which is the name and which is the macro without referring to their respective definitions in the pre-amble below?
Code:
\documentclass{article}
\usepackage{hyperref}
\def\PFlink{\href{https://www.physicsforums.com/}{Welcome to Physics Forums!}}
\newcommand{\linkToPF}{\href{https://www.physicsforums.com/}{Welcome to Physics Forums!}}
\begin{document}
\paragraph{Names vs. Macros}
These are links to PhysicsForums.com. One of them is in the form of a name and the other in the form of a macro.
\begin{description}
\item[name] \PFlink
\item[macro] \linkToPF
\end{description}
\end{document}
Functionality-wise, they both seem to do exactly the same thing: link to this site. Are they different in any way, or no? If so, how would you show someone that they are different without telling the arbitrary novice to just look at the definitions of them in the pre-amble?