usepgfplotslibrary is like usetikzlibrary
[llf.git] / llfrc.lua
blobbfe00e167e57ead589f2ff81afc53bb61f3d9951
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", "rfoot", "rhead", "State",
31 "tikzstyle", "tkzCircumCenter", "tkzClipCircle", "tkzCompass",
32 "tkzDefLine", "tkzDefMidPoint", "tkzDefPoint", "tkzDefPointBy",
33 "tkzDefPointWith", "tkzDrawArc", "tkzDrawCircle", "tkzDrawLine",
34 "tkzDrawLines", "tkzDrawPoints", "tkzDrawPolygon",
35 "tkzDrawSector", "tkzDrawSegment", "tkzDrawSegments",
36 "tkzFillCircle", "tkzFillSector", "tkzFindAngle",
37 "tkzFindSlopeAngle", "tkzGetPoint", "tkzGetPoints",
38 "tkzInterCC", "tkzInterLC", "tkzInterLL", "tkzLabelAngle",
39 "tkzLabelCircle", "tkzLabelPoints", "tkzLabelSegment",
40 "tkzMarkAngle", "tkzMarkRightAngle", "tkzMarkSegment",
41 "tkzMarkSegments", "tkzSetUpCompass", "tkzSetUpLine",
42 "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