Every semester, I try to get better #PDF #accessibility working for my lecture slides in #TeXLaTeX #beamer. Every semester, I fail for some reason. This time, the problem is that I cannot figure out how to color clickable links without breaking the Beamer theme navigation elements. Using configurations for hyperref like an empty linkcolor works without the accessibility setup, but the accessibility stuff can't handle an empty color. Maybe next time. #a11y
=> More informations about this toot | More toots from elb@social.sdf.org
@elb Do you have a specific example? You could switch off colour links for navigation elements.
=> More informations about this toot | More toots from samcarter@fosstodon.org
@samcarter If I could switch off color links for navigation elements, this wouldn't be a problem. ;-)
If I use:
\hypersetup{
colorlinks = true,
urlcolor = blue,
linkcolor = .
}
(For example) ... then when I build my Beamer presentation (lualatex), internal PDF links in the header/footer are all black text instead of following the Beamer theme.
I have tried various hacks to get around this but had no luck, including:
1/2
=> More informations about this toot | More toots from elb@social.sdf.org
@samcarter
The big problem is that, for example, in the header, the current section heading link is a different color, so no one static color suffices.
=> More informations about this toot | More toots from elb@social.sdf.org
@elb I was hoping to a compilable example which would show which theme you use
=> More informations about this toot | More toots from samcarter@fosstodon.org
@samcarter Unfortunately that's much easier said than done. It should be the case with any Beamer theme, though, hang on, I'll produce a MWE.
=> More informations about this toot | More toots from elb@social.sdf.org
@samcarter
\DocumentMetadata{
lang = en,
pdfversion = 2.0,
pdfstandard = ua-2,
pdfstandard = a-4,
testphase = {phase-III,title,table,math,firstaid}
}
\documentclass[bigger,xcolor=table,aspectratio=149]{beamer}
\usetheme{Berlin}
\hypersetup{
colorlinks = true,
urlcolor = blue,
linkcolor = .
}
\begin{document}
\section{Introduction}
\begin{frame}{Introduction}
A link: \href{https://social.sdf.org/@elb}{@elb}
\end{frame}
\end{document}
=> More informations about this toot | More toots from elb@social.sdf.org
@samcarter Note that "Introduction" at the very top of the slide above the white dot is black and nearly invisible. Remove the hypersetup block and this is corrected, but the @elb in the middle of the slide is black like the surrounding text.
=> More informations about this toot | More toots from elb@social.sdf.org
@elb Maybe try something like this:
\documentclass[bigger,xcolor=table,aspectratio=149]{beamer} \usetheme{Berlin} \hypersetup{ colorlinks = true, urlcolor = green, linkcolor = red } \addtobeamertemplate{headline}{\hypersetup{hidelinks}}{} \begin{document} \section{Introduction} \begin{frame} \frametitle{Introduction} A link: \href{https://topanswers.xyz/tex}{TA} \end{frame} \end{document}
=> More informations about this toot | More toots from samcarter@fosstodon.org
@samcarter Well I'll be! That's not one of the suggestions I found, and it tentatively seems to work!
Thank you very much, I'll see how far I can take this.
=> More informations about this toot | More toots from elb@social.sdf.org
@elb Have fun with beamer :)
=> More informations about this toot | More toots from samcarter@fosstodon.org
@samcarter I've been using it as my primary lecture presentation tool for years; it's firmly in the category of "the worst tool except for all of the others". I have a flow down to something that is very sustainable, but it's taken some time to build the pieces, and of course drawing things still has friction.
The bugbear for me for a while has been tagged PDFs; as an educator at a large state school, they are all-but-expected, and I've been unable to do it. (Of course, PowerPoint gets a bye!)
=> More informations about this toot | More toots from elb@social.sdf.org
text/gemini
This content has been proxied by September (3851b).