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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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.