Graphics, Figures & TablesHyperlink to file containing æøå

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ahutcheson
Posts: 1
Joined: Mon Jun 17, 2024 3:38 pm

Hyperlink to file containing æøå

Post by ahutcheson »

Hello everyone,

I'm trying to create a hyperlink to a pdf which contains "æøå" in the file name. I have a file named "tøst.pdf" in the same folder as my TeX-file and try to use \href to create a link to this file:

\documentclass{article}
\usepackage{hyperref}

\begin{document}
\href{run:tøst.pdf}{This is my link}
\end{document}


It compiles fine, but the link does not work. If I rename the file "test.pdf" and change the code it works. I have tried including the following packages, but the result is the same: \usepackage{grffile}, \usepackage[utf8]{inputenc}, \usepackage[norsk]{babel}. I have also tried doing percent encoding: \href{run:t%C3%B8st.pdf}{This is my link}. Does anyone have an idea of how I can solve this?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply