On 05/22/2012 04:03 PM, Lee Rudolph wrote:
> My documentclass is memoir. I am using bibtex, natbib,
> and apacite (the latter is unnatural to me, but this book
> is supposed to be APA-friendly). My publisher informs me
> that in their house style URLs may only contain breaks
> *after* punctuation (my understanding of APA rules is
> that a break could appear on either side of punctuation,
> but apparently that's not satisfactory to my publisher).
Are you sure your URLs are actually appearing within the url package's
\url{...} macro? Take a look at your document's .bbl file to confirm.
My understanding is that the url package's default behavior is not to
break URLs except after punctuation. Here are the relevant
definitions from url.sty:
\def\UrlBreaks{\do\.\do\@\do\\\do\/\do\!\do\_\do\|\do\;\do\>\do\]%
\do\)\do\,\do\?\do\'\do+\do\=\do\#}%
\def\UrlBigBreaks{\do\:\do@url@hyp}%
\def\UrlNoBreaks{\do\(\do\[\do\{\do\<}%
Documentation is towards the bottom of url.sty under the heading
"Changing linebreaks," but basically, URLs can break after the
punctuation listed in \UrlBreaks (".", "@", "\", "!", "_", "|", etc.)
and \UrlBigBreaks (":" and "-"), but not \UrlNoBreaks ("(", "[", "{",
and "<"). I don't believe that the url package will break elsewhere,
but feel free to prove me wrong with a (self-contained) example.
In my documents, I tend to disallow breaks except after slashes by
putting the following in my document's preamble:
\def\UrlBreaks{}
\def\UrlBigBreaks{\do\/\do-}
-- Scott