File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,16 @@ language=bash,%
169
169
\gitCode {#1}{#2}{python3 -m latexgit.formatters.python #3}{#4}{#5}{,style=python_style}%
170
170
}%
171
171
%
172
+ % %
173
+ % % Use latexgit to place a Bash listing.
174
+ % % #1 the git repository
175
+ % % #2 the local path
176
+ % % #3 the label (lst: will be pre-pended)
177
+ % % #4 the caption
178
+ \protected\gdef\gitBash #1#2#3#4#5{%
179
+ \gitCode {#1}{#2}{}{#3}{#4}{,style=bash_style}%
180
+ }%
181
+ %
172
182
%
173
183
% %
174
184
% % Load a local listing.
Original file line number Diff line number Diff line change 5
5
Nevertheless, the book would be incomplete if these scripts were not provided as well.
6
6
So we put them here, at the end of the book.%
7
7
%
8
- \gitCode {\programmingWithPythonCodeRepo }{scripts/mypy.sh}{ }{bash:mypy}{%
8
+ \gitBash {\programmingWithPythonCodeRepo }{scripts/mypy.sh}{bash:mypy}{%
9
9
A \bash \ script for executing \mypy , which prints the command line and the exit code.%
10
- }{,style=bash_style} %
10
+ }%
11
11
%
12
12
\endhsection %
13
13
%
You can’t perform that action at this time.
0 commit comments