[OS X TeX] url in Hungarian

Herbert Schulz herbs at wideopenwest.com
Wed Sep 3 08:02:16 EDT 2014


On Sep 3, 2014, at 6:49 AM, Alain Schremmer <schremmer.alain at gmail.com> wrote:

> 
> 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

Howdy,

Are you saying that

\url{http://en.wikipedia.org/wiki/Zolt\%C3\%A1n_P\%C3\%A1l_Dienes}

doesn't work?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tex
Type: application/octet-stream
Size: 242 bytes
Desc: not available
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20140903/95d8ba40/attachment.obj>
-------------- next part --------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 21231 bytes
Desc: not available
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20140903/95d8ba40/attachment.pdf>
-------------- next part --------------

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)





More information about the MacOSX-TeX mailing list