RcmdrPlugin.Export (version 0.3-1)

latexExport: Export objects using Hmisc::latex

Description

Rcmdr interface to export objects to LaTeX code.

Usage

latexExport()

Arguments

Value

NULL

Details

The graphical interface is limited to exporting objects supported by latex. For some objects, however, the plug-in attempts to work around the limitations, either by converting the object to a supported class or by considering only the relevant element from its structure. Objects of certain classes are simply ignored and are not displayed in the dialogue.

If the retrieved object is on the ignored list, initialising the dialogue will fail "silently", display a warning message and attempt re-initialize. If the stack is empty, or contains only objects that cannot be exported, initializing the dialogue will fail "silently" and display an error message.

Depending on the class of the retrieved object, the plug-in will attempt to propose a vector of approapriate length for the digits argument. By default, the vector will set all columns to "2", a double-digit precision.

The size printing option should be any valid LaTeX size (see [1]).

The file option lets you specify an output file. Only the name of the file should be entered; the plug-in will add the extension automatically depending on the chosen export format. This behaviour is intended to prevent the user from making carelesss errors, such as exporting LaTeX code to an .html file.

Unlike in xtable, the append printing option defaults to TRUE. The conservative approach was chosen since by default xtable overwrites existing files; in case of a name clash, it could be easier to recover the files. The option is ignored when the file input field is empty, and doesn't affect the process of outputting to new files.

The plug-in supports previewing the latex code using a .dvi viewer. However, unlike in latex, by default the code will not be previewed; the user must check the relevant option. Also, the LaTeX code will be printed on screen prior to calling the viewer. To choose the programme used for previewing, for example, set options(xdvicmd='evince') to use Evince (see Startup).

References

[1] http://en.wikibooks.org/wiki/LaTeX/Formatting#Font_Styles_and_size

See Also

latex