Quantcast
Channel: How to do a correct inter-sentence non-breaking space? - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 3

How to do a correct inter-sentence non-breaking space?

$
0
0

Suppose somewhere in the text, I have the following two sentences:

This is one sentence. Another sentence is this.

If we write 'sentence.~Another', we get too short a space. The same with 'sentence@.~Another'.

How can I make sure that the line doesn't break between the period and the 'A', but in such a way that

  1. the space between the period and the 'A' is the correct interword spacing, including its stretchability;
  2. LaTeX would be able to hyphenate 'sentence' and break the line at the hyphen. The same for 'Another'.

In short, how can I get a tie that is like '~' but for connecting the last word of one sentence and the first word of the next?

My guess is that \hspace* would work. Something like

'This is one sentence.\hspace*{\StandardInterspace plus \StandardInterspacePlus minus \StandardInterspaceMinus}Another sentence is this.

provided one uses the correct values for the lengths \StandardInterspace, StandardInterspacePlus, and \StandardInterspaceMinus.

Is that correct, and if it is, how can one find out the correct values to use for one's LaTeX class and font? (I guess \StandardInterspace should be set according to one of the answers here.)


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images