Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezhou486 committed Aug 6, 2024
1 parent a109237 commit 11830b9
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -55,31 +55,31 @@
\usepackage[sfdefault]{roboto}


\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.58,0,0.82}

\lstdefinestyle{mystyle}{
backgroundcolor=\color{white}, % 代码块的背景颜色
commentstyle=\color{codegreen}, % 注释颜色
keywordstyle=\color{magenta}, % 关键字颜色
numberstyle=\tiny\color{codegray}, % 行号颜色
stringstyle=\color{codepurple}, % 字符串颜色
basicstyle=\fontsize{8}{8}\ttfamily, % 基本样式
breaklines=true, % 自动换行
captionpos=b, % 标题位置
keepspaces=false, % 保持空格
numbers=left, % 行号位置
numbersep=5pt, % 行号与代码之间的间隔
showspaces=false, % 显示空格
showstringspaces=false, % 显示字符串中的空格
showtabs=false, % 显示制表符
tabsize=2, % 制表符宽度
xleftmargin=\parindent, % 左边距
frame=single, % 添加边框
}

\lstset{style=mystyle}
% \definecolor{codegreen}{rgb}{0,0.6,0}
% \definecolor{codegray}{rgb}{0.5,0.5,0.5}
% \definecolor{codepurple}{rgb}{0.58,0,0.82}

% \lstdefinestyle{mystyle}{
% backgroundcolor=\color{white}, % 代码块的背景颜色
% commentstyle=\color{codegreen}, % 注释颜色
% keywordstyle=\color{magenta}, % 关键字颜色
% numberstyle=\tiny\color{codegray}, % 行号颜色
% stringstyle=\color{codepurple}, % 字符串颜色
% basicstyle=\fontsize{8}{8}\ttfamily, % 基本样式
% breaklines=true, % 自动换行
% captionpos=b, % 标题位置
% keepspaces=false, % 保持空格
% numbers=left, % 行号位置
% numbersep=5pt, % 行号与代码之间的间隔
% showspaces=false, % 显示空格
% showstringspaces=false, % 显示字符串中的空格
% showtabs=false, % 显示制表符
% tabsize=2, % 制表符宽度
% xleftmargin=\parindent, % 左边距
% frame=single, % 添加边框
% }

% \lstset{style=mystyle}

% 定义代码样式
\lstdefinestyle{shared}{
Expand Down

0 comments on commit 11830b9

Please sign in to comment.