OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: 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.

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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]