Hello.
I am trying to cite a webpage that uses the letter "ø", but my bibliography does not display the "ø" in the URL, making it look like it's not correct. I have searched for this problem for some ting, but I can only find solutions to either "Using æ/ø/å in bib(la)tex", or "Using æ/ø/å in hyperlinks".
I am using Overleaf and BibLatex.
The URL contains the letter ø, and ends up like this in my bibliography (The hyperlink works, but I would like it to display properly): https://www.matematikksenteret.no/eksamen-pr%C3%B8ver-og-kartlegging/alle-teller
It should be: https://www.matematikksenteret.no/eksamen-prøver-og-kartlegging/alle-teller
Disclaimer: I am not experienced in Latex at all, so there might be several other issues here as well. Please feel free to help me clean up other parts of my file too.
My biblatex entry looks like this:
@online{AlleTellerWeb,
author = "NTNU",
title = "Alle Teller",
url = "https://www.matematikksenteret.no/eksamen-prøver-og-kartlegging/alle-teller",
year = {2012},
urldate = {2018-09-16},
keywords = "NTNU, AlleTeller",
}
And here is a code-example:
\documentclass[a4paper,12pt]{article}
\usepackage[margin=24mm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[colorlinks,urlcolor=blue,citecolor=blue,linkcolor=blue]{hyperref}
\usepackage{parskip}
\usepackage[norsk]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\DeclareLanguageMapping{norsk}{norsk-apa}
\addbibresource{Matematikk2.bib}
\begin{document}
\textit{Alle teller} er utviklet av professor Alistair McIntosh fra \textit{University of Tasmania} for å kartlegge barn sin talloppfatning og tallforståelse \parencite{AlleTellerWeb}.
\printbibliography
\end{document}
\expandafter\nolinkurl\expandafter{\romannumeral-\0\thefield{urlraw}}` could not be used instead ? I it could very well be though that this "full-first" expansion is not ok in this context. – Sep 17 '18 at 07:13\romannumeral-`0, but in this case I'm quite sure five expansions steps are required to unpack\thefield{...}properly.\expandafter\nolinkurl\expandafter{\romannumeral-`0\thefield{urlraw}}seems to work as well, so I have added that as a shorter alternative. Thank you. – moewe Sep 17 '18 at 09:46\romannumeral-\0` trick is that it will gobble a space token (and then stop) if it finds one upfront. The other danger is of course that it could expand too much which may not be the right thing to do. – Sep 17 '18 at 11:03