文章目录
前言
在此记录我在使用latex的过程中做的一些笔记,以便后来快速查找。
即:本文为 LaTex 操作手册(方便查找)。
include,input等的使用
LaTeX分文件编译教程 https://blog.csdn.net/qq_22812319/article/details/51953815
LaTeX技巧如何拆分源文件并且分别编译 https://blog.csdn.net/garfielder007/article/details/51606670
bibitem
[转载]解决从bibtex到bibitem的转换问题 http://blog.sina.com.cn/s/blog_7149fc900102v3m2.html
括号
[latex]括号总结 https://blog.csdn.net/qq_34369618/article/details/61207623
公式自动换行
latex 行内公式超出行宽,自动换行的方法。 https://blog.csdn.net/u014686356/article/details/84348560
LaTex排版技巧:[15]公式太长如何换行? https://jingyan.baidu.com/article/d7130635045b2013fcf47543.html
表格
LaTeX—\begin{tabulart}如何在指定列宽的表格里实现文字居中
空格
Latex中的空格 https://blog.csdn.net/seaskying/article/details/51316607
\quad 可以,
一个斜杠也可以 \
求和
Latex 求和积分的上下限技巧 https://jingyan.baidu.com/article/2a138328af0484074a134f9c.html
关于角括号太大
最后自己调出来的:
$ V = \langle a_{ef}, a_{ep}, a_{np}, a_{nf} \rangle $
latex中括号大小控制 https://blog.csdn.net/foreverdengwei/article/details/8189243
表格引用
Referring to a table in LaTeX [closed] https://stackoverflow.com/questions/1353120/referring-to-a-table-in-latex
常用数学符号
Latex常见符号对照表 https://blog.csdn.net/zgj926503/article/details/52757631
常用数学符号的 LaTeX 表示方法 http://www.mohu.org/info/symbols/symbols.htm
空格
latex公式中的空格如何表示? https://blog.csdn.net/bennyfun79/article/details/15500575
字母上方的特殊符号
latex 字母上面加符号 https://blog.csdn.net/dlaicxf/article/details/52680666
引用章节
How to number and cross-reference \subsubsection-level headers https://tex.stackexchange.com/questions/198800/how-to-number-and-cross-reference-subsubsection-level-headers
\setcounter{secnumdepth}{3} % default value for ‘report’ class is “2”
然而并没有用。
表格调整行高
使用 模板里面给的:\noalign{\smallskip} 就行,非常给力
表格居中
latex 设置表格总宽度 并且居中 https://blog.csdn.net/as_far_as/article/details/83025885
\begin{tabular}{p{1.4cm}<{\centering}p{2cm}<{\centering}p{1.4cm}<{\centering}p{2cm}<{\centering}}
TeXstudio疯狂报错(左侧章节标题显示红色)
一开始加入章节:Result evaluation,左侧栏ResultAnalysis
一直是红色的,在这一节也无法编译,但是其他小节就可以编译
所以我猜到,是项目还没有把这个ResultAnalysis
章节加进去。
关闭TeXstudio然后重新打开就行了。(左侧栏不显示标红章节就ok)
单双引号
LaTeX技巧218:LaTeX如何正确输入引号:双引号“”单引号‘’ http://blog.sina.com.cn/s/blog_5e16f1770100gusb.html
表格跨栏
LaTeX在双栏模式下插入跨栏图表 https://blog.csdn.net/garfielder007/article/details/51628363
table后面加*号就可以了。
表格跨栏之后文字居中
开始被误导:
latex的table总结 https://www.cnblogs.com/machine/archive/2013/01/18/2866654.html
原 Latex 表格技巧 - 合并单元格 https://blog.csdn.net/wzxlovesy/article/details/69063271
以为一定要在\multirow{3}{*}{Nopol}这里把 *替换成 c| 之类的。
后来受启发:
Latex教程: [14]合并单元格 https://jingyan.baidu.com/article/95c9d20d4c0920ec4e7561e1.html
加上之前经验:
\begin{tabular} {p{2cm}<{\centering}p{1.5cm}<{\centering}p{4cm}<{\centering}p{4cm}<{\centering}p{4cm}<{\centering}} %{p{8cm}}
即可。
在表格中插入空格
Latex公式文字插入空格 https://blog.csdn.net/fendoubasaonian/article/details/79108533?utm_source=blogxgwz5
其实就加入一个 \
就可以了,想加几个空格,就加几个\
。
3-19号补充
文章末尾的作者图片排版
在文章末尾照片排版的时候,要做到合适排版还是有难度的,参考:
空行处理
我用的是 \bigskip 和 \newline
请教高手,连续空行和连续空格怎么处理? 谢谢。 http://tieba.baidu.com/p/5273792314
怎么调整wrapfigure的参数
强行修改cls文件。
\Biography{dehengyang}{\textbf{Deheng Yang} is currently a Master student at National University of Defense Technology, under the supervision of Dr. Xiaoguang Mao. He received Bachelor degree in computer science and technology from the National University of Defense Technology. His research interests include fault localization, automated program repair, etc.\bigskip\bigskip\bigskip\bigskip\bigskip\bigskip\bigskip\bigskip\newline\newline}{width=3cm,height=3.7cm}{9}
wrapfigure的参数:
LATEX使用 图文混排,文字环绕插图 https://blog.csdn.net/u012856866/article/details/70305834
LaTeX入门学习(4)(插图) https://blog.csdn.net/bleedingfight/article/details/79532592
cls中的newcommand
latex命令替换之\newcommand https://blog.csdn.net/loveaborn/article/details/9152051
latex biography 中作者间间距过大,如何进行设置 https://blog.csdn.net/u014077947/article/details/82216292
照片jpg导出为latex需要的eps格式
将ps好的图片保存为.eps格式 https://jingyan.baidu.com/article/597a06436d3874312b524323.html
我用的Photoshop,破解方法是在csdn里面搜索到的,给力。点赞了。
修改记录
创建时间:2019年03月19日 17:40:01
修改时间:2019年3月31日21:34:06
对超链接颜色的设定
latex中hyperref对目录和参考文献超链接以及颜色的设定 http://blog.sina.com.cn/s/blog_6610db7a0102vptg.html
插入脚注
Latex教程: [16]插入脚注和名言 https://jingyan.baidu.com/article/dca1fa6f426462f1a44052e2.html
———————————————————————————————
———————————————————————————————
2019年4月10日补充
添加分割线
\dotfill
就行。
增加行距
\vspace{1cm}
不显示图的标签(如Figure 1这种)
\begin{figure*}[h!]
\centering
\includegraphics[width=1.0\textwidth]{1.png} %1.png是图片文件的相对路径
\caption*{图一} %caption是图片的标题
\label{img-1} %此处的label相当于一个图片的专属标志,目的是方便上下文的引用
\end{figure*}
参考:
LaTeX技巧008:并排插入图片以及去掉图片编号 https://blog.csdn.net/programchangesworld/article/details/51553683
添加:2019年5月7日09:36:07
多行注释
\usepackage{verbatim}
\begin{comment}
Write your comment here.
\end{comment}
Multiline comment [duplicate] https://tex.stackexchange.com/questions/44282/multiline-comment/44302
Multi-line (block) comments in LaTeX https://tex.stackexchange.com/questions/87303/multi-line-block-comments-in-latex
ieeetrans bib 模板使用
使用LaTeX按IEEE模板写论文时的参考文献管理方法(BibTeX使用小结) https://blog.csdn.net/qysh123/article/details/8765772
这句话我还是很认可的,所以我决定暂时不用这个ieee reference 模板了。
添加空行
\vspace{2\baselineskip}
这个不错。
- 请教高手,连续空行和连续空格怎么处理? 谢谢。 http://tieba.baidu.com/p/5273792314?traceid=
- latex 怎样加空行 https://zhidao.baidu.com/question/244171493.html