[OS X TeX] url in Hungarian
Alain Schremmer
schremmer.alain at gmail.com
Wed Sep 3 07:49:45 EDT 2014
On Aug 29, 2014, at 6:14 PM, Ross Moore wrote:
>
> On 30/08/2014, at 7:37 AM, Alain Schremmer wrote:
>
>> Probably a bit off topic but I know some people here know the
>> answer and I am deadly afraid of StackExchange---where "url in
>> hungarian" returned 18 irrelevant answers..
>>
>> How do I get
>>
>> \url{http://en.wikipedia.org/wiki/Zolt%C3%A1n_P%C3%A1l_Dienes}
>> \url{http://en.wikipedia.org/wiki/ZoltC3A1n_PC3A1l_Dienes}
>>
>> to work?
>
> You need to split up the representation of the URL characters
> from what you need to display them in your PDF.
> (Or use a UTF8 representation for both!)
>
>
> Here are 3 ways to do it.
>
> \documentclass[11pt]{article}
> \usepackage{hyperref}
> \begin{document}
>
> %\url{http://en.wikipedia.org/wiki/Zolt%C3%A1n_P%C3%A1l_Dienes}
> %\url{http://en.wikipedia.org/wiki/ZoltC3A1n_PC3A1l_Dienes}
>
>
> \href{http://en.wikipedia.org/wiki/Zoltán_Pál_Dienes}{http://en.wikipedia.org/wiki/Zolt
> \'an\_P\'al\_Dienes}
>
> \href{http://en.wikipedia.org/wiki/Zolt\%C3\%A1n_P\%C3\%A1l_Dienes}{http://en.wikipedia.org/wiki/Zolt
> \'an\_P\'al\_Dienes}
>
> {\catcode`\% 11
> \href{http://en.wikipedia.org/wiki/Zolt%C3%A1n_P%C3%A1l_Dienes}{http://en.wikipedia.org/wiki/Zolt
> \'an\_P\'al\_Dienes}
> }
>
> \end{document}
(1) As always, your suggestions certainly work. I am going to have to
study them.
(2) You should never give somebody a hand because you are then likely
to be asked for your arm:
Why is it that none of:
\href{http://en.wikipedia.org/wiki/Zoltán_Pál_Dienes}{http://en.wikipedia.org/wiki/Zolt
\'an\_P\'al\_Dienes}{Z. P. Dienes}
\href{http://en.wikipedia.org/wiki/Zolt\%C3\%A1n_P\%C3\%A1l_Dienes}{http://en.wikipedia.org/wiki/Zolt
\'an\_P\'al\_Dienes}{Z. P. Dienes}
{\catcode`\% 11
\href{http://en.wikipedia.org/wiki/Zolt%C3%A1n_P%C3%A1l_Dienes}{http://en.wikipedia.org/wiki/Zolt
\'an\_P\'al\_Dienes}
}{Z. P. Dienes}
show Z. P. Dienes as a link with the address hidden as with, for
instance, \href{http://en.wikipedia.org/wiki/Dynamics}{Dynamics}?
Grateful regards.
--schremmer
More information about the MacOSX-TeX
mailing list