Hi all, a) I've reported this before; I ca1n't seem to wrap long URLs across lines in XeTeX $ pdfinfo x.pdf Title: x Subject: x Author: Mohamed Bana Creator: ConTeXt - 2008.10.31 13:58 Producer: xdvipdfmx (0.7.3) CreationDate: Tue Dec 1 17:19:25 2009 ModDate: Tue Dec 1 00:00:00 2009 Tagged: no Pages: 1 Encrypted: no Page size: 595.28 x 841.89 pts (A4) File size: 37209 bytes Optimized: no PDF version: 1.5 If I do this in LuaTeX it seems to work fine. \useURL[doilink][http://dx.doi.org/10.1109/32.689404][][\hyphenatedurl{ http://dx.doi.org/10.1109/32.689404}] \from[doilink] But with XeTeX it insists on overflowing into the margins or into another column. Does anyone have a workaround? $ pdfinfo x.pdf Title: x Subject: x Author: Mohamed Bana Creator: ConTeXt - 2009.12.01 17:09 Producer: LuaTeX-0.46.0 CreationDate: Tue Dec 1 17:30:14 2009 ModDate: Tue Dec 1 00:00:00 2009 Tagged: no Pages: 2 Encrypted: no Page size: 595.276 x 841.89 pts (A4) File size: 32262 bytes Optimized: no PDF version: 1.5 In this latest version I don't even need the \hyphenatedurl macro :). b) And please, guys, will you just include a macro that will take a URL as a parameter and typeset it. Having to do \useURL[doilink][http://dx.doi.org/10.1109/32.689404][][\hyphenatedurl{ http://dx.doi.org/10.1109/32.689404}] \from[doilink] is just unnecessary. I'm thinking \typeurl[<url>], that's it. c) Is there something wrong with using \footnote{<text>} whilst in a column? I can send the full example off-list. Just ping me. Thank you, —Mohamed
Mohamed Bana wrote:
Hi all,
a) I've reported this before; I ca1n't seem to wrap long URLs across lines in XeTeX
\useURL[doilink][http://dx.doi.org/10.1109/32.689404][][ http://dx.doi.org/10..1109/32.689404][][\hyphenatedurl{http://dx.doi.org/10.1109/32.689404}] \from[doilink]
in mkiv you probably don't need the \hyphenatedurl as is more clever in pdftex your example works ok but not in xetex ... maybe something messy with catcodes or discretionaries ... weird Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hans Hagen wrote:
Mohamed Bana wrote:
Hi all,
a) I've reported this before; I ca1n't seem to wrap long URLs across lines in XeTeX
\useURL[doilink][http://dx.doi.org/10.1109/32.689404][][ http://dx.doi.org/10..1109/32.689404][][\hyphenatedurl{http://dx.doi.org/10.1109/32.689404}]
\from[doilink]
in mkiv you probably don't need the \hyphenatedurl as is more clever
in pdftex your example works ok but not in xetex ... maybe something messy with catcodes or discretionaries ... weird
we have this (in mkii): \def\dohyphenatedurlbefore#1{\discretionary{\hyphenatedurlseparator}{}{}\char#1\relax}% if you change this to \def\dohyphenatedurlbefore#1{\discretionary{!}{?}{*}\char#1\relax}% you'll see that indeed something is inserted so, something fishy in xetex; maybe a difference in disc handling due to utf hyphenation? anyhow, we have to live with it (so better use mkiv) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Mohamed Bana