linux下latex使用教程,LaTeX使用--XeLaTeX入门基础(二)

主机平台:Gentoo Linux 11.2 内核版本:Linux Kernel 3.2.1 编译环境:XeTeX 3.1415926-2.3-0.9997.5 (TeX Live 2011) 相关阅读

主机平台:Gentoo Linux 11.2

内核版本:Linux Kernel 3.2.1

编译环境:XeTeX 3.1415926-2.3-0.9997.5 (TeX Live 2011)

相关阅读:LaTeX使用--XeLaTeX入门基础(一)

1、首先是vim-latex插件的安装

去?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'添加 ~/.vim/ftplugin/tex.vim中

" 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  you will automatically cycle through

" all the figure labels. Very useful!

set iskeyword+=:由于我是使用xelatex编译pdf文件,然后使用evince查看pdf文件,所以需要修改~/.vim/ftplugin/latex-suite/texrc文件

为了简单设置所有的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}

29f358042647c04baebb2d89cdc6e3b7.png

3、强调

\section{强调}

我的\emph{LinuxIDC.com}地址:\underline{}

logo.gif

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值