Re: URL mit doppeltem Zirkumflex

"Heiko Oberdiek" (via tex-d-l Mailing List) <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Hallo,

On 2024-01-31 10:58, Martin Sievers wrote:
> \documentclass{scrbook}
> \usepackage{hyperref}
> \urldef{\mydef}\url{https://danishcharts.dk/showitem.asp?interpret=Basshunter&titel=Lol+%26lt%3B%28^^%2C%29%26gt%3B&cat=a}
> \begin{document}
> X\footnote{\mydef}
> \end{document}

Die "^" kann man mit "\string^" schützen.
Die runden Klammern und die Strichpunkte kann man noch auflösen.
Die Kleiner- und Größer-Zeichen müssen allerdings als
HTML-Entity (&lt; und &gt;) bleiben, wobei das "&"-Zeichen
wieder mit Prozent-Encoding zu schützen ist, da es hier sonst
als Syntax-Zeichen zur Argument-Trennung dienen würde.

Beispiel (mit den "\urldef"s in jeweils einer Zeile):

\documentclass{article}
\usepackage[a4paper, hmargin=5mm]{geometry}
\usepackage{hyperref}
\urldef{\mydefA}\url{https://danishcharts.dk/showitem.asp?interpret=Basshunter&titel=Lol+%26lt%3B%28\string^\string^%2C%29%26gt%3B&cat=a}
\urldef{\mydefB}\url{https://danishcharts.dk/showitem.asp?interpret=Basshunter&titel=Lol+%26lt%3B%28%5E%5E%2C%29%26gt%3B&cat=a}
\urldef{\mydefC}\url{https://danishcharts.dk/showitem.asp?interpret=Basshunter&titel=Lol+%26lt;(\string^\string^,)%26gt;&cat=a}
\begin{document}
X%
\footnote{\mydefA}%
\footnote{\mydefB}%
\footnote{\mydefC}%
\end{document}

Viele Grüße
   Heiko

-- 
FAQ: http://texfragen.de/
Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.