texi2dvi                package:tools                R Documentation

_C_o_m_p_i_l_e _L_a_T_e_X _F_i_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Run 'latex' and 'bibtex' until all cross-references are resolved
     and create either a dvi or PDF file.

_U_s_a_g_e:

     texi2dvi(file, pdf = FALSE, clean = FALSE, quiet = TRUE,
              texi2dvi = getOption("texi2dvi"), texinputs = NULL)

_A_r_g_u_m_e_n_t_s:

    file: character.  Name of LaTeX source file.

     pdf: logical.  If 'TRUE', a PDF file is produced instead of the
          default dvi file ('texi2dvi' command line option '--pdf').

   clean: logical.  If 'TRUE', all auxiliary files are removed
          ('texi2dvi' command line option '--clean').  May not work on
          some platforms.

   quiet: logical.  No output unless an error occurs.  Ignored if
          emulation (see the 'texi2dvi' argument) is used.

texi2dvi: character (or 'NULL').  Script or program used to compile a
          TeX file to dvi or PDF, respectively. The default (selected
          by 'NULL') is to look for an executable on the search path
          and otherwise emulate the script with 'system' calls.

texinputs: 'NULL' or a character vector of paths to add to the LaTeX
          and bibtex input search paths.

_D_e_t_a_i_l_s:

     Despite the name, this is used in R to compile LaTeX files,
     specifically those generated from vignettes.  As from R 2.7.1 it
     ensures that the 'R_HOME/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 'R_HOME/share/texmf' and finally the default
     path. Analogous changes are made to 'BIBINPUTS' and
     'BSTINPUTS'settings.

_A_u_t_h_o_r(_s):

     Achim Zeileis and R-core

