summaryrefslogtreecommitdiff
path: root/support/latexindent/documentation/cmhlistings.tex
blob: 6b8506c344758ee0e416dbe102540497b158a2da (plain)
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
\newcommand{\cmhlistingsfromfile}[4]{
.. literalinclude:: #1^^J
^^I:class: .#4^^J
^^I:caption: #2^^J
^^I:name: #3^^J
}
\newcommand{\cmhlistingsfromfilelines}[4]{
.. literalinclude:: #1^^J
^^I:class: .#4^^J
^^I:caption: #2^^J
^^I:name: #3^^J
^^I:linenos:^^J
}
\newcommand{\cmhlistingsfromfilefour}[6]{
.. literalinclude:: #3^^J
^^I:class: .#6^^J
^^I:caption: #4^^J
^^I:name: #5^^J
^^I:lines: #1-#2^^J
^^I:linenos:^^J
^^I:lineno-start: #1^^J
}
\newcommand{\cmhlabel}[1]{
.. \_#1:^^J
}
\newcommand{\warning}[1]{
.. warning::^^J
#1^^J
.. endwarning::^^J
}
\newcommand{\example}[1]{
.. proof:example::^^J
#1^^J
.. endproof:example::^^J
}