[Latex] 插入图片 | 插入表格 | 符号、文本粗体 | 单栏、双栏添加行号 | 添加空格 | 注释快捷键 | 维度 | 脚注 | 公式 | 分点 |

1. 插入图片

添加图片

使用福昕编辑器进行裁剪,然后(将图片统一放入picture文件夹):

\begin{figure} (双栏占一栏)
\begin{figure}[h] 	% 可选,h这里;t顶部;b底部。
\centering
\includegraphics[scale=0.6]{picture/model} 	% [width=\textwidth][width=\linewidth]
\caption{This is a caption}
\Description{This is Description}
\label{fig1}		% label用于后续引用
\end{figure}

其中方括号[]中的内容为可选项,width=\textwidthwidth=\linewidth在单双栏会有些不同。

\begin{teaserfigure}(双栏占两栏)

\begin{teaserfigure}
\includegraphics[width=\textwidth]{pic/model}
\caption{This is a caption}
\Description{This is Description}
\label{fig1}
\end{teaserfigure}
在正文中,
引用该图片的时候:~\ref{fig1}

Note:

  1. 如果是两栏,上述显示的图片只占其中一栏;将\begin{}\end{}中的figure改为figure*后,会占据两栏。
  2. 其中\includegraphics后的[]可以根据情况进行更改。
    [scale=0.6],指按原始图片0.6比例进行缩小。
    [width=\linewidth],宽度按照页面宽度进行。
    [width=0.4\textwidth,height=0.3\textwidth],分别对宽度、高度进行缩小。

2. 插入表格

\begin{table}[h] 	% 可选,h这里;t顶部;b底部。
\caption{This is a caption}
\label{tab1}
\begin{tabular}{c|cc} 	% 有多少列就有多少个c,c|c表示列之间有竖列。(c居中;l左;r右)
\toprule  			% 上部线
1 & 2 & 3 \\
\midrule  			% 中间线
1 & 2 & 3 \\
\bottomrule  		% 底部线
\end{tabular}
\end{table}

有多少列就有多少个c,c|c表示列之间有竖列。

3. 符号、文本粗体

\boldsymbol 	% 给符号加粗体(向量、矩阵)
\mathbf  		% 给符号加粗体(向量、矩阵)
\textbf 		% 给文本加粗体

4. 单栏、双栏添加行号

单栏
\usepackage{lineno}
\begin{document}
\linenumbers		  % 开始编号
(文章内容)
\nolinenumbers        % 结束编号,若要全文编号,该条命令可不加(表示一直编号到最后)
(通常.bib文件放在这里,因为参考文献不必编号)
\end{document}
双栏
\usepackage[switch]{lineno}
\begin{document}
\linenumbers
(文章内容)
\nolinenumbers        % 结束编号,若要全文编号,该条命令可不加
\end{document}
每一页都重新编号
\usepackage{lineno} 
\begin{document}	
\pagewiselinenumbers	% 按页重新编号
\switchlinenumbers

5. 添加空格

\qquad 	% 2m
\quad 	% m
\  		% 1/3m
\; 		% 2/7m
\, 		% 1/6m
\!  	% 紧贴

6. 注释快捷键

ctrl+T

7. 维度

\mathbb{R}^{d}

在这里插入图片描述

8. 脚注

\footnote{}

9. 公式

单个公式
\begin{equation}
(公式)
\end{equation}
多个公式
\begin{equation}
\begin{aligned}
(公式1% 中间的=&=
(公式2% 中间的=&=
\end{aligned}
\end{equation}

10. 分点

\begin{itemize} 
\item
\item
\end{itemize}

补充

1)\noindent 顶格

2)\sum\nolimits_{} 在正文实现上下标在右侧

3)\textsc 大写字母,首字母再大写

4) \clearpage 重新起一页,通常使用在添加附录页时

5)特殊符号

  1. \blacktriangle\blacktriangledown,分别为实心正三角和实心倒三角。
    在这里插入图片描述

参考:

  1. Latex中插入图片:https://blog.csdn.net/qq_35091353/article/details/111403178
  2. 【Latex】latex导入svg图片:https://blog.csdn.net/dl962454/article/details/114479159
  3. 【InkScape+LaTeX】如何绘制矢量图并优雅地用在LaTeX文档中?:https://www.bilibili.com/video/BV1V7411u7cg?p=2
  4. latex在论文中添加行号:https://blog.csdn.net/weixin_38314865/article/details/111031001
  5. 关于LaTeX空格命令的心得分享:https://zhuanlan.zhihu.com/p/411399241
另:添加svg矢量图

将.svg图片转为.pdf图片,下载并安装:https://inkscape.org/release/all/windows/64-bit/exe/

记得选择,添加到PATH,否则后续要手动添加:在这里插入图片描述

在需要转换的svg图片(demo.svg)下进入cmd,输入:

inkscape -D --export-type=pdf --export-latex demo.svg
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值