我想在 beamer 中用不同的颜色突出显示链接的文本。例如,我的代码如下:
\documentclass[a4paper]{beamer}
\usepackage{hyperref}
\begin{document}
\begin{frame}{tex.stackexchange.com}
My first Question:
\href{http://tex.stackexchange.com/questions/224863/package-pgf-error-no-shape-named-is- known}{Package pgf Error: No shape named is known}
\end{frame}
\end{document}
我想强调的是
包-pgf-错误-没有已知形状名称
颜色不同,有人能帮助我吗?
答案1
快速而肮脏的方法是使用\alert
:
\alert{Package pgf Error: No shape named is known}
或将colorlinks
选项传递给
\documentclass[a4paper,colorlinks]{beamer}
%\documentclass[a4paper,colorlinks]{beamer}
\documentclass[a4paper]{beamer}
\usepackage{hyperref}
\begin{document}
\begin{frame}{tex.stackexchange.com}
My first Question:
\href{http://tex.stackexchange.com/questions/224863/package-pgf-error-no-shape-named-is- known}{\alert{Package pgf Error: No shape named is known}}
\end{frame}
\end{document}
然后当然要玩颜色。