Ancestors

Written by Ethan Blanton on 2025-01-14 at 14:58

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

Written by samcarter on 2025-01-14 at 15:42

@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

Written by Ethan Blanton on 2025-01-14 at 16:31

@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

Written by Ethan Blanton on 2025-01-14 at 16:32

@samcarter

  1. Putting \hypersetup{ colorlinks = false } in the theme for the header/footer

  1. Putting \hypersetup { colorlinks = true, linkcolor = . } in the theme for the header/footer

  1. Some gunk from tex exchange that manually set internal hyperref fields to disable colors

  1. Various incantations for color in the hyperref config

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

Written by samcarter on 2025-01-14 at 16:39

@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

Written by Ethan Blanton on 2025-01-14 at 16:41

@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

Written by Ethan Blanton on 2025-01-14 at 16:46

@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

Written by Ethan Blanton on 2025-01-14 at 16:47

@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

Written by samcarter on 2025-01-14 at 16:56

@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

Written by Ethan Blanton on 2025-01-14 at 17:06

@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

Written by samcarter on 2025-01-14 at 17:12

@elb Have fun with beamer :)

=> More informations about this toot | More toots from samcarter@fosstodon.org

Toot

Written by Ethan Blanton on 2025-01-14 at 17:15

@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

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113827837185225513
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
294.644083 milliseconds
Gemini-to-HTML Time
2.658436 milliseconds

This content has been proxied by September (3851b).