-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathboxie.sty
More file actions
executable file
·1833 lines (1738 loc) · 48 KB
/
boxie.sty
File metadata and controls
executable file
·1833 lines (1738 loc) · 48 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{boxie}[2018/08/25 v1.0, GENG Nan nangeng@qq.com with contributions ZHANG Chennan chennanzhang@gmail.com.]
%--------------------------------------------------------------------------------
% 使用fontawesome5符号字体
% \RequirePackage{fontawesome}之前的两句是必须的,否则用ubuntu下用xelatex编译会出错。
%--------------------------------------------------------------------------------
%\RequirePackage{fontspec}
%\defaultfontfeatures{Extension = .otf}
%\RequirePackage{fontawesome}
%--------------------------------------------------------------------------------
% 使用fontawesome5符号字体,可以直接使用
%--------------------------------------------------------------------------------
\RequirePackage{fontawesome5}
% 提高循环控制精度的宏包
\RequirePackage{multido}
% tcolorbox需要加载的库
\RequirePackage{tcolorbox}
\tcbuselibrary{skins, xparse, breakable}
\RequirePackage{varwidth}
\RequirePackage{amssymb}
\RequirePackage{xcolor}%[dvipsnames]
\usetikzlibrary{shapes.geometric}
%------------------------------------------------------------------------------------
% 定义颜色
%------------------------------------------------------------------------------------
\definecolor{mpurple}{RGB}{48,10,36}
\definecolor{mgray}{RGB}{70,72,67}
\definecolor{ogray}{RGB}{148,147,141}
\definecolor{oorange}{RGB}{233,101,56}
\definecolor{termimal}{RGB}{80,78,70}
\definecolor{linux}{RGB}{0,39,51}
\definecolor{windows}{HTML}{00B294}
\definecolor{cvgrayc}{RGB}{247,247,247}
\definecolor{cvgray}{RGB}{220,220,220}
\definecolor{cvgrayb}{RGB}{153,153,153}
\definecolor{cvblue}{RGB}{223,238,255}
\definecolor{zhanqing}{RGB}{0,51,113}
\definecolor{chengse}{RGB}{250,140,53}
\definecolor{AppleRed}{RGB}{255,95,86}
\definecolor{AppleYellow}{RGB}{255,189,46}
\definecolor{AppleGreen}{RGB}{39,201,63}
\definecolor{AppleGray}{HTML}{D8D6D9}
\definecolor{WinGray}{HTML}{FFFFFF}
\definecolor{WinBlue}{HTML}{1883D7}
% success
\definecolor{colorSuccess}{HTML}{28a745}
\definecolor{colorSuccessBorder}{HTML}{c3e6cb}
\definecolor{colorSuccessBackground}{HTML}{d4edda}
\definecolor{colorSuccessText}{HTML}{155724}
% info
\definecolor{colorInfo}{HTML}{17a2b8}
\definecolor{colorInfoBorder}{HTML}{bee5eb}
\definecolor{colorInfoBackground}{HTML}{d1ecf1}
\definecolor{colorInfoText}{HTML}{0c5460}
% danger
\definecolor{colorDanger}{HTML}{dc3545}
\definecolor{colorDangerBorder}{HTML}{f5c6cb}
\definecolor{colorDangerBackground}{HTML}{f8d7da}
\definecolor{colorDangerText}{HTML}{721c24}
% warning
\definecolor{colorWarning}{HTML}{ffc107}
\definecolor{colorWarningBorder}{HTML}{ffeeba}
\definecolor{colorWarningBackground}{HTML}{fff3cd}
\definecolor{colorWarningText}{HTML}{856404}
%------------------------------------------------------------------------------------
% 定义文本框盒子
%------------------------------------------------------------------------------------
%% 带标题的文本框
\newtcolorbox{titledBox}[1]{%
tikznode boxed title,
enhanced,
arc=3pt,
interior style={white},
attach boxed title to top center = {yshift=-\tcboxedtitleheight/2},
fonttitle=\normalfont,
colbacktitle=white,coltitle=black,
boxed title style={size=normal,colframe=white,boxrule=0pt},
boxrule=.5pt,
left=5pt, right=5pt, top=5pt, bottom=0pt,
boxsep=5pt,
title={#1},
halign=left,
fontupper=\kaishu
}
%% Note
\newtcolorbox{noteBox}{%
enhanced,
arc=2pt,
boxrule=.5pt,
left=5pt, right=5pt, top=0pt, bottom=0pt,
boxsep=5pt,
colframe=colorInfoBorder,
colback=colorInfoBackground,
colbacktitle=colorInfoBackground,
coltext=colorInfoText,
title={\textcolor{colorInfoText}{\faStickyNote[regular]\hspace{.5em}\bfseries{注意}}},
titlerule=0pt,
halign=left,
fontupper=\kaishu
}
%% Important
\newtcolorbox{importantBox}{%
enhanced,
arc=2pt,
boxrule=.5pt,
left=5pt, right=5pt, top=0pt, bottom=0pt,
boxsep=5pt,
colframe=colorWarningBorder,
colback=colorWarningBackground,
colbacktitle=colorWarningBackground,
coltext=colorWarningText,
title={\textcolor{colorWarningText}{\faExclamationCircle\hspace{.5em}\bfseries{重要}}},
titlerule=0pt,
halign=left,
fontupper=\kaishu
}
%% Tip
\newtcolorbox{tipBox}{%
enhanced,
arc=2pt,
boxrule=.5pt,
left=5pt, right=5pt, top=0pt, bottom=0pt,
boxsep=5pt,
colframe=colorSuccessBorder,
colback=colorSuccessBackground,
colbacktitle=colorSuccessBackground,
coltext=colorSuccessText,
title={\textcolor{colorSuccessText}{\faCheckCircle\hspace{.5em}\bfseries{技巧}}},
titlerule=0pt,
halign=left,
fontupper=\kaishu
}
%% Warning
\newtcolorbox{warningBox}{%
enhanced,
arc=2pt,
boxrule=.5pt,
left=5pt, right=5pt, top=0pt, bottom=0pt,
boxsep=5pt,
colframe=colorDangerBorder,
colback=colorDangerBackground,
colbacktitle=colorDangerBackground,
coltext=colorDangerText,
title={\textcolor{colorDangerText}{\faExclamationTriangle\hspace{.5em}\bfseries{警告}}},
titlerule=0pt,
halign=left,
fontupper=\kaishu
}
%------------------------------------------------------------------------------------
% Ubuntu终端盒子的最小化、关闭和最大化图标
%------------------------------------------------------------------------------------
\newcommand{\UbuntuMin}{%
\begin{tikzpicture}[x=2.4ex,y=2.4ex,line width=0.15ex,scale=1]
\shade[shading=ball,left color=ogray,right color=ogray!50!white] (0,0) circle (0.5);
\draw[termimal](-0.3,0)--(0.3,0);
\end{tikzpicture}
}
\newcommand{\UbuntuClose}{%
\begin{tikzpicture}[x=2.4ex,y=2.4ex,line width=0.15ex,scale=1]
\shade[shading=ball,left color=oorange,right color=oorange!70!white] (0,0) circle (0.5);
\draw[termimal](-0.25,-0.25)--(0.25,0.25);
\draw[termimal](-0.25,0.25)--(0.25,-0.25);
\end{tikzpicture}
}
\newcommand{\UbuntuMax}{%
\begin{tikzpicture}[x=2.4ex,y=2.4ex,line width=0.15ex,scale=1]
\shade [shading=ball,left color=ogray,right color=ogray!50!white] (0,0) circle (0.5);
\draw[termimal](-0.25,-0.2)rectangle(0.25,0.2);
\end{tikzpicture}
}
\newcommand{\WindowsLogo}{%
\begin{tikzpicture}[square/.style={regular polygon,regular polygon sides=4},scale=0.5, every node/.style={scale=0.5}]
\node[square,draw,thick,fill=black,text=white] at (0, 0) (a) {\small \faTerminal};
\end{tikzpicture}
}
%------------------------------------------------------------------------------------
% tcolorbox终端盒子apple、win10和Ubuntu样式定义
%------------------------------------------------------------------------------------
\tcbset{%
skin=enhanced,%
% apple terminal base style
apple/.style={%
halign title=center,%
skin=bicolor,%
right=0pt,top=0pt,bottom=0pt,
left=0pt,
boxrule=0.5mm,%
breakable,%
frame style={%
draw=AppleGray,%
left color=AppleGray,%
right color=AppleGray%
},%
overlay unbroken = {%
\node[inner sep=0pt,anchor=north west,yshift=-2pt,xshift=10pt,text=white]
at (frame.north west) {\textcolor{AppleRed}{\faCircle}
\textcolor{AppleYellow}{\faCircle}
\textcolor{AppleGreen}{\faCircle}};
},%
overlay first = {%
\node[inner sep=0pt,anchor=north west,yshift=-2pt,xshift=10pt,text=white]
at (frame.north west) {\textcolor{AppleRed}{\faCircle}
\textcolor{AppleYellow}{\faCircle}
\textcolor{AppleGreen}{\faCircle}};
},%
fonttitle=\small \sffamily,%\bfseries,%
fontupper=\small\sffamily,%
fontlower=\small\sffamily%
},
% apple terminal dark style
appledark/.style={%
apple,%
colback=black,%
colupper=white,%
colbacktitle=AppleGray,%
colframe=AppleGray,%
coltitle=black%
%coltext=MyLightGray
},
% apple terminal light style
applelight/.style={%
apple,%
colback=cvgrayc,%
colupper=black,%
colbacktitle=AppleGray,%
colframe=AppleGray,%
coltitle=black%
},%
% win10 terminal base style
win10/.style={%
skin=bicolor,%
right=0pt,top=0pt,bottom=0pt,
left=0pt,
boxrule=0.1mm,%
%toptitle=1ex,
sharp corners,
breakable,%
colbacktitle=WinGray,%
colframe=WinGray,%
coltitle=black,%
fonttitle=\hspace{15pt}\small \sffamily,%\bfseries,
fontupper=\small\sffamily,
fontlower=\small\sffamily,
frame style={%
draw=WinBlue,%
left color=WinBlue,%
right color=WinBlue,%
%right = 10pt,
},%
overlay unbroken = {%
\node[inner sep=0pt,anchor=north west,yshift=-2pt,xshift=1.2pt,text=black]
at (frame.north west){~\WindowsLogo};% \fbox{\faTerminal}
\node[inner sep=0pt,anchor=north east,yshift=-3pt,xshift=-8pt,text=black] at (frame.north
east){\rule{0.8em}{0.6pt}\quad$\square$\quad{\Large$\times$}};
},%
overlay first = {%
\node[inner sep=0pt,anchor=north west,yshift=-2pt,xshift=1.0pt,text=black]
at (frame.north west){~\WindowsLogo};%\small ~\faWindows
\node[inner sep=0pt,anchor=north east,yshift=-3pt,xshift=-8pt,text=black] at (frame.north
east){\rule{0.8em}{0.6pt}\quad$\square$\quad{\Large$\times$}};
}%
},
% win10 terminal light style
win10light/.style={
win10,%
colback=white,%
colupper=black,%
%coltext=black%
},
% win10 terminal dark style
win10dark/.style={
win10,%
colback=black,%
colupper=white,%
%coltext=white%
},
% Ubuntu terminal styles
ubuntu/.style={%
halign title=center,%
skin=bicolor,%
right=0pt,top=0pt,bottom=0pt,
left=0pt,
boxrule=0.5mm,%
breakable,%
overlay unbroken = {%
\node[inner sep=0pt,anchor=north
east,yshift=-1pt,xshift=-5pt,text=white] at (frame.north
east){\UbuntuMin\UbuntuMax\UbuntuClose};%
},%
overlay first = {%
\node[inner sep=0pt,anchor=north
east,yshift=-1pt,xshift=-5pt,text=white] at (frame.north
east){\UbuntuMin\UbuntuMax\UbuntuClose};%
},%
fonttitle=\small \sffamily,%\bfseries,%
fontupper=\small\sffamily,%
fontlower=\small\sffamily%
},
% apple terminal dark style
udark/.style={%
ubuntu,%
frame style={%
draw=mgray,%
left color=mgray,%
right color=mgray%
},%
colback=mpurple,%
colupper=white,%
colbacktitle=mgray,%
colframe=mgray,%
coltitle=white%
%coltext=MyLightGray
},
% apple terminal light style
ulight/.style={%
ubuntu,%
frame style={%
draw=cvgrayb,%
left color=cvgrayb,%
right color=cvgrayb%
},%
colback=cvgrayc,%
colupper=black,%
colbacktitle=cvgrayb,%
colframe=cvgrayb,%
coltitle=black%
},%
%
% ubuntu terminal dark style
gitexample/.style={%
halign title=center,%
skin=bicolor,%
boxrule=1mm,%
fonttitle=\bfseries,%
coltitle=black,%
frame style={%
draw=mgray,%
left color=mgray,%
right color=mgray%
},%
colback=mpurple,%
colupper=white,%
breakable,%
colframe=mgray,%
colbacktitle=mgray,%
overlay unbroken={%
\node[inner sep=0pt,anchor=north west,yshift=-5pt,xshift=10pt,text=white] at (frame.north west){\UbuntuClose~\UbuntuMin~\UbuntuMax};%
},
overlay first={%
\node[inner sep=0pt,anchor=north west,yshift=-5pt,xshift=10pt,text=white] at (frame.north west){\UbuntuClose~\UbuntuMin~\UbuntuMax};%
}%
}%
}% end terminal style
%------------------------------------------------------------------------------------
% tcolorbox lang代码样式定义
%------------------------------------------------------------------------------------
\tcbset{%
skin=enhanced,
pad after break=0mm,
lang/.style={%
breakable,%
drop shadow,%
colframe=blue!75!black,%
right=0pt,top=0pt,bottom=0pt,
left=4.5mm,
enhanced,%
colframe=tcbcolback!60!black,%
colback=tcbcolback!30!white,%
colbacktitle=tcbcolback!5!yellow!10!white,%
fonttitle=\small\bfseries,%
coltitle=black,%
attach boxed title to top center={%
yshift=-0.25mm-\tcboxedtitleheight/2,%
yshifttext=2mm-\tcboxedtitleheight/2%
},%
attach boxed title to top left={%
xshift=1cm,%
yshift*=1mm-\tcboxedtitleheight%
},%
varwidth boxed title*=-3cm,%
boxed title style={%
frame code={%
\path[fill=tcbcolback!30!black]([yshift=-1mm,xshift=-1mm]frame.north west)%
arc[start angle=0,end
angle=180,radius=1mm]([yshift=-1mm,xshift=1mm]frame.north east)%
arc[start angle=180,end angle=0,radius=1mm];%
\path[left color=tcbcolback!60!black,right
color=tcbcolback!60!black,middle
color=tcbcolback!80!black]([xshift=-2mm]frame.north west)%
--([xshift=2mm]frame.north east)[rounded corners=1mm]%
--([xshift=1mm,yshift=-1mm]frame.north east)%
--(frame.south east)%
--(frame.south west)%
--([xshift=-1mm,yshift=-1mm]frame.north west)[sharp corners]%
--cycle;%
},%
interior engine=empty%
},%
}%
}% end tcolorbox lang style
%------------------------------------------------------------------------------------
% tcolorbox cv代码样式定义
%------------------------------------------------------------------------------------
\tcbset{
skin=enhanced,
cv/.style={
boxrule=0.4mm,
pad after break=-1.5ex,
breakable,
top=0mm,
boxsep=1mm,
drop shadow,
attach boxed title to top,
colframe=blue!75!black,
left=4.5mm,
right=0mm,
enhanced,
colframe=tcbcolback!60!black,
colback=white,
colbacktitle=cvgray,
fonttitle=\small\ttfamily,
coltitle=black,
overlay broken = {
\begin{tcbclipinterior}
\fill[cvblue] (frame.south west) rectangle ([xshift=5mm]frame.north west);
\end{tcbclipinterior}
},
underlay boxed title = {
\begin{tcbclipinterior}
\fill[cvblue] (frame.south west) rectangle ([xshift=5mm,yshift=0mm]frame.north west);
\end{tcbclipinterior}
}
}
}% end tcolorbox lang style
%------ 这段代码借用林前辈的, --shell-escape 时调用 minted 不然就用 listings-----------
\ifnum\shellescape=1
\tcbuselibrary{minted}% 用minted排版代码
%------------------------------------------------------------------------------------
% minted part
%------------------------------------------------------------------------------------
%\makeatletter
%\minted@def@optfv{highlightlinenumbercolor}%需要fvextra.sty包放在当前路径,暂不明白为什么
%\minted@def@optfv{linenumberwidth}
%\makeatother
% redefine the minted line number font
\renewcommand{\theFancyVerbLine}{%
\sffamily\textcolor[rgb]{0.5,0.5,1.0}{%
\small\oldstylenums{%
\arabic{FancyVerbLine}%
}%
}%
}
%===================================
% Mac 终端窗口环境定义
% ===================================
% macDarkc environment with comment definition
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
\DeclareTCBListing{macdarkc}{ m m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
appledark,%
title={#2},%
comment={\small\sffamily#1},%
minted language=bash%
}% end macdarkc
% maclightc environment definition
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
\DeclareTCBListing{maclightc}{ m m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
applelight,%
title={#2},%
comment={\small\sffamily#1},%
minted language=bash%
}% end maclightc
% macdark environment without comment definition
% 参数为窗口标题
\DeclareTCBListing{macdark}{ m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing only,%
appledark,%
title={#1},%
minted language=bash%
}% end macdark
% maclight environment without comment definition
% 参数为窗口标题
\DeclareTCBListing{maclight}{ m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing only,%
applelight,%
title={#1},%
minted language=bash%
}% end maclight
% 将文件做为窗口内容的Mac终端窗口样式命令
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
% 第3个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\macdarkcfile}[3]{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
appledark,%
listing file={#3},
title={#2},%
comment={\small\sffamily#1},%
minted language=bash%
}% end macdarkcfile
% 将文件做为窗口内容的Mac终端窗口样式命令
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
% 第3个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\maclightcfile}[3]{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
applelight,%
listing file={#3},
title={#2},%
comment={\small\sffamily#1},%
minted language=bash%
}% end maclightcfile
% 将文件做为窗口内容的Mac终端窗口样式命令
% 第1个参数是窗口标题
% 第2个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\macdarkfile}[2]{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing only,%
appledark,%
listing file={#2},
title={#1},%
minted language=bash%
}% end macdarkfile
% 将文件做为窗口内容的Mac终端窗口样式命令
% 第1个参数是窗口标题
% 第2个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\maclightfile}[2]{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing only,%
applelight,%
listing file={#2},
title={#1},%
minted language=bash%
}% end maclightfile
%===================================
% Windows 终端窗口环境定义
% ===================================
% windarkc environment with comment definition
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
\DeclareTCBListing{windarkc}{ m m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
win10dark,%
title={#2},%
comment={\small\sffamily#1},%
minted language=bat%
}% end windarkc
% winlightc environment definition
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
\DeclareTCBListing{winlightc}{ m m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
win10light,%
title={#2},%
comment={\small\sffamily#1},%
minted language=bat%
}% end winlightc
% windark environment without comment definition
% 参数为窗口标题
\DeclareTCBListing{windark}{ m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing only,%
win10dark,%
title={#1},%
minted language=bat%
}% end windark
% winlight environment without comment definition
% 参数为窗口标题
\DeclareTCBListing{winlight}{ m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing only,%
win10light,%
title={#1},%
minted language=bat%
}% end winlight
% 将文件做为窗口内容的Windows终端窗口样式命令
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
% 第3个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\windarkcfile}[3]{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
win10dark,%
listing file={#3},
title={#2},%
comment={\small\sffamily#1},%
minted language=bat%
}% end windarkcfile
% 将文件做为窗口内容的Windows终端窗口样式命令
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
% 第3个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\winlightcfile}[3]{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
win10light,%
listing file={#3},
title={#2},%
comment={\small\sffamily#1},%
minted language=bat%
}% end winlightcfile
% 将文件做为窗口内容的Windows终端窗口样式命令
% 第1个参数是窗口标题
% 第2个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\windarkfile}[2]{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing only,%
win10dark,%
listing file={#2},
title={#1},%
minted language=bat%
}% end windarkfile
% 将文件做为窗口内容的Windows终端窗口样式命令
% 第1个参数是窗口标题
% 第2个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\winlightfile}[2]{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing only,%
win10light,%
listing file={#2},
title={#1},%
minted language=bat%
}% end winlightfile
%===================================
% Ubuntu 终端窗口环境定义
% ===================================
% ubtdarkc environment with comment definition
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
\DeclareTCBListing{ubtdarkc}{ m m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
udark,%
title={#2},%
comment={\small\sffamily#1},%
minted language=bash%
}% end ubtdarkc
% ubtlightc environment definition
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
\DeclareTCBListing{ubtlightc}{ m m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
ulight,%
title={#2},%
comment={\small\sffamily#1},%
minted language=bash%
}% end ubtlightc
% ubtdark environment without comment definition
% 参数为窗口标题
\DeclareTCBListing{ubtdark}{ m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing only,%
udark,%
title={#1},%
minted language=bash%
}% end ubtdark
% ubtlight environment without comment definition
% 参数为窗口标题
\DeclareTCBListing{ubtlight}{ m }{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing only,%
ulight,%
title={#1},%
minted language=bash%
}% end ubtlight
% 将文件做为窗口内容的Ubuntu终端窗口样式命令
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
% 第3个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\ubtdarkcfile}[3]{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
udark,%
listing file={#3},
title={#2},%
comment={\small\sffamily#1},%
minted language=bash%
}% end ubtdarkcfile
% 将文件做为窗口内容的Ubuntu终端窗口样式命令
% 第1个参数是窗口底端提示信息
% 第2个参数是窗口标题
% 第3个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\ubtlightcfile}[3]{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
numbersep=3mm%
},%
listing and comment,%
colbacklower=tcbcolback!5!yellow!10!white,%
collower=linux,%
ulight,%
listing file={#3},
title={#2},%
comment={\small\sffamily#1},%
minted language=bash%
}% end ubtlightcfile
% 将文件做为窗口内容的Ubuntu终端窗口样式命令
% 第1个参数是窗口标题
% 第2个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\ubtdarkfile}[2]{%
listing engine=minted,%
minted style=default,%
minted options={%
%autogobble,%
breaklines,%
fontsize=\small,%
baselinestretch=0.6,%
breaksymbolleft={},%
%numbersep=3mm%
},%
listing only,%
udark,%
listing file={#2},
title={#1},%
minted language=bash%
}% end ubtdarkfile
% 将文件做为窗口内容的Ubuntu终端窗口样式命令
% 第1个参数是窗口标题
% 第2个参数是包含窗口内容的文件全路径名称(可以是相对路径)
\newtcbinputlisting{\ubtlightfile}[2]{%
listing engine=minted,%
minted style=default,%
minted options={%
autogobble,%
breaklines,%
mathescape,%
fontsize=\small,%