This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] db2latex hyphenation in tt font


* Brian McGurk <brian@corvil.com> wrote [031209 18:05]:

> Does anyone know how to enable hyphenation in typewriter fonts in
> LaTeX? My document has a lot of long API function names which db2latex
> formats using \texttt{ReallyLongFunctionName}. Many of these end up
> spilling over the end of the line and LaTeX refuses to hypehenate and
> break them.

Did you try to set:

  <xsl:variable name="latex.hyphenation.tttricks">1</xsl:variable>

This usually works great for filenames and URLs by redefining the
hyphenation character to "/". Because you certainly don't have slashes
in your function names, this might unfortunately not work in your case.

Another possibility is to set directly a hyphenation character for
"typewriter" fonts (for these fonts usually there is no hyphenchar
defined). But this is a difficult issue and you should consult the UK
TeX FAQ or something similar before doing this.

Another possibility might be the usage of the package "hyphenat". 
Consult it's documentation for usage.

Michael
-- 
mw@miwie.in-berlin.de                              http://www.miwie.org
mw@miwie.org

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]