![在页脚中插入网址](https://linux22.com/image/290817/%E5%9C%A8%E9%A1%B5%E8%84%9A%E4%B8%AD%E6%8F%92%E5%85%A5%E7%BD%91%E5%9D%80.png)
我想在页脚中插入一个 URL,但是这行不通。
我使用以下代码:
\documentclass[12pt,a4paper]{report}
\usepackage{hyperref}
\usepackage{url}
\usepackage{fancyhdr}
\fancyhf{}
\lfoot{\href{www.xyz.com}}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{1.0pt}
\renewcommand{\footrulewidth}{1.0pt}
\pagestyle{fancy}
\begin{document}
hi
\end{document}
它显示的不是 url,而是空白
答案1
\href
有两个参数{URL}{Text}
:
\lfoot{\href{www.xyz.com}{my URL}}