ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* url breaking
@ 2009-12-01 17:42 Mohamed Bana
  2009-12-04 21:23 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Mohamed Bana @ 2009-12-01 17:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1797 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 5940 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-12-04 21:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-01 17:42 url breaking Mohamed Bana
2009-12-04 21:23 ` Hans Hagen
2009-12-04 21:27   ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).