Skip to content

Commit 64d8d62

Browse files
committed
优化代码块展示效果
1 parent 90d2d77 commit 64d8d62

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,32 @@
11
\usepackage{listings}
2+
\usepackage{xcolor}
3+
\definecolor{codebg}{RGB}{248,248,248}
4+
\definecolor{framecolor}{RGB}{221,221,221}
25
\lstset{
36
breaklines=true,
47
breakatwhitespace=true,
58
breakindent=0pt,
69
columns=fullflexible,
710
keepspaces=true,
811
showstringspaces=false,
9-
upquote=true
12+
upquote=true,
13+
backgroundcolor=\color{codebg},
14+
frame=single,
15+
rulecolor=\color{framecolor},
16+
framesep=5pt,
17+
framerule=0.5pt,
18+
basicstyle=\ttfamily\small,
19+
keywordstyle=\color{blue},
20+
commentstyle=\color{gray},
21+
stringstyle=\color{orange},
22+
numbers=left,
23+
numberstyle=\tiny\color{gray},
24+
stepnumber=1,
25+
numbersep=8pt,
26+
captionpos=b,
27+
aboveskip=10pt,
28+
belowskip=10pt,
29+
xleftmargin=15pt,
30+
xrightmargin=15pt
1031
}
32+

chapters/Agentic Design Patterns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
27. [Agent 推理引擎剖析](Appendix%20F%20%20-%20Under%20the%20Hood_%20An%20Inside%20Look%20at%20the%20Agents'%20Reasoning%20Engines.md)(14页)
4949
28. [编程实现 Agent](Appendix%20G%20-%20%20Coding%20agents.md)(7页)
5050

51-
## 参考资料
51+
## 参考资料
5252
- [结论](Conclusion.md)(5页)
5353
- [术语表](Glossary.md)(4页)
5454
- [术语索引](Index%20of%20Terms.md)(11页,含 Agent 推理示例)

0 commit comments

Comments
 (0)