diff options
Diffstat (limited to 'macros/latex/contrib/bmstu-iu8/styles/20-IU8-listing.sty')
-rw-r--r-- | macros/latex/contrib/bmstu-iu8/styles/20-IU8-listing.sty | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/macros/latex/contrib/bmstu-iu8/styles/20-IU8-listing.sty b/macros/latex/contrib/bmstu-iu8/styles/20-IU8-listing.sty deleted file mode 100644 index a2d817a0fb..0000000000 --- a/macros/latex/contrib/bmstu-iu8/styles/20-IU8-listing.sty +++ /dev/null @@ -1,43 +0,0 @@ -% Author: CatInCosmicSpace -\NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesPackage{20-IU8-listing}[2021/03/21 v1.0 Листинги] - -\RequirePackage{listings} -\RequirePackage{xcolor} - -\definecolor{codegreen}{rgb}{0,0.6,0} -\definecolor{codegray}{rgb}{0.5,0.5,0.5} -\definecolor{codepurple}{rgb}{0.58,0,0.82} -\definecolor{backcolour}{rgb}{0.95,0.95,0.92} - -\lstdefinestyle{IU8}{ - % backgroundcolor=\color{backcolour}, - % commentstyle=\color{codegreen}, - % keywordstyle=\color{magenta}, - numberstyle=\tiny\color{black}, - % stringstyle=\color{codepurple}, - basicstyle=\ttfamily\footnotesize, - breakatwhitespace=false, - breaklines=true, - captionpos=tl, - xleftmargin=0.5\parindent, - keepspaces=true, - numbers=left, - numbersep=5pt, - showspaces=false, - showstringspaces=false, - showtabs=false, - tabsize=2, -} -\lstset{style=IU8} - -\DeclareCaptionFormat{listing}{#1#2#3} -\captionsetup[lstlisting]{ - format=listing, - singlelinecheck=false, - labelsep=endash, -} - -\newcommand{\listing}[2][]{% - \lstinputlisting[caption={\texttt{\detokenize{#2}}},#1]{#2}% -} |