您的位置:首页 > 其它

Latex 经常见到的问题和解决方法

2017-04-10 22:07 597 查看
Latex 经常见到的问题和解决方法

2017-04-10 22:05:48

1. IEEE 模板添加 通信作者的时候,总是无法正常显示(脚注无法正常显示):

  因为 IEEE默认是屏蔽了这个功能,需要在编辑的 .tex 文件中,添加这么一句话:

  \IEEEoverridecommandlockouts

  


  然后就是:

  


  生成的 pdf文件就是正常的了:

  


2. 参考文献引用过程中,经常遇到 & 符号的问题,例如:

@article{Wang2016Person,
title={Person Re-Identification by Discriminative Selection in Video Ranking},
author={Wang, Taiqing and Gong, Shaogang and Zhu, Xiatian and Wang, Shengjin},
journal={IEEE Transactions on Pattern Analysis & Machine Intelligence},
volume={38},
number={12},
pages={1-1},
year={2016},
}


  这里面的 & 符号在latex 中是无法直接编译过去的,需要用转义字符 \& 或者直接将其删除。

  另一个需要注意的地方是:latex调用 .bib 参考文献的时候,需要四个步骤:

  ==>>  pdflatex, bibtex, pdflatex, pdflatex

  这样子,才可以在生成的 pdf 文件中,得到正确的参考文献显示。

3. The Textlive in linux operation, you can install textlive 2017 and texmaker from software center.

$ sudo mount -a /path/to/your/textlive/ /home/wangxiao/textlive/
$ cd /home/wangxiao/textlive/
$ sudo ./install-tl -gui


  

## seting the environment:

sudo gedit ~/.bashrc

and add the following lines into your file.

export MANPATH=${MANPATH}:/usr/local/texlive/2016/texmf-dist/doc/man
export INFOPATH=${INFOPATH}:/usr/local/texlive/2016/texmf-dist/doc/info
export PATH=${PATH}:/usr/local/texlive/2016/bin/x86_64-linux






Configure your texmaker according to above figures.

4. Latex 排版带有大括号 {} 公式的方法:

$$ f(x)=\left\{
\begin{aligned}
x & = & \cos(t) \\
y & = & \sin(t) \\
z & = & \frac xy
\end{aligned}
\right.
$$

$$ F^{HLLC}=\left\{
\begin{array}{rcl}
F_L       &      & {0      <      S_L}\\
F^*_L     &      & {S_L \leq 0 < S_M}\\
F^*_R     &      & {S_M \leq 0 < S_R}\\
F_R       &      & {S_R \leq 0}
\end{array} \right. $$

$$f(x)=
\begin{cases}
0& \text{x=0}\\
1& \text{x!=0}
\end{cases}$$


效果分别为:



  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐