我有这个LaTeX代码:
\begin{tabular}[t]{@{}l} \small MY ADDRESS\\
\href{http://www.github.com}{github} \end{tabular}
哪个给了我这个错误,没有其他细节......
Undefined control sequence.
<recently read> \href
l.27 \href
{http://www.github.com}{github} \end{tabular}
有谁知道为什么?
你需要加载hyperref
package才能使用\href{<url>}{<stuff>}
:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{tabular}[t]{@{}l}
\small MY ADDRESS \\
\href{http://www.github.com}{github}
\end{tabular}
\end{document}