LaTeX编辑器: TeXworks
LaTeX 使用tips与EDAS论文提交
注释多行
- 先选中多行latex代码。
- ctrl+shift+] : 注释多行。
ctrl+shift+[ : 取消注释。
插入百分号%
前面加个斜杠,即\%
.
加粗,斜体
\textbf{xxxx}
\textit{xxxx}
下划线
Latex中直接使用下划线_,因与系统默认功能相冲突,会报错或者损失信息。
改为\_
段落顶格
Latex 换行顶格、不缩进,使用的命令为:
\noindent
在顶格的段落前面加上,此命令,就可以啦~~~
插入图片过大如何解决
\begin{figure}[htbp]
\centerline{\includegraphics[width=0.5\textwidth]{f1.png}}
\caption{Example of a figure caption.}
\label{f1}
\end{figure}
加入参数width=0.5\textwidth, width=0.5指图片宽度所占当前页面的比例,高度自动按比例缩放。
插入图片不清晰,改成插入pdf
visio里 设计-> 大小 -> 适应绘图,再 文件 -> 导出(pdf,选择当前页)
插入latex中只要把名字 .png 改成 .pdf 就行,其他不变
图片与图名间距,图表与上下文间距
图片与图名间距
\setlength{\abovecaptionskip}{-0.2cm} %减少图表与图表名之间的距离
\begin{document}
图表与上下文间距
\begin{figure}[htbp]
\vspace{-0.5cm} %减少图表与上下文之间的距离
xxxx
\vspace{-0.5cm} %减少图表与上下文之间的距离
\end{figure}
\begin{table}[htbp]
\vspace{-0.3cm}
xxxx
\vspace{-0.3cm}
\end{table}
插入公式
行间公式
\begin{equation}
a+b=\gamma\label{eq}
\end{equation}
行内公式
$ xxxx $
报错:Package inputenc Error: Unicode character Ⅰ (U+2160)
检查字符是否是中文字符,果然是 I
常用table
\begin{tabular}{|l|c|r|} %l(left)居左显示 r(right)居右显示 c居中显示
\hline
\textbf{Layer}&Steve&Bill\\
\hline
Matlab&Mathmatica&Maple\\
\hline
\end{tabular}
三线表:
\documentclass[UTF8]{ctexart}
\begin{document}
\begin{tabular}{ccc}
\hline
姓名& 学号& 性别\\
\hline
Steve Jobs& 001& Male\\
Bill Gates& 002& Female\\
\hline
\end{tabular}
\end{document}
table 格内换行
遇到表格内容太长,需要换行。需要用到 makecell 指令就可以轻松实现。
首先,需要宏包:
\usepackage{makecell}
然后,主要要在 tabular 里面使用。
其次,用法是:
\makecell[居中情况]{第1行内容 \\ 第2行内容 \\ 第3行内容 ...}
latex 控制表格 行间距
表格中,在\begin{table}下加上
\renewcommand\arraystretch{1.5}
控制表格行宽
\setlength{\tabcolsep}{25pt}
引用
正文
xxxxx takes DenseNet \cite{b1} as an example.
引用
\begin{thebibliography}{00}
\bibitem{b1} Huang G, Liu Z, Van Der Maaten L, et al. ``Densely connected convolutional networks,'' in Proceedings of the IEEE conference on computer vision and pattern recognition. 2017: 4700-4708.
\bibitem{b2} Kendall A, Gal Y, Cipolla R. ``Multi-task learning using uncertainty to weigh losses for scene geometry and semantics,'' in Proceedings of the IEEE conference on computer vision and pattern recognition. 2018: 7482-7491.
\end{thebibliography}
参考文献
图,表 的引用
Fig.~\ref{fig}
同一处引用多个参考文献
加包\usepackage{cite}
,
处理多个文献命令:\cite{name1,name2,...,nameN}
EDAS论文提交时报错 字体嵌入
notembedded: Upload failed: The font Times New Roman is not embedded in the file
解决办法:IEEE论文检测的字体未嵌入问题Times New Roman,Bold, Times New Roman,Italic is not embedded解决方法
Adobe 图片不清晰
我用latex生成的论文,在adobe打开不清晰。设置如下:
关闭缩减采样,关闭图像压缩
Adobe 打印打不开:adobe 您需要先安装打印机方可执行
控制面板搜打印机,查看打印机,选择 Adobe PDF,设置为默认打印机