I was thinking that this is a small matter, but I can't seem to get my head around this.
I want to create a legend, which sits on the right side of the page.
I created a minipage environment around the environment that I want to have on my right side and using \begin{flushright}. However, I can't add a title inside this minipage environment so that it gets displayed on top of the surrounded environment.
The MWE is just an example. I don't use a table in my case. So how do align my title right above the other environment, in this case the table?
MWE:
\documentclass[paper=a4,landscape]{scrartcl}
\usepackage{longtable}
\begin{document}
\begin{minipage}[t]{0.95\textwidth}
Some Title.
\begin{flushright}
\begin{longtable}{ll}
Bla & Bla \\
Blubb & Blubb
\end{longtable}
\end{flushright}
\end{minipage}
\end{document}


