Debian Codegraph @

texmf-dist/source/support/optexcount/keywords.py

raw
1 """
2 List of known keywords that has got some arguments
3 "O" - strOke argument
4 "W" - argument Without brackets
5 "S" - argument in Square brackets
6 "P" - argument in Parentheses
7 "C" - argument in Curly brackets
8 """
9 keywords_list = {
10 "\\ii": ["W", "W"],
11 "\\label": ["S"],
12 "\\ref": ["S"],
13 "\\pgref": ["S"],
14 "\\caption": ["0"],
15 "\\begmulti": ["W"],
16 "\\cite": ["S"],
17 "\\rcite": ["S"],
18 "\\bib": ["S"],
19 "\\usebib": ["O", "P", "W"],
20 "\\load": ["S"],
21 "\\fontfam": ["S"],
22 "\\typosize": ["S"],
23 "\\typoscale": ["S"],
24 "\\thefontsize": ["S"],
25 "\\thefontscale": ["S"],
26 "\\inspic": ["W"],
27 "\\table": ["C", "C"],
28 "\\hyperlinks": ["C", "C"],
29 "\\outlines": ["C"],
30 "\\magscale": ["S"],
31 "\\margins": ["O", "W", "P", "W"],
32 "\\style": ["W"],
33 "\\url": ["C"],
34 "\\loadmath": ["C"],
35 "\\everytt": ["C"],
36 "\\eqmark": ["S"]
37 }
38
39 """
40 List of keywords that introduce some floats, we want to be counted in section table/floats/figures
41 Pay attention! This keyword MUST be introduced in keyword_list too, otherwise it won't count words properly!
42 """
43 floats_keywords = ["\\table", "\\inspic"]
44
45 """
46 List of keywords of logos
47 """
48 logos = ["\\TeX", "\\OpTeX", "\\LuaTeX", "\\XeTeX", "\\OPmac", "\\CS", "\\csplain"]