I'm interesting in Boxed text between pages 2nd version: exercise box with mdframed. Ho to add to this : Vertically shaded frametitle and Vertically shaded box with dropping shadow?
Yes i have seen several examples here for shadows and vertical shading but thay use styles i cannot put in mdframed.
here is another example. 2 questions: 1.ho can i change size of rounded titlebox shadow's size? 2. how can i remove that red titlebox thing? or another alternative would be to start shading from top including rectangular titleframe
\documentclass{article}
\usepackage[a5paper]{geometry}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{amsmath,amssymb}
\usetikzlibrary{shadows.blur}
\usetikzlibrary{shapes.symbols}
\usetikzlibrary{shadows}
\usetikzlibrary{calc}
\usepackage{lipsum}
\newcounter{exe}
\newenvironment{Fancybox}[1][.5\textwidth]
{%
\stepcounter{exe}%
\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=8pt]
\node[draw=blue!40,anchor=east,rectangle, thick,font=\color{black}, double,
top color=blue!40,
bottom color=blue!5,
rounded corners=8pt,
drop shadow,
]
{\strut Exercise~\theexe};},%
skipabove=\topskip,
skipbelow=\topskip,
innertopmargin=1pt,
apptotikzsetting={\tikzset{mdfbackground/.append style={top color=blue!40, bottom color=white}}},
linecolor=blue,%
innerlinewidth=1pt,
topline=true,
shadow=true,
rightline=true,innerleftmargin=10,innerrightmargin=10,
frametitlerule=false,
frametitlebackgroundcolor=red,
shadowcolor=blue!40,
frametitleaboveskip=\dimexpr-\ht\strutbox\relax,
roundcorner=5pt,
singleextra={\path let \p1=(P), \p2=(O) in node[fill=blue!40,font=\color{black}] at (P|-0,0.5*\y2+0.5*\y1) {$\clubsuit$};}
}
\begin{mdframed}[userdefinedwidth=#1]\allowdisplaybreaks\relax%
}
{\end{mdframed}}
\begin{document}
\lipsum[1-4]
\begin{Fancybox}[1\textwidth]
\begin{align}
\dot{n} &= u\cos\psi -v\sin\psi \\
\dot{e} &= u\sin\psi + v\cos\psi
\end{align}
For small angles the following approximation can be used:
\begin{align}
\dot{n} &= u -v\delta_\psi \\
\dot{e} &= u\delta_\psi + v
\end{align}
\end{Fancybox}
\begin{Fancybox}[1\textwidth]
\begin{align}
\dot{n} &= u\cos\psi -v\sin\psi \\
\dot{e} &= u\sin\psi + v\cos\psi
\end{align}
For small angles the following approximation can be used:
\begin{align}
\dot{n} &= u -v\delta_\psi \\
\dot{e} &= u\delta_\psi + v
\end{align}
\end{Fancybox}
\end{document}
outerlinewidth=1em
andouterlinecolor=white
and you'll see the required shadow. Why are you using those options?shadowcolor
key, adding to the options something likeshadowcolor=red,
.