I have very simple question I hope! I am writing a book on MPASM (PIC) assembler and there will be very many similar links to programs, hex files, videos etc. These will be enclosed in a standard tabular, which will be used many times. The tabular works fine when I type in the links directly within the tabular, but inside a macro the only one which works is the \href{{#1}}. This I think is fully expanded as the url is passed to the macro directly. The others such as \href{http://ift.tt/1znusEi{#2}.hex} do not work as the #2 which will be something like 0x00 I think does not get expanded properly. I am hoping there is a simple way around this.
\newcommand{\linktable}[3]{
\begin{center}
\begin{tabular}{|c|c|c|c|c|}
\hline
\cellcolor{red}{\href{{#1}}{\color{white}Video {\large \eye}}}&\cellcolor{orange}
\href{http://ift.tt/1BgjC7b File {\Hexasteel}}&
\cellcolor{yellow} \href{http://ift.tt/1znusUQ}
{Listing {\rightpointleft}} &\cellcolor{green}\href{http://ift.tt/1BgjAfr
/package/PROJ{#2}.zip}{Project {\satellitedish}}&\cellcolor{blue}
\href{http://ift.tt/1znusUY}'d' file {\smallpencil}}}\\
\hline
\end{tabular}
\end{center}
Aucun commentaire:
Enregistrer un commentaire