summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nicetext/mdoccorr.cfg
blob: e9ec00eb61becbc55c4abd7a683caf57dfaa0fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
\ProvidesFile{mdoccorr.cfg}[2011/10/13
              local typographical corrections with makedoc.sty]
%% ... also demonstrates 'niceverb.sty'---see the typeset 
%% documentation of the present file in `makedoc.pdf'.
%%
%% |\SetPatternCodes{<commands>}| 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{<id>}{<find>}{<subst>}|:
\PrependExpandableAllReplacer{etc}{etc. }{etc.\ }
%% ... you can keep inter-sentence space after `etc.'
%% by a code line break.
\PrependExpandableAllReplacer{Cf}{Cf. }{Cf.\ } %% 2011/01/12
\PrependExpandableAllReplacer{cf}{cf. }{cf.\ } %% corr. 2010/03/23
%% ... but think of `cf.~'. Don't leave `cf.' at code line end!
\PrependExpandableAllReplacer{rarr}{->}{$\to$}      %% 2010/11/06
\PrependExpandableAllReplacer{larr}{<-}{$\gets$}    %% 2010/11/06
% \PrependExpandableAllReplacer{dots}{...}{$\dots$}
%% ... 2010/11/24 ``symmetric" variant of `\textellipsis':
%% allow extra space at line end. 
%% `MD' macro 2011/10/13 
%% (final dot separates; TODO provide generally):
\gdef\MDtwodots{.\kern\fontdimen3\font.\kern\fontdimen3\font}
\PrependExpandableAllReplacer{dots}{...}{\MDtwodots.}
%% 2011/10/13: original `\dots' correct before punctuation:
% \PrependExpandableAllReplacer{dots,}{...,}{\dots,}
\PrependExpandableAllReplacer{dots:}{...:}{\dots:}
\PrependExpandableAllReplacer{dots }{... }{\MDtwodots.\ }
\PrependExpandableAllReplacer{TODO}{TODO}{\textcolor{blue}{TODO}}
%% ... chain starts here, and here |\MakeDocCorrectHook| (silently) 
%% enters through a default variant |\SetCorrectHookJobLast|
%% of |\SetCorrectHookJob{<id>}|:
\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, `...,' `...:'