texi2dvi(tools)
texi2dvi()所属R语言包:tools
Compile LaTeX Files
编译LaTeX文件
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Run latex and bibtex until all cross-references are resolved and create either a dvi or PDF file.
运行latex和bibtex直到解决所有的交叉引用,并创建一个DVI或PDF文件。
用法----------Usage----------
texi2dvi(file, pdf = FALSE, clean = FALSE, quiet = TRUE,
texi2dvi = getOption("texi2dvi"),
texinputs = NULL, index = TRUE)
texi2pdf(file, clean = FALSE, quiet = TRUE,
texi2dvi = getOption("texi2dvi"),
texinputs = NULL, index = TRUE)
参数----------Arguments----------
参数:file
character. Name of LaTeX source file.
字符。 LaTeX源文件的名称。
参数:pdf
logical. If TRUE, a PDF file is produced instead of the default dvi file (texi2dvi command line option --pdf).
逻辑。如果TRUE,PDF文件,而不是默认的DVI文件产生(texi2dvi命令行选项--pdf)。
参数:clean
logical. If TRUE, all auxiliary files are removed (texi2dvi command line option --clean). May not work on some platforms.
逻辑。如果TRUE,所有的辅助文件将被删除(texi2dvi命令行选项--clean)。在某些平台上可能无法正常工作。
参数:quiet
logical. No output unless an error occurs. Ignored if emulation (see the texi2dvi argument) is used.
逻辑。没有,除非发生错误输出。如果使用仿真(见texi2dvi参数)被忽略。
参数:texi2dvi
character (or NULL). Script or program used to compile a TeX file to dvi or PDF, respectively. The default (selected by "" or NULL) is to look for an executable on the search path and otherwise emulate the script with system calls.
字符(或NULL)。 DVI或PDF编译TeX文件,分别脚本或方案。默认是寻找可执行文件的搜索路径上,否则脚本模拟""电话。(选择NULL或system)
参数:texinputs
NULL or a character vector of paths to add to the LaTeX and bibtex input search paths.
NULL或特征向量路径添加到乳胶2011-12-01输入搜索路径。
参数:index
logical: should indices be prepared?
逻辑:应指数有所准备?
Details
详情----------Details----------
texi2pdf is a wrapper for the common case of texi2dvi(pdf = TRUE).
texi2pdf是一种常见的情况texi2dvi(pdf = TRUE)的包装。
Despite the name, this is used in R to compile LaTeX files, specifically those generated from vignettes. It ensures that the "<VAR>R_HOME</VAR>/share/texmf" directory is in the TEXINPUTS path, so R style files such as "Sweave" and "Rd" will be found. The search path used is first the existing TEXINPUTS setting (or the current directory if unset), then elements of texinputs, then "<VAR>R_HOME</VAR>/share/texmf" and finally the default path. Analogous changes are made to BIBINPUTS and BSTINPUTS settings.
尽管这个名字,这是用来在R编译LaTeX文件,特别是从短文所产生的。确保<VAR>R_HOME</VAR>/share/texmf目录是TEXINPUTS路径,如Sweave和RdR风格文件被发现。首先使用的搜索路径是现有TEXINPUTS设置(或当前目录,如果取消设置),然后texinputs,然后<VAR>R_HOME</VAR>/share/texmf最后的默认路径的元素。 BIBINPUTS和BSTINPUTS设置类似的变化。
MiKTeX has a texi2dvi executable but no other Windows TeX installation that we know of does, so emulation is used on e.g. TeXLive installations on Windows.
MiKTeXtexi2dvi可执行文件,但没有其他的Windows安装TeX,我们确实知道,所以仿真使用,例如Windows上的texlive安装。
Occasionally indices contain special characters which cause indexing to fail (particularly when using the hyperref LaTeX package) even on valid input. The argument index = FALSE is provided to allow package manuals to be made when this happens: it uses emulation.
偶尔指数包含特殊字符,导致索引失败,甚至对有效的输入(特别是当使用hyperrefLaTeX的包)。参数index = FALSE允许包手册,当这一切发生的时候,它使用仿真。
值----------Value----------
Invisible NULL. Used for the side effect of creating a dvi or PDF file in the current working directory (and maybe other files, especially if clean = FALSE).
无形的NULL。用于创造DVI或PDF文件,在当前的工作目录(以及可能的其他文件,尤其是如果clean = FALSE)的副作用。
注意----------Note----------
There are various versions of the texi2dvi script on Unix-alikes and quite a number of bugs have been seen, some of which this R wrapper works around.
texi2dvi脚本有各种版本的Unix相似者和相当数量的错误,其中一些已经看到此R包装工程左右。
One that is current is that it may not work correctly for paths which contain spaces, nor even if the absolute path to a file would contain spaces.
之一,是目前的是,它可能无法正确的路径包含空格,也不即使文件的绝对路径包含空格。
The three possible approaches all have their quirks. For example the Unix-alike texi2dvi script removes ancillary files that already exist but the other two approaches do not (and may get confused by such files).
三种可能的方法都有自己的怪癖。例如Unix相似的texi2dvi脚本删除配套文件已经存在,但其他两种方法,不要(可能会得到这样的文件混淆)。
作者(S)----------Author(s)----------
Originally Achim Zeileis but largely rewritten by R-core.
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|