Initial commit
This commit is contained in:
48
packages/mycodelistings.sty
Normal file
48
packages/mycodelistings.sty
Normal file
@@ -0,0 +1,48 @@
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{mycodelistings}[2025/04/05 My Code Listings Config]
|
||||
|
||||
\usepackage{listings}
|
||||
\usepackage{xcolor}
|
||||
|
||||
\definecolor{draculabg}{RGB}{40,42,54}
|
||||
\definecolor{draculafg}{RGB}{248,248,242}
|
||||
\definecolor{draculacomment}{RGB}{98,114,164}
|
||||
\definecolor{draculacurrentline}{RGB}{68, 71, 90}
|
||||
\definecolor{draculaorange}{RGB}{255,184,108}
|
||||
\definecolor{draculacyan}{RGB}{139,244,253}
|
||||
\definecolor{draculagreen}{RGB}{80,250,123}
|
||||
|
||||
\lstdefinestyle{codestyle}{
|
||||
backgroundcolor=\color{draculabg},
|
||||
commentstyle=\color{draculacomment},
|
||||
keywordstyle={\color{draculaorange}},
|
||||
identifierstyle=\color{draculacyan},
|
||||
numberstyle=\small\color{draculacurrentline},
|
||||
stringstyle=\bfseries\color{draculagreen},
|
||||
basicstyle=\ttfamily\normalsize\color{draculafg},
|
||||
breakatwhitespace=false,
|
||||
breaklines=true,
|
||||
captionpos=t,
|
||||
keepspaces=true,
|
||||
numbers=left,
|
||||
numbersep=14pt,
|
||||
showspaces=false,
|
||||
showstringspaces=true,
|
||||
showtabs=false,
|
||||
tabsize=4,
|
||||
lineskip=-3pt,
|
||||
xrightmargin=32pt,
|
||||
xleftmargin=32pt,
|
||||
frame=single,
|
||||
framerule=1pt,
|
||||
rulesepcolor=\color{draculacyan},
|
||||
framexleftmargin=4pt,
|
||||
framexrightmargin=4pt,
|
||||
framextopmargin=4pt,
|
||||
framexbottommargin=4pt,
|
||||
xleftmargin=5px,
|
||||
xrightmargin=5px
|
||||
}
|
||||
|
||||
\newcommand{\defaultlistingstyle}{\lstset{style=codestyle}}
|
||||
\renewcommand{\lstlistingname}{コードリスティング}
|
||||
Reference in New Issue
Block a user