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

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}$$
 

效果分别为:

 

 

 

 

 

 

 

 

 

 

 

 

 

   

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值