[texhax] how to create a non-breaking hyphen
Paul Tremblay
phthenry at iglou.com
Sun May 14 22:26:09 CEST 2006
How can I make sure that LaTeX does not break right after a hyphen?
Below is a test file. The phrase "hyphen-word" is not kept together.
Thanks
Paul
\documentclass[12pt, openright, twoside ]{memoir}
\begin{document}
For a long time I used to go to be early. Sometimes, when when
hyphen\nolinebreak[4]-\nolinebreak[4]word
put out my candle, the thing. my eyes would close so quickly that I
had not even time to say to myself: "I'm falling asleep." And half an
hour later the thought that it was time to go to sleep would awaken
me; I would make as if to put away the book which I imagined was still
in my hands, and to blow out the light; I had gone on thinking, while
I was asleep, about what I had just been reading, but these thoughts
had taken a rather peculiar turn; it seemed to me that I myself was
the immediate subject of my book: a church, a quartet, the rivalry
between Francois I and Charles V. This impression would persist for
some moments after I awoke; it did not offend my reason, but lay like
scales upon my eyes and prevented them from registering the fact that
the candle was no longer burning. Then it would begin to seem
unintelligible, as the thoughts of a former existence must be to
reincarnate spirit; the subject of my book would separate itself from
me, leaving me free to apply myself to it or not; and at the same time
my sight would return and I would be astonished to find myself in a
state of darkness, pleasant and restful enough for my eyes, but even
more, perhaps, for my mind, to which it appeared incomprehensible,
without a cause, something dark indeed.
\end{document}
--
************************
*Paul Tremblay *
*phthenry at iglou.com *
************************
More information about the texhax
mailing list