From dca83e414264eb246fdac679c9a029dd3e26a3cf Mon Sep 17 00:00:00 2001
From: Juan Marin Noguera <juan@mnpi.eu>
Date: Thu, 13 Oct 2022 21:22:03 +0200
Subject: Mejorado formato de cajas.

Con \usepackage{mdframed}
---
 defs.tex | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)

(limited to 'defs.tex')

diff --git a/defs.tex b/defs.tex
index 55c8ce3..ea832b9 100644
--- a/defs.tex
+++ b/defs.tex
@@ -83,12 +83,23 @@
 \def\eoffsets{\end{center}}
 
 % Notices
-\def\sremember#1{%
-	\vspace{-1ex}\begin{center}\begin{tabular}{|p{0.9\textwidth}|}%
-	\multicolumn{1}{p{0.9\textwidth}}{{\kern-.3em\small {[}#1{]}}}%
-		\tabularnewline\hline\nobreak\vspace{-1ex}
-}
-\def\eremember{%
-	\nobreak\vspace{-1em}\tabularnewline\hline%
-	\end{tabular}\par\end{center}\vspace{.3em}%
+%\def\sremember#1{%
+%	\vspace{-1ex}\begin{center}\begin{tabular}{|p{0.9\textwidth}|}%
+%	\multicolumn{1}{p{0.9\textwidth}}{{\kern-.3em\small {[}#1{]}}}%
+%		\tabularnewline\hline\nobreak\vspace{-1ex}
+%}
+%\def\eremember{%
+%	\nobreak\vspace{-1em}\tabularnewline\hline%
+%	\end{tabular}\par\end{center}\vspace{.3em}%
+%}
+\usepackage[xcolor]{mdframed}
+\mdfdefinestyle{reminder}{%
+	frametitlerule=true,frametitlebackgroundcolor=gray!20,%
+	frametitlefont={\small\bfseries},leftline=false,rightline=false,%
 }
+\newmdenv[topline=false,bottomline=false,%
+	  skipabove=\topsep,skipbelow=\topsep]{exinfo}
+\def\sremember#1{\begin{mdframed}[style=reminder,frametitle={#1}%
+]}
+\def\eremember{\end{mdframed}}
+\newenvironment{reminder}[1]{\sremember{#1}}{\eremember}
-- 
cgit v1.2.3

