LaTeX link 在表格块内使用 href 时出错
LaTeX link error using href inside of tabular block
我有这个 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}
我有这个 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}