LaTex: Figures 插入图像

本文介绍了如何在 LaTeX 中插入和管理图像,包括使用 ef 引用图像,设置图像的位置,如 h, t, b, p 和 !,以及如何创建包含多个子图的图像。" 110292280,5774414,C++实现:统计单链表中偶数个数,"['C++编程', '链表操作', '算法实现', '数据结构应用']

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}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值