Is there any way to extremely increase the spacing after sentence-ending periods in order to (visually) verify that all non-sentence-ending periods are correctly treated using \ and \@? Thanks.
Asked
Active
Viewed 287 times
9
ivankokan
- 1,046
1 Answers
10
\documentclass{article}
\setlength\xspaceskip{1cm}
\begin{document}
this is a sentence. This is Foo. is short for FooBar. and that should have been a comma.
This is not XML\@. And this was not written by Dr.\ Carlisle.
What happens after a semicolon; or a question mark?
This is Foo, followed by a comma.
\end{document}
David Carlisle
- 757,742
-
1Add this to your example: "This is not XML@. And this was not written by Dr.\ Carlisle." You haven't exhausted the possibilities. – barbara beeton Apr 27 '20 at 18:17
-
I definitely need to sit down and read TeXbook properly! Is there any change to add a box, in some color maybe? – ivankokan Apr 27 '20 at 18:23
-
1@ivankokan not in classic tex, in luatex yes (well of course in classic tex it is always possible to do something, but the macros would be sufficiently complicated they would likely clash with many packages and be more trouble than worth for a debugging aid) – David Carlisle Apr 27 '20 at 18:25
-
1@barbarabeeton you are free to edit. And I know you are itching to add some commas and semicolons:-) – David Carlisle Apr 27 '20 at 18:27
-
-

\xspaceskip=1cm? – moewe Apr 27 '20 at 18:01