General ⇒ create legend over symbols used
create legend over symbols used
Is there a possibility to realize this in LaTeX? I thought about using a table or a minipage but I can't manage to include a figure.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
create legend over symbols used
Code: Select all
\documentclass{article}
\usepackage{xcolor}
\usepackage{amsmath}
\begin{document}
text text text
$\overset{\colorbox{blue}{\parbox{3.7cm}{\centering%
$A$ is the domain of $f$\\%
$B$ is the codomain of $f$\\[1em]%
\colorbox{gray}{\textcolor{red}{Other notation:}}\\[0.5em]%
$A\xrightarrow{f}B$}}}%
{f:A\rightarrow B}$
text text text
\end{document}
Edit: I added the links to the packages.