LaTeX使用--XeLaTeX入门基础(二)
来源:互联网 发布:csol商人 网络去尼玛 编辑:程序博客网 时间:2024/06/06 02:18
内核版本:Linux Kernel 3.2.1
编译环境:XeTeX 3.1415926-2.3-0.9997.5 (TeX Live 2011)
相关阅读:LaTeX使用--XeLaTeX入门基础(一) http://www.linuxidc.com/Linux/2012-05/61546.htm
1、首先是vim-latex插件的安装
去http://vim-latex.sourceforge.net/index.php?subject=download&title=Download官方下载插件包
将其解压到~/.vim目录下,注意这里是将包文件加中的文件和文件夹放在.vim目录下。
追加~/.vimrc中
- " REQUIRED. This makes vim invoke Latex-Suite when you open a tex file.
- filetype plugin on
- " IMPORTANT: win32 users will need to have 'shellslash' set so that latex
- " can be called correctly.
- set shellslash
- " IMPORTANT: grep will sometimes skip displaying the file name if you
- " search in a singe file. This will confuse Latex-Suite. Set your grep
- " program to always generate a file-name.
- set grepprg=grep\ -nH\ $*
- " OPTIONAL: This enables automatic indentation as you type.
- filetype indent on
- " OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
- " 'plaintex' instead of 'tex', which results in vim-latex not being loaded.
- " The following changes the default filetype back to 'tex':
- let g:tex_flavor='latex'
- " this is mostly a matter of taste. but LaTeX looks good with just a bit
- " of indentation.
- set sw=2
- " TIP: if you write your \label's as \label{fig:something}, then if you
- " type in \ref{fig: and press <C-n> you will automatically cycle through
- " all the figure labels. Very useful!
- set iskeyword+=:
为了简单设置所有的TexLet g:Tex_DefaultTargetFormat = 'pdf'
设置所有的TexLet g:Tex_ViewRule_pdf = 'evince'
设置TexLet g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode $*'
重启vim即可。
常用快捷键
\ll 采用xelatex编译文档
\lv 使用evince预览生成的pdf文档
F5 插入数学公式环境,主要包括eqnarray,equation,align,$$
F7 插入引用,包括footnote,cite,pageref,label
shift+F5 变更插入环境
shift+F7 变更插入引用
下面就使用上面配置的环境来测试学习。
2、交叉引用
- \section{交叉引用}
- 24 This is a ref \label{sec:this} example.See section~\ref{sec:this} on the page~\pageref{sec:this}
3、强调
- \section{强调}
- 我的\emph{LinuxIDC.com}地址:\underline{www.linuxidc.com}
4、数学公式
LaTeX最强大的功能就是编辑美丽的数学和物理等公式,你不会遇到word中公式变形或无法显示的问题,你也不会为了好的兼容性而插入一张图片来代替所要写的公式,即不方便也有伤大雅。
比如爱因斯坦的公式:
- \begin{equation}
- e=m\cdot c^2
- \end{equation}
\section{数学公式}
- \begin{equation}
- e=m\cdot c^2 \;
- \end{equation}
- \begin{equation}
- \sum_{1}^{n} I_k=0 \;
- \end{equation}
- \begin{equation}
- I_D = I_F-I_R \;
- end{equation}
5、引号
双引号使用符号上半部分``,下半部分'',单引号是上半部分`,下半部分'
- \section{引号}
- ``Please press the `x' key''\\
6、破折号与连字符
- \section{破折号}
- daughter-in-law\\
- pages 13--67\\
- yes---or no\\
- 0,1 and $-1$\\
7、~
- \section{~}
- www.linuxidc.com/\~{}Demo \newline
- www.linuxidc.com/$\sim$Demo \newline
- LaTeX使用--XeLaTeX入门基础(二)
- LaTeX使用--XeLaTeX入门基础(二)
- LaTeX使用--XeLaTeX入门基础(一)
- LaTeX使用--XeLaTeX入门基础(一)
- 【LaTeX排版】LaTeX使用--入门基础<二>
- 【LaTeX排版】LaTeX使用--入门基础<一>
- LaTeX使用--使用XeLaTeX支持中文(可以放弃Office了)
- latex初学者入门(二)
- Latex--入门系列二
- LaTeX零基础入门
- LaTex快速基础入门
- LaTeX入门系列之二(LaTeX教程)
- Latex排版工具的使用(二)
- lyx转化为latex,导出为xelatex
- LaTeX、TeX、XeLaTeX、XeTeX的关系
- latex学习笔记2 xelatex的注意事项
- LaTeX + XeLaTeX + TexLive 2017 踏过的坑
- xeLatex 使用过程
- Ubuntu完全教程,让你成为Ubuntu高手!
- ffmpeg ios
- FreeMarker List 换行 chunk()
- java中的匿名内部类总结
- eclipse 给jar库添加源码
- LaTeX使用--XeLaTeX入门基础(二)
- Android Preference API 用法--ListPreference(一)
- Lucene 4.7 BooleanQuery学习
- Flex计算多边形(Geometry)的中心点
- R置换检验
- 基于OpenCV1.1的图像拼接
- Map集合中value()方法与keySet()、entrySet()区别
- PhoneGap中html文件添加完charset=utf-8后依然中文乱码的问题
- 加上 允许客户端访问路径 之后,Apache不能正常启动