LaTeX sometimes puts too much or too little space after periods

后端 未结 3 1334
别那么骄傲
别那么骄傲 2021-01-29 22:24

LaTeX tries to guess whether a period ends a sentence, in which case it puts extra space after it. Here are two examples where it guesses wrong:

I watched Superm         


        
3条回答
  •  北海茫月
    2021-01-29 22:58

    I like the answer from dreeves and the handy search he suggests too. I don't have the Stackoverflow "rep" points to comment, but...

    Since lines in raw *.tex tend to be very long, the output from grep can be overwhelming (i.e., entire paragraphs); I suggest a variation to only display the words ending in '[A-Z].' (followed by one or more space, followed by a new capitalized word). It is,

    grep -o -E '[A-Z]+\. +[A-Z]+[A-Za-z]+' *.tex
    

提交回复
热议问题