LaTex: Figures
Images in LaTex
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\includegraphics[width=\linewidth]{boat.jpg}
\caption{A boat.}
\label{fig:boat1}
\end{figure}
Figure \ref{fig:boat1} shows a boat.
\end{document}
Use \ref to reder to a figure in text
Image Positioning / setting the float
\begin{figure}[h!]
h - same locatio
t - top of page
b - bottom of page
p - on an extra page
! - override
Multiple images/Subfigures
Need package graphicx and subcaption
\begin{figure}[h!]
\centering
\begin{subfigure}[b]{0.4\linewidth}
\includegraphics[width=linewidth]{image.jpg}
\caption{image.}
\end{subfigure}
\begin{subfigure}[b]{0.4\linewidth}
\includegraphics[width=linewidth]{image.jpg}
\caption{image.}
\end{subfigure}
\caption{images}
\label{fig:images}
\end{figure}
本文介绍了如何在 LaTeX 中插入和管理图像,包括使用
ef 引用图像,设置图像的位置,如 h, t, b, p 和 !,以及如何创建包含多个子图的图像。"
110292280,5774414,C++实现:统计单链表中偶数个数,"['C++编程', '链表操作', '算法实现', '数据结构应用']

1904

被折叠的 条评论
为什么被折叠?



