Skip to content

Commit

Permalink
Remove listings presets
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexaraWu committed Sep 23, 2023
1 parent 6f1d6c6 commit c8cf848
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 32 deletions.
30 changes: 0 additions & 30 deletions sjtutex/source/sjtutex.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -5214,36 +5214,6 @@
}
% \end{macrocode}
%
% \subsubsection{\pkg{listings} 宏包}
% \begin{macrocode}
\ctex_at_end_package:nn { listings }
{
\lstdefinestyle { lstStyleCode }
{
aboveskip = \medskipamount ,
belowskip = \medskipamount ,
basicstyle = \ttfamily \zihao { 6 } ,
commentstyle = \slshape \color { black!60 } ,
stringstyle = \color { green!40!black!100 } ,
keywordstyle = \bfseries \color { blue!50!black } ,
extendedchars = false ,
upquote = true ,
tabsize = 2 ,
showstringspaces = false ,
xleftmargin = 1 em ,
xrightmargin = 1 em ,
breaklines = false ,
framexleftmargin = 1 em ,
framexrightmargin = 1 em ,
backgroundcolor = \color { gray!10 } ,
columns = flexible ,
keepspaces = true ,
texcl = true ,
mathescape = true
}
}
% \end{macrocode}
%
% \subsubsection{\pkg{nomencl} 宏包}
% \begin{macrocode}
\ctex_at_end_package:nn { nomencl }
Expand Down
26 changes: 24 additions & 2 deletions sjtutex/support/common-package.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,30 @@
\usepackage[perpage,bottom,hang]{footmisc}
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
\usepackage{listings}
\lstnewenvironment{codeblock}[1][]%
{\lstset{style=lstStyleCode,#1}}{}
\lstdefinestyle{lstStyleCode}{%
aboveskip = \medskipamount,
belowskip = \medskipamount,
basicstyle = \ttfamily\zihao{6},
commentstyle = \slshape\color{black!60},
stringstyle = \color{green!40!black!100},
keywordstyle = \bfseries\color{blue!50!black},
extendedchars = false,
upquote = true,
tabsize = 2,
showstringspaces = false,
xleftmargin = 1em,
xrightmargin = 1em,
breaklines = false,
framexleftmargin = 1em,
framexrightmargin = 1em,
backgroundcolor = \color{gray!10},
columns = flexible,
keepspaces = true,
texcl = true,
mathescape = true
}
\lstnewenvironment{codeblock}[1][]{%
\lstset{style=lstStyleCode,#1}}{}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{threeparttable}
Expand Down

0 comments on commit c8cf848

Please sign in to comment.