From b2ad5df871a9fec1aafc92f9a9fe794a00a65403 Mon Sep 17 00:00:00 2001 From: Jan Benda Date: Tue, 17 Nov 2015 18:19:54 +0100 Subject: [PATCH] Merged info and important box listings --- header.tex | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/header.tex b/header.tex index 46580e4..b02fb3c 100644 --- a/header.tex +++ b/header.tex @@ -241,7 +241,7 @@ % The cooler programming language. \DeclareFloatingEnvironment[ fileext=lob, - listname={\tr{Info Boxes}{Info-Boxen}}, + listname={\tr{Info and Important Boxes}{Info- und Merk-Boxen}}, name={Info-Box}, placement=t ]{iboxf} @@ -267,20 +267,20 @@ % results in a nicely colored box with the text inside. % The optional title of the box "Apples are important" % also appears in the list of important things. -\DeclareFloatingEnvironment[ - fileext=loi, - listname={\tr{Important hints}{Merk-Boxen}}, - name={Merk-Box}, - placement=t -]{importantf} +% \DeclareFloatingEnvironment[ +% fileext=loi, +% listname={\tr{Important hints}{Merk-Boxen}}, +% name={Merk-Box}, +% placement=t +% ]{importantf} \newenvironment{important}[1][]% -{\captionsetup{singlelinecheck=off,labelfont={large,sf,it,bf},font={large,sf,it,bf}} +{\captionsetup{singlelinecheck=off,labelformat={empty},labelfont={large,sf,it,bf},font={large,sf,it,bf}} \ifthenelse{\equal{#1}{}}% {\begin{mdframed}[linecolor=blue!40,linewidth=1ex,% backgroundcolor=blue!10,font={\sffamily}]}% {\begin{mdframed}[linecolor=blue!40,linewidth=1ex,% backgroundcolor=blue!10,font={\sffamily},% - frametitle={\captionof{importantf}{#1}},frametitleaboveskip=-1ex,% + frametitle={\captionof{iboxf}{#1}},frametitleaboveskip=-1ex,% frametitlebackgroundcolor=blue!40]}% }% {\end{mdframed}}