Latex 经常见到的问题和解决方法
Latex 经常见到的问题和解决方法
2017-04-10 22:05:48
【资源下载】
1). Texlive 2019 下载地址:http://mirror.ctan.org/systems/texlive/Images/texlive2019.iso
2). AweSome LaTex: https://github.com/egeerardyn/awesome-LaTeX
3). TexMaker (Free cross-platform LaTeX editor since 2003 (Windows, MacOsX, Linux)): https://www.xm1math.net/texmaker/
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 & & { < S_L}\\
F^*_L & & {S_L \leq < S_M}\\
F^*_R & & {S_M \leq < S_R}\\
F_R & & {S_R \leq }
\end{array} \right. $$ $$f(x)=
\begin{cases}
& \text{x=}\\
& \text{x!=}
\end{cases}$$
效果分别为:
5. 左对齐:
\begin{flushleft}...\end{flushleft}
6. 参考文献中 作者的名字,变为横线(参考文献 77):
这是因为:在 bib 文件中,引用了多篇同一个作者的文章,并且这些文献在 LaTeX 文件中,处于很接近的位置,就非常会可能出现上述的情况。
解决方法就是:把引用的文献位置做相应的调整。
然后再看这个参考文献,就变的正常额:
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-} + (-f_t) \odot \hat{x_t} \\
&~~~~h_t = r_t \odot g(c_t) + (-r_t) \odot x_t
\end{flalign}
8. WinEdt 10.3 下载与激活:
WinEdt 10.3 注册激活
下载安装:http://www.winedt.com/download.html
选择WinEdt 10.3 (64-bit) [Build: 20180507] (winedt103-64.exe 9.2 MB)下载,安装。
安装完成后,运行WinEdt ,依次打开Help >> Register WinEdt… 在弹出的对话框里包含Name,Code,Date。对应填入以下信息:
Name:Cracker TeCHiScy
Code:1130140925535334280
Date:不用填
点击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
版权声明:本文为博主原创文章,转载请附上博文链接!
9. CTEX 添加 eps 图像,并且正常执行的姿势是:https://blog.csdn.net/garfielder007/article/details/51628604
\usepackage{graphicx}
\usepackage{epstopdf}
! LaTeX Error: File `newtxmath.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
我当时貌似是重新安装了一遍 LaTeX 才搞定这个问题的。
11. 参考文献的添加和使用:
添加宏包:\usepackage{natbib}
\begin{equation}
\label{trajSelection}
\hat{T_i} = \mathop{\arg\max}_{T_i^j} \sum_{j=}^{N} S(T_0, T^j_i).
\end{equation}
13. 自定义图目录,表格目录:
reference:https://blog.csdn.net/hyluglare/article/details/88742396
生成插图目录的命令:\listoffigures
可以自定义目录名:\renewcommand\listfigurename{插\ 图\ 目\ 录}
生成表格目录的命令:\listoftables
可以自定义目录名:\renewcommand\listtablename{表\ 格\ 目\ 录}
14.
Latex 经常见到的问题和解决方法的更多相关文章
- algorithm.sty not found error in LaTeX 解决方法
参考: algorithm.sty not found error in LaTeX algorithm.sty not found error in LaTeX 解决方法 错误日志: LaTeX E ...
- Latex: "Missing $ inserted" 解决方法
参考: Latex报"Missing $ inserted"的解决方法 Latex: "Missing $ inserted" 解决方法 原因一:在文中出现&q ...
- LaTex: Undefined citation warnings 解决方法
参考 Undefined citations LaTex: Undefined citation warnings 解决方法 在使用TexMaker编译文献的时候,出现引用参考文献的问题: Packa ...
- sql2000无法打开1433端口及解决方法
1.如果你是win2003,那么一定要安装sql的补丁sp3a以上版本SP 检查你的SQL有没有打补丁,没有的话要打上补丁,检查的方法是在查询分析器中运行:select @@version如果出来的版 ...
- 在VMware 虚拟机中配置 windows2003系统的NLB负载均衡;0x800706D5错误的解决方法;没有接口可用于安装新的群集
首先在VM里面 我装了3个2003的系统, 分别为 webservice01 ,webservice 02 , 以及 webview 这3台. 前面两台用于配置负载均衡,后面的webview就是 ...
- Android Configuration change引发的问题及解决方法(转)
之前在学习Fragment和总结Android异步操作的时候会在很多blog中看到对Configuration Change的讨论,以前做的项目都是固定竖屏的,所以对横竖屏切换以及横竖屏切换对程序有什 ...
- 安装Office时出现windows installer服务不能更新一个或多个受保护的windows文件错误的解决方法
今天在Windows XP上安装Microsoft Office 2010时,总是遇到“Windows Installer服务不能更新一个或多个受保护的windows文件,安装失败,正在回滚更改”提示 ...
- Android Configuration change引发的问题及解决方法
之前在学习Fragment和总结Android异步操作的时候会在很多blog中看到对Configuration Change的讨论,以前做的项目都是固定竖屏的,所以对横竖屏切换以及横竖屏切换对程序有什 ...
- PHP开发中常见的安全问题详解和解决方法(如Sql注入、CSRF、Xss、CC等
页面导航: 首页 → 网络编程 → PHP编程 → php技巧 → 正文内容 PHP安全 PHP开发中常见的安全问题详解和解决方法(如Sql注入.CSRF.Xss.CC等) 作者: 字体:[增加 减小 ...
随机推荐
- MySQL 误删数据、误更新数据(update,delete忘加where条件)
MySQL 误操作后数据恢复(update,delete忘加where条件) 关键词:mysql误删数据,mysql误更新数据 转自:https://www.cnblogs.com/gomysql/p ...
- 游戏全区全服和分区分服 QQ斗地主的设计
游戏全区全服和分区分服 QQ斗地主的设计 https://cloud.tencent.com/community/article/164816001481011910?fromSource=gwzc ...
- spring batch (二) 元数据表
内容来自<Spring Batch 批处理框架>,作者:刘相. 一.spring batch 框架进行元数据管理共有六张表,三张SEQUENCE用来分配主键的,九张表分别是: BATCH_ ...
- centos7mini静默安装oracle11gr2
[root@oracle ~]# cat /etc/hosts127.0.0.1 oracle.osp.cloud localhost localhost.localdomain localhost4 ...
- python 查找日志关键字
1.抓取出含有关键字”xiaoming”的行 2.在上一个问题的基础上,假设所在行的格式为location=xiaoming, value=xxx,请筛选出value值 #!/usr/bin/pyth ...
- git本地分支与远程分支
github上已经有master分支 和dev分支 在本地 git checkout -b dev 新建并切换到本地dev分支 git pull origin dev 本地分支与远程分支相关联 在本地 ...
- winrar目录穿越漏洞
地址: 参考: https://research.checkpoint.com/extracting-code-execution-from-winrar/ POC: https://github.c ...
- YEP_footstepsounds
脚步声插件 ============================================================================Introduction====== ...
- Qt3D Shader
--------------------------------------------------- Qt3D ShaderPrograme Qt3D GLSL 渲染器 Shader示例可参考: h ...
- CLASS类继承
单继承:# class People: 经典类class People(object): #新式类 def __init__(self,name,age,n=1000): self.name = na ...