Latex 经常见到的问题和解决方法
Latex 經(jīng)常見到的問題和解決方法
2017-04-10 ?22:05:48?
?
?
【資源下載】Texlive 2018 下載地址:http://mirror.lzu.edu.cn/CTAN/systems/texlive/Images/?
?
1. IEEE 模板添加 通信作者的時(shí)候,總是無法正常顯示(腳注無法正常顯示):
因?yàn)?IEEE默認(rèn)是屏蔽了這個(gè)功能,需要在編輯的 .tex 文件中,添加這么一句話:
\IEEEoverridecommandlockouts?
?
然后就是:
生成的 pdf文件就是正常的了:
?
2. 參考文獻(xiàn)引用過程中,經(jīng)常遇到 & 符號(hào)的問題,例如:
?
@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}, }?
這里面的 & 符號(hào)在latex 中是無法直接編譯過去的,需要用轉(zhuǎn)義字符 \& 或者直接將其刪除。
另一個(gè)需要注意的地方是:latex調(diào)用 .bib 參考文獻(xiàn)的時(shí)候,需要四個(gè)步驟:?
==>> pdflatex, bibtex, pdflatex, pdflatex?
這樣子,才可以在生成的 pdf 文件中,得到正確的參考文獻(xiàn)顯示。
?
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 ~/.bashrcand 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 排版帶有大括號(hào) {} 公式的方法:
$$ 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}$$效果分別為:
5. 左對(duì)齊:
\begin{flushleft}...\end{flushleft}6.? 參考文獻(xiàn)中 作者的名字,變?yōu)闄M線(參考文獻(xiàn) 77):
這是因?yàn)?#xff1a;在 bib 文件中,引用了多篇同一個(gè)作者的文章,并且這些文獻(xiàn)在 LaTeX 文件中,處于很接近的位置,就非常會(huì)可能出現(xiàn)上述的情況。
?
解決方法就是:把引用的文獻(xiàn)位置做相應(yīng)的調(diào)整。
然后再看這個(gè)參考文獻(xiàn),就變的正常額:
?
7. 多行公式的編輯:
\begin{flalign} &~~~~\hat{x_t} = W {x_t}& \\ &~~~~f'_t = \delta (W_f x_t + b_f)& \\ &~~~~r_t = \delta (W_r x_t + b_r) \\ &~~~~c_t = f_t \odot c_{t-1} + (1-f_t) \odot \hat{x_t} \\ &~~~~h_t = r_t \odot g(c_t) + (1-r_t) \odot x_t \end{flalign}
?
?
8. WinEdt 10.3 下載與激活:
WinEdt 10.3 注冊(cè)激活
下載安裝:http://www.winedt.com/download.html
選擇WinEdt 10.3 (64-bit) [Build: 20180507] (winedt103-64.exe 9.2 MB)下載,安裝。
安裝完成后,運(yùn)行WinEdt ,依次打開Help >> Register WinEdt… 在彈出的對(duì)話框里包含Name,Code,Date。對(duì)應(yīng)填入以下信息:
Name:Cracker TeCHiScy
Code:1130140925535334280
Date:不用填
點(diǎn)擊OK保存
參考
1、http://www.52pojie.cn/thread-595351-1-1.html
2、https://blog.csdn.net/icp_09002463/article/details/80268387
---------------------
作者:Agzs
來源:CSDN
原文:https://blog.csdn.net/code_segment/article/details/82348626
版權(quán)聲明:本文為博主原創(chuàng)文章,轉(zhuǎn)載請(qǐng)附上博文鏈接!
?
9. CTEX 添加 eps 圖像,并且正常執(zhí)行的姿勢是:https://blog.csdn.net/garfielder007/article/details/51628604?
\usepackage{graphicx}
\usepackage{epstopdf}
如果是eps的圖形, 編譯過程是??latex, dvips, ps2pdf.?? 為了能夠讓參考文獻(xiàn)正常顯示,標(biāo)準(zhǔn)操作流程是:latex, bibtex, latex, dvips, ps2pdf 。如果是pdf jpg png圖形, 編譯過程是??pdflatex?. 10.?! LaTeX Error: File `newtxmath.sty' not found.
! LaTeX Error: File `newtxmath.sty' not found.
?
Type X to quit or <RETURN> to proceed,or enter new name. (Default extension: sty)?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
總結(jié)
以上是生活随笔為你收集整理的Latex 经常见到的问题和解决方法的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 商城app实现注册送红包
- 下一篇: 输入 n 个整数,输出其中最小的 k 个