Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So how do you tell TeX where the ends of sentences are? I rather like the simple interface that is 'press space bar twice'. Do I have to put something on abbreviations instead?


TeX has a rather unintuitive trick for this. If you have a period immediately after a word followed by whitespace, it is taken to mark the end of a sentence. In order to indicate that a period does not end a sentence, you prefix the space by \@, for example, in `Cf.\@ Something`.

Just in case that sounds too simple, there is an exception for initials: `P. G. Wodehouse` is treated the same as `P.\@ G.\@ Wodehouse`. If you want to cancel this, prefix the period by `\@`.

This kind of thing makes Latex a hard sell to a general audience.

See http://latex-alive.tumblr.com/post/827168808/correct-punctua...


TeX considers a period to be the end of a sentence unless it's preceded by a capital letter (in which case it assumes it's an initial or part of an acronym).

For abbreviations, you should explicitly insert a space control sequence (\<space>) or a non-breaking space (~) after the period.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: