python-sty


Ⅰ. 插件描述

Embed Python in LaTeX

Ⅱ. 基本信息

创建日期:  2011-12-22
使用用户:  1
Github星:  48
插件作者:  James Brotchie

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'brotchie/python-sty'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'brotchie/python-sty'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'brotchie/python-sty'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/brotchie/python-sty

Ⅳ. 文档说明

Note: By default LaTeX and its variants disallowing calling of arbitrary shell commands. python.sty requires unrestricted
to the shell in order to execute embedded Python scripts. When running python.sty you must execute latex or pdftex with
either the -enable-write18 or -shell-escape command line argument to enabled access to the Python executable.

python.sty and associated scripts

Discussion and examples at http://pycurious.org/2011/12/the-ultimate-python-latex-environment/

build.sh

Compiles example.tex into example.pdf using rubber. Requires the
shell-escape branch of rubber
(https://code.launchpad.net/~brotchie/rubber/shell-escape)

example.tex

Example usage of python.sty.

pytex.vim

A Vim syntax highlighting file to correctly highlight python embedded in
LaTeX documents.

python.sty

A LaTeX package that allows direct embedding of python scripts in LaTeX
documents.

添加新评论