Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ncar!husc6!yale!leichter From: leichter@cs.yale.edu Newsgroups: comp.text Subject: Re: \parbox dilemma in LaTeX Message-ID: <50303@yale-celray.yale.UUCP> Date: 10 Feb 89 22:48:54 GMT Sender: root@yale.UUCP Organization: Yale Computer Science Department, New Haven I would like to have \parbox environments with no hyphenation inside. I want the end product to look like this: Algebraic Singular homology and cohomology, the excision theorem, Topology long Lines: 23 There are two "better ways": a) You are making a minor stylistic choice here. There are going to be in- stances in which NOT hyphenating looks bad. Since you are trying to control things to this level, it might be best to consider this a "final tuneup" and insert explicit \\'s to get the line breaks EXACTLY where you want them. (Alternatively, you could wrap the individual words you don't want hyphenated in \mbox's, but if you do that, you might as well grab full control over the line breaking.) b) If you really want to just forbid hyphenation, the following should work: \parbox[t]{1in}{{\hyphenpenalty=10000 \bf #1}} (You won't find \hyphenpenalty in the LaTeXbook - you'll have to "descend" to the TeX level.) The approach of using \hyphenation is worse than you think: The hyphenation tables are NOT subject to nesting. After you've set your "algebraic topology" label once, neither word will ever be hyphenated in your document again. -- Jerry