英文:
How to draw matrices with a label in a latex figure?
问题
I want to create tables as part of a figure in latex. I want to achieve this look:
英文:
I want to create tables as part of a figure in latex. I want to achieve this look:
I have no idea which package/commands to use.
答案1
得分: 2
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=0.4\linewidth]{example-image}
\medskip
$\sigma_1 \rightarrow \sigma_2 :
\begin{array}{ | *{5}{c|} }
a & b & c & e & f \\
\hline
a & b & c & e & f
\end{array}$ \quad
$\sigma_1 \rightarrow \sigma_3 :
\begin{array}{ | *{5}{c|} }
a & b & c & e & f \\
\hline
a & b & c & \gg & f
\end{array}$
\caption{A figure caption}
\end{figure}
\end{document}
英文:
Nothing fancy here; just some math as part of the figure
environment:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=0.4\linewidth]{example-image}
\medskip
$\sigma_1 \rightarrow \sigma_2 :
\begin{array}{ | *{5}{c|} }
a & b & c & e & f \\
\hline
a & b & c & e & f
\end{array}$ \quad
$\sigma_1 \rightarrow \sigma_3 :
\begin{array}{ | *{5}{c|} }
a & b & c & e & f \\
\hline
a & b & c & \gg & f
\end{array}$
\caption{A figure caption}
\end{figure}
\end{document}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论