Latex_01_图表格式技巧

发布于 2023-09-12  260 次阅读


Please refresh the page if equations are not rendered correctly.
---------------------------------------------------------------

空格

两个quad空格 a \qquad b 两个m的宽度
quad空格 a \quad b 一个m的宽度
大空格 a\ b 1/3m宽度
中等空格 a\;b 2/7m宽度
小空格 a\,b 1/6m宽度
没有空格 ab
紧贴 a!b |缩进1/6m宽度

图片和表格浮动形式

常用选项[htbp]是浮动格式:
『h』当前位置。将图形放置在正文文本中给出该图形环境的地方。如果本页所剩的页面不够,这一参数将不起作用。
『t』顶部。将图形放置在页面的顶部。
『b』底部。将图形放置在页面的底部。
『p』浮动页。将图形放置在一只允许有浮动对象的页面上。

在table或者figure 后加 [!htb] 是系统忽略“美学”标准,把表格和图片插入到你的代码中,是动的,但是不加感叹号,它就是按顺序选择h(此处),t(上方),b(下方),所以为了让图片随着你的代码移动,最好加一个[!htb]

图片标题Caption居中

全局居中

\usepackage[justification=centering]{caption}

单独居中

\begin{center}
\includegraphics[width=0.95\textwidth]{images/SandwichModel.png}
\caption{Perforated sandwich composite model}
\end{center}

\begin{figure}[h]%htbp
\centering
\includegraphics[width=0.95\textwidth]{images/SandwichModel.png}
\caption{Perforated sandwich composite model}
\label{fig1.Sandwich model}
\end{figure}

届ける言葉を今は育ててる
最后更新于 2023-09-12