Skip to content

Commit 9c830d6

Browse files
committed
Add chktexrc with S&P preferences/overrides
1 parent bf9cfa1 commit 9c830d6

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

chktexrc

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Assuming this file is installed to ~/semprag/tex/chktexrc, call like:
2+
# chktex -v2 -g -l ~/semprag/tex/chktexrc wip_article.tex
3+
4+
# For all options and defaults, refer to the global configuration file at:
5+
# $(kpsewhich -var-value=TEXMFDIST)/chktex/chktexrc
6+
7+
# S&P style prefers "Logical" punctuation (not a hard requirement, and there are some exceptions)
8+
QuoteStyle = Logical
9+
10+
# Define a level of indentation as 2 spaces
11+
TabSize = 2
12+
13+
# HyphDash dictates in-word hyphenation (alphabetic characters on both sides)
14+
# S&P style allows only "-" (not "--" or "---")
15+
HyphDash
16+
{
17+
1
18+
}
19+
20+
# NumDash dictates inter-numeric hyphenation (digits on both sides), e.g., page ranges
21+
# S&P style requires "--" (not "-" or "---")
22+
NumDash
23+
{
24+
2
25+
}
26+
27+
# WordDash dictates inter-word/sentential hyphenation (whitespace on both sides)
28+
# S&P style disallows hyphens in this context entirely; \dash should be used instead
29+
WordDash
30+
{
31+
0
32+
}
33+
34+
# NotPreSpaced disallows whitespace before these commands:
35+
NotPreSpaced
36+
{
37+
\footnote
38+
\footnotemark
39+
\thanks
40+
}
41+
42+
# Silent ignores the "Command terminated with space" warnings for these commands:
43+
Silent
44+
{
45+
\dots
46+
\footnotemark
47+
\item
48+
\ldots
49+
\maketableofcontents
50+
\maketitle
51+
\printbibliography
52+
# math commands
53+
\approx
54+
\geq
55+
\neg
56+
\quad
57+
\supset
58+
\wedge
59+
# vertical spacing commands
60+
\smallskip \medskip \bigskip
61+
\smallbreak \medbreak \bigbreak
62+
\vfill
63+
# horizontal spacing commands
64+
\centering
65+
\hfil \hfill
66+
\noindent
67+
# size commands
68+
\tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge
69+
# documentclass: sp
70+
\AND
71+
\dash
72+
# package: TikZ
73+
\draw
74+
\node
75+
# package: gb4e
76+
\ex
77+
# package: cgloss4e
78+
\gll \glt
79+
# package: ExPex
80+
\ex \pex \xe
81+
\begingl \gla \glb \glft \endgl
82+
# package: booktabs
83+
\toprule \midrule \bottomrule
84+
}

0 commit comments

Comments
 (0)