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

[listings] add return keyword in algo language

parent 5109a1d9
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@
\lstdefinelanguage{algo}{
morekeywords={:=, end, if, then, else, while, do, for, until,
Function, Procedure, out},
Function, Procedure, out, return},
keywordstyle=\color{black}\bfseries,
stringstyle=\color{black},
commentstyle=\color{black},
......@@ -182,9 +182,13 @@
\RequirePackage{xcolor}
\RequirePackage{caption}
\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\linewidth}{\hspace{15pt}#1#2#3}}}
\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white,
\DeclareCaptionFont{white}{\color{black}}
\DeclareCaptionFormat{listing}{%
\colorbox{gray}{%
\noindent\parbox{\dimexpr\columnwidth-2\fboxsep}{#1#2#3}%
}%
}
\captionsetup[lstlisting]{format=listing, labelfont=white, textfont=white,
singlelinecheck=false, margin=0pt, font={bf}}
\colorlet{isae@bggray}{gray!20}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment