Theses, Books, Title pagesCan we modify the 'description' environment?

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Can we modify the 'description' environment?

Post by templateuser »

Hi,

I would like to add the vertical ocre line of the definition environment to the description environment. I was watching the structure file but I notice that description and definition commands are essentially different. Do you have any idea of how to do it?

Best,
elchilote.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Can we modify the 'description' environment?

Post by templateuser »

Hi,

I was reading a little and I happily could accomplish my goal. Now I want to share what I've learn.

Adding the following box I got what I was looking for:

Code: Select all

% defiT box
\newmdenv[skipabove=7pt,
skipbelow=7pt,
rightline=false,
leftline=true,
topline=false,
bottomline=false,
linecolor=ocre,
backgroundcolor=ocre!10,
shadow=true,
shadowcolor=black!10, 
innerleftmargin=5pt,
innerrightmargin=5pt,
innertopmargin=.3\baselineskip,
leftmargin=0cm,
rightmargin=0cm,
linewidth=3pt,%outerlinewidth=5pt, 
shadowsize=4pt,
innerbottommargin=.3\baselineskip]{defiT} 
and puting

Code: Select all

\newenvironment{defi}{\begin{defiT}\begin{description}}{\end{description}\end{defiT}} 
makes it very handy. Now I just have to call it by writing:

Code: Select all

\begin{defi}
\item[...]
\end{defi}
Thanks for the inspiration. I will be attentive to any suggestion. Btw, How can I post the commands in a better way?

Best,
elchilote.
Post Reply