File: brackets.tex

package info (click to toggle)
tex-fmt 0.5.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,024 kB
  • sloc: sh: 127; python: 73; javascript: 43; makefile: 24
file content (52 lines) | stat: -rw-r--r-- 795 bytes parent folder | download | duplicates (2)
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
\documentclass{article}

\begin{document}

Matching brackets on a line do nothing (like this).

Matching brackets on two lines also do nothing (like this
longer example).

Matching brackets on three lines get an indent (like this
much much longer example
right here on these lines).

Matching brackets on more lines also get an indent (like this
much much
much much
much longer example
here).

The brackets could start at the beginning of the line
(so maybe
they look
like this).

[They could
be any shape
of bracket]

{Even braces get
the same
indents too}

What about equations? They are the same:
$(1 + 2 + 3)$

$(1 + 2
+ 3 + 4
+ 5 + 7
+ 8 + 9)$

And the dollars can go anywhere as expected:

$
(1 + 2
+ 3 + 4
+ 5 + 7
+ 8 + 9)
$

Note that dollars themselves are not indented

\end{document}