\ProvidesFile{mdoccorr.cfg}[2012/11/13 `makedoc' local typographical corrections] %% ... also demonstrates 'niceverb.sty'---see the typeset %% documentation of the present file in `makedoc.pdf'. %% %% |\SetPatternCodes{}| redefines %% `\PatternCodes' to be used in parsing and replacing %% (some ``sanitizing"). %% improved line breaks 2010/03/29 \SetPatternCodes{\MakeOther\\\MakeOther\ } %% |\StartPrependingChain| initializes setup of a replacement %% chain: \StartPrependingChain %% |\PrependExpandableAllReplacer*{}{}|: \PrependExpandableAllReplacer*{etc. }{etc.\ } %% ... you can keep inter-sentence space after `etc.' %% by a code line break.---Now we use |\do| as a shorthand: \renewcommand*{\do}{\PrependExpandableAllReplacer*} \do{Cf. }{Cf.\ } %% 2011/01/12 \do{cf. }{cf.\ } %% corr. 2010/03/23 %% ... but think of `cf.~'. Don't leave `cf.' at code line end! \do{->}{$\to$} %% 2010/11/06 \do{<-}{$\gets$} %% 2010/11/06 % \PrependExpandableAllReplacer{...}{...}{$\dots$} %% Allow extra space at line end (bug fix `{}' 2011/12/03): \do{...}{\textellipsis\unkern{}} %% 2011/10/13: original `\dots' correct before punctuation: % \PrependExpandableAllReplacer{dots,}{...,}{\dots,} \do{...)}{\dots)} %% 2011/10/25 \do{...:}{\dots:} %% 2012/11/07 \do{... }{\textellipsis\unkern\ } \do{TODO}{\TODO{}} %% ... chain starts here, and here |\MakeDocCorrectHook| %% (silently) enters through a default variant %% |\SetCorrectHookJobLast| of |\SetCorrectHookJob{}|: \SetCorrectHookJobLast %% |\ResetPatternCodes| resets `\PatternCodes' to their default %% value (which is `\fdPatternCodes'): \ResetPatternCodes %% ... restores 'fifinddo' default. \endinput HISTORY 2009/04/05 with makedoc v0.2 2010/03/11 broke some too long code lines 2010/03/16 rendered `mdoccorr.cfg' 2010/03/22 try \Prepend... 2010/03/23 corrected `cf' 2010/03/29 use \SetPatternCodes etc. 2010/11/06 <- and -> 2010/11/24 `...' ``symmetric variant" of `\textellipsis'; \StartPrependingChain, no more \MakeExpandableAllreplacer 2011/01/27 blue "TODO" 2011/09/13 \providecommand for dialogues 2011/10/13 \MDtwodots, without \PXAR, `...,' `...:' 2011/10/25 \textellipsis\unkern from csquotes instead, `...)' 2011/11/13 \PrependExpandableAllReplacer* 2011/12/03 bug fix for 2011/10/25 at line ends 2012/11/07 TODO -> \TODO{} 2012/11/12 using \do 2012/11/13 shorter code lines