User:RP31/Latex

From DPWiki
Jump to navigation Jump to search

Considerations

End of Sentence Space

Latex by default adds extra space at the end of sentences. It assumes a word consisting of all capitals is an abbreviation so does not add extra space after it. Latex often gets it wrong so you can force a normal space using .\ or force an end of sentence using \@. See https://latexref.xyz/_005c_0040.html for a more detailed explanation.

The golang program 'abbrev' will generate a new text file with $ inserted after lower-case roman numerals and several common abbreviations so each can be reviewed.

Testing

The golang program lprep will remove most LaTex markup to make a plain text file which can be fed into PG Workbench. The Workbench warnings for short or long lines can be ignored.

lacheck is included in Latex distributions. It will generate many spurious or unimportant warnings: (unmatched {, possible unwanted space) but it detects end-of-sentence-space problems although it sometimes gets it wrong.

Preparing for upload to PG

Include a line in the header to use the parskip package even if you don't need it. This avoids undesirable interaction with the content added by PG. Thus:

\usepackage[skip=0pt plus1pt, indent=1.5em]{parskip}[2021-03-14] % parskip adjustments