\path is like \draw
[llf.git] / llfrc.lua
blob1dd9fb2504197af6ec6427fbf4351bba9ad5df10
1 C = {}
3 -- The maximum line we'll try to output
4 C.max_len = 72
6 -- Environments which don't deserve newlines before/after (everything else does)
7 C.inline_environments = {
8 "bmatrix", "bmatrix*", "Bmatrix", "Bmatrix*", "cases",
9 "dcases", "pmatrix", "pmatrix*", "Pmatrix", "Pmatrix*",
10 "matrix", "matrix*", "vmatrix", "vmatrix*", "Vmatrix",
11 "Vmatrix*",
14 -- Control sequences (apart from begin and end) which should be on their own line
15 C.own_line_controlseqs = {
16 "BEGIN", "DO", "DeclareMathOperator", "ELSE", "END", "ENDFOR",
17 "ENDLOOP", "ENDPROC", "EXIT", "Else", "EndFor", "EndFunction",
18 "EndIf", "EndWhile", "FI", "FOR", "For", "ForAll", "Function",
19 "IF", "If", "LOOP", "OD", "PROC", "REPEAT", "UNTIL", "While",
20 "author", "date", "documentclass", "item", "label",
21 "newcommand", "newfloat", "newtheorem", "renewcommand",
22 "setlist", "theoremstyle", "title", "usepackage",
23 "usepgfplotslibrary", "usetikzlibrary",
26 -- Control sequences which should at least start their own line
27 C.start_line_controlseqs = {
28 "addplot", "addplot3", "caption", "cfoot", "chead", "clip",
29 "coordinate", "DeclarePairedDelimiter", "DeclarePairedDelimiterX",
30 "draw", "fill", "foreach", "node", "path", "rfoot", "rhead",
31 "State", "tikzstyle", "tkzCircumCenter", "tkzClipCircle",
32 "tkzCompass", "tkzDefLine", "tkzDefMidPoint", "tkzDefPoint",
33 "tkzDefPointBy", "tkzDefPointWith", "tkzDrawArc",
34 "tkzDrawCircle", "tkzDrawLine", "tkzDrawLines", "tkzDrawPoints",
35 "tkzDrawPolygon", "tkzDrawSector", "tkzDrawSegment",
36 "tkzDrawSegments", "tkzFillCircle", "tkzFillSector",
37 "tkzFindAngle", "tkzFindSlopeAngle", "tkzGetPoint",
38 "tkzGetPoints", "tkzInterCC", "tkzInterLC", "tkzInterLL",
39 "tkzLabelAngle", "tkzLabelCircle", "tkzLabelPoints",
40 "tkzLabelSegment", "tkzMarkAngle", "tkzMarkRightAngle",
41 "tkzMarkSegment", "tkzMarkSegments", "tkzSetUpCompass",
42 "tkzSetUpLine", "tkzShowLine", "tkzVecLen",
45 -- Environments in which newlines cannot be added haphazardly
46 C.tabular_like_environments = {
47 "align", "align*", "eqnarray", "eqnarray*", "gather", "gather*",
48 "tabular", "tabular*", "tabularx", "tabularx*", "tabularX",
49 "tabularX*", "tikzcd",
52 -- Environments which should be treated as verbatim: no formatting at all
53 C.verbatim_like_environments = {
54 "Verbatim", "alltt", "knot", "verbatim",
57 -- Control sequences which should be on their own paragraphs
58 C.own_paragraphs = {
59 "documentclass", "newpage", "section", "subsection",
60 "subsubsection", "subsubsubsection", "vfill",
63 -- Control sequences which should increase indentation
64 C.indent_incrementers = {
65 "(", "BEGIN", "DO", "Else", "FOR", "ForAll", "Function", "IF",
66 "If", "LOOP", "PROC", "REPEAT", "Start", "[", "item",
69 -- Control sequences which should decrease indentation
70 C.indent_decrementers = {
71 ")", "END", "ENDFOR", "ENDLOOP", "ENDPROC", "EXIT", "Else",
72 "End", "EndFor", "EndFunction", "EndIf", "FI", "OD", "UNTIL",
73 "]", "item",
76 return C