Latex部分用法记录
Latex颜色
\usepackage{color}\textcolor{red, blue, green}{233333}
下划线-1 (不会使期刊有下划线)
\usepackage{soul}
soul 宏包
宏包一共提供5个命令分别是:so, caps, ul, hl, st。分别的作用是:字母间隔,全大写,下划线,高亮,删除线。
下划线2(会使期刊有下划线)
\usepackage{ulem}
\sout{文字} %删除线\uwave{文字} %波浪线\xout{文字} %斜删除线\uuline{文字} %双下划线
期刊中的下划线需手动将\emph{} 改为其他,例 \it{}
引用编号下划线(\mbox{})
原始: \cite{name}
修改:\mbox{\cite{name}}
图像排版
参考:参考地址
准备工作
1.使用Adobe Acrobat 将原始PDF图像导出成矢量图;
2.统一 一行图像的宽高,例如,同一行图像的 高/宽 比例一致;
mxn排列
例如: 2 x 2 grid 排列图像,为了一行能放得下,需要调整参数。
调试: 1. \begin{minipage}[b]{0.23\linewidth} 调整子图的宽度和子图之间的距离;
2.\includegraphics[width=4cm] 调整图片的宽度
3.\vspace{1pt} 要紧跟在对应的includegraphics,不然得不到想要的结果
4.两个subfigure之间可以加入\vspace{1pt} 和 \hspace{1pt}调整纵向和横向距离。
\usepackage{graphicx}\usepackage{subfigure} %需要使用的宏包\begin{figure}\centering\subfigure[Jackson Yee]{\begin{minipage}[b]{0.23\linewidth} %0.23为minipage的宽度,可以调节子图间的距离\includegraphics[width=4cm]{Jackson.JPG}\vspace{1pt} %图片的宽度、路径和垂直间距\includegraphics[width=4cm]{Jackson.JPG}\vspace{1pt}%\vspace要紧跟在对应的includegraphics,不然得不到想要的结果\end{minipage}}\vspace{1pt}\hspace{1pt}\quad %退一格\qquad %退两格,调节子图间的距离\subfigure[Jackson Yee]{\begin{minipage}[b]{0.23\linewidth}\includegraphics[width=4cm]{Jackson.JPG}\vspace{1pt} \includegraphics[width=4cm]{Jackson.JPG}\vspace{1pt}\end{minipage}}\caption{Jackson Yee}\end{figure}
去除subfigure中默认的序号(a)
将\subfigure后面的[]去掉,则图注中的(a) 也会消失,但是大部分情况下是需要这个图注作为说明的。解决办法:在最后一张图像后加入文字。例如,下面代码中的: \centerline{\footnotesize 文字}
\subfigure{\begin{minipage}[b]{0.23\linewidth} %0.23为minipage的宽度,可以调节子图间的距离\includegraphics[width=4cm]{Jackson.JPG}\vspace{1pt} %图片的宽度、路径和垂直间距\includegraphics[width=4cm]{Jackson.JPG}\vspace{1pt}%\vspace要紧跟在对应的includegraphics,不然得不到想要的结果\centerline{\footnotesize 这里可以加图像,并且是居中显示且没有编号(a)的}% 或者\centerline{\footnotesize 第二行可以为空}\centerline{\footnotesize }\end{minipage}}
奇怪的问题记录
I was expecting an "="---line 17 of file ref/refs.bib: // :publisher={IEEE}I'm skipping whatever remains of this entry解决方案:原因是在reference的bib文件中出现了空格, 例如: // publisher={IEEE},双斜线后面有空格,删掉空格即可解决问题。
问题描述:latex图片label出不来,显示问号 《如图??》尝试手段:将figure里面内容的 \caption 和 \label位置交换一下,caption在前,label在后。
Latex 删除线 下划线 波浪线 文字颜色 下划引用编号; Latex 对图像排版 去除subfigure中的(a) 等