Jeremy C. Reed wrote:
On Tue, 24 Jan 2006, Roy Schestowitz wrote:


There was recently a thread about justification and hyphenation, but
particularly about tendency of margins to be dishonoured at times [1].
There were various solutions proposed. Insertion of a linebreak is, as you
already know, undesirable. This may break as the output type (or
compiliation process) changes.


Thanks for the link. I had read those threads, but no answer there.

An example of my problem is the words (with the punctuation):
(LAN_INET)
and (LAN_DMZ)

I don't want to hyphenate them. I don't want to manually add a \newline before them. I just want the latex magic to automatically move it to the next line and justify the line as needed.

This also happens in regular Standard text too, where I have "(TTL)", "(MSS)", MIB-like variables like net.inet.ip.porthilast and net.inet.ip.portrange.hifirst, filenames (with backslashes) like /etc/authpf/authpf.allow, and words that start with a dollar sign (like $foo). These are all same font.

I have many, many lines like this. And adding a \newline or forcing hyphenation causes maintenance problems (as you mention) since I am updating content and later may change paper size.


Would building up a "lexikon.tex" of words/abbreviations you use be more trouble than you are looking for? Juergen suggested[1] that it could be done to keep some words from being broken up or to have them broken correctly, And G. Milde suggested[2] that \sloppy might reduce hyphenation for small words. Paul A. Rubin suggested[3] setting \tolerance and \emergencystretch to deal with them.

And of course there is the ever helpful TeXnik site's[4] advice.


[1] http://www.mail-archive.com/[email protected]/msg33952.html
[2] http://www.mail-archive.com/[email protected]/msg33966.html
[3] http://www.mail-archive.com/[email protected]/msg33794.html
[4] http://tug.org/TeXnik/mainFAQ.cgi?file=language/hyphen

Good luck.

Reply via email to