Skip to content
Snippets Groups Projects
Commit 79ddac49 authored by GARION Christophe's avatar GARION Christophe
Browse files

listings: use colors as option

parent c8559faa
No related branches found
No related tags found
No related merge requests found
%% personal config for listings %% personal config for listings
%% C. Garion, 2012-2015 %% C. Garion, 2012-2017
%% %%
\NeedsTeXFormat{LaTeX2e}[1995/12/01] \NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{my-listings}[2015/11/16 v0.1 \ProvidesPackage{my-listings}[2017/01/16 v0.2
LaTeX package for listings configuration] LaTeX package for listings configuration]
% options
\def\@colorlst{}
\DeclareOption{colors}{
\def\@colorlst{true}
}
\ProcessOptions\relax
% LuaLaTeX % LuaLaTeX
\RequirePackage{ifluatex} \RequirePackage{ifluatex}
...@@ -180,3 +188,11 @@ ...@@ -180,3 +188,11 @@
identifierstyle=\color{lstblue} identifierstyle=\color{lstblue}
} }
} }
\ifx@colorlst\@empty
\relax
\else
\lstusecolors
\fi
\endinput
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment