Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a \url{some.edu/page} that breaks just before .edu I would like to have it break at the / at worst, or not at all. How can I do that?

share|improve this question
    
Thank you for editing. I'm new, will try to format better in the future. –  Max Nov 16 '12 at 0:07
1  
You're very welcome :) Welcome to TeX.SE! –  cmhughes Nov 16 '12 at 0:14
add comment

1 Answer

up vote 8 down vote accepted

The characters, where breaks are allowed, can be changed. See documentation of package url, section "5.2 Changing linebreaks". In this case the dot is part of \UrlBreaks. The following redefines it without the dot:

\usepackage{url}
\renewcommand*{\UrlBreaks}{\do\@\do\\\do\/\do\!\do\_\do\|\do\;\do\>\do\]%
  \do\)\do\,\do\?\do\'\do+\do\=\do\#}%
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.