I have modified the "Remark" environment of the legrand-orange-book template for my conclusions. The changes are the addition of a color title followed by a line on the remaining width of the environment as well as a colored line underneath the last line.
The following code works like a charm:
Code: Select all
\documentclass{book}
\usepackage{lipsum}
\usepackage{tikz} % Required for drawing custom shapes
\definecolor{cbleu}{RGB}{0,131,171} %custom color 1
\definecolor{cbleu2}{RGB}{26,176,230} %custom color 2
\newenvironment{conclusion}{\par\vspace{10pt} % Vertical white space above the envrnmt
\begin{list}{}{
\leftmargin=25pt % Indentation on the left
\rightmargin=15pt}\item\ignorespaces % Indentation on the right
\makebox[-2.5pt]{\begin{tikzpicture}[overlay,baseline=(char.base)]
\node[draw=cbleu2!60,line width=1pt,circle,fill=cbleu2!25,font=\sffamily\bfseries,inner sep=2pt,outer sep=0pt] at (-15pt,0pt)(char){\textcolor{cbleu}{C}};\end{tikzpicture}} % Blue C in a darker blue circle
\normalfont\normalsize\sffamily\bfseries{\textcolor{cbleu}{Conclusion}} %defines the title of the paragraph with a paragraph style
\normalfont
\noindent\textcolor{cbleu}{\hrulefill}%keep the next line empty so that the text starts on a new line.
\advance\baselineskip -1pt}{\newline\textcolor{cbleu}{\hrulefill}\end{list}\vskip10pt} % Tighter line spacing and white space after conclusion
\begin{document}
\lipsum[1]
\begin{conclusion}
\lipsum[1-2]
blablabla not too long
\end{conclusion}
\lipsum[1]
\end{document}
In addition, I may end up defining several of these environments. If it were a command I would do a renewcommand with 4 parameters (title, letter to be encircled, color1, color2) but with an environment is there something equivalent ?
Thanks!