|
CAPTURE LATEXName:
The CAPTURE LATEX command is useful for generating Dataplot output in a format suitable for inclusion into publications and reports. As of the 2013/12 version of Dataplot, most of the Analysis commands support LaTeX formatted output. The following are the Analysis commands that do not yet support LaTeX formatted output (the output for these commands is simply enclosed in a {\verbatim} ... {\verbatim} block (that is, an "asis" format).
DDS ORTHOGONAL DISTANCE FIT PRE-FIT RECIPE SEASONAL LOWESS SIMCOV SMOOTH In addition, WRITE LATEX can be used to generate 1-way tables in LaTeX format. This is described in more detail in a Note below. Dataplot generates a LaTeX file. The LaTeX file is then typically processed by the "latex" command to create a Device Independent (DVI) file. The DVI file is then processed by a command that converts the DVI output to a device specific format. The following block of code uses the system command to process the LaTeX output to a Postscript format and then view it with Ghostview from within Dataplot (the names of the LaTeX/Ghostview commands may be different on your system).
READ RIPKEN.DAT Y X1 X2 CAPTURE LATEX table.tex TABULATE MEAN Y X1 CROSS TABULATE MEAN Y X1 X2 END OF CAPTURE . . Following code invokes LaTeX/Ghostview commands. It is . assumed that these programs are available on your system. . You may need to check how these commands are invoked on . your local system. . system latex table.tex system dvips table.dvi > table.ps system ghostview table.ps In addition, if DEVICE 2 is set to Postscript, Dataplot will incorporate the graphics output into the LaTeX file. Dataplot defines the commands LGRAPHIC and PGRAPHIC for importing Postscript commands into the LaTeX file in landscape and portrait mode, respectively.
where <file name> is the name of a file where alphanumeric output is written. If the file name does not contain a period, place a period (no spaces) at the end of the file name.
... DATAPLOT COMMANDS .... END OF CAPTURE
PRINT <ON/OFF> The PRINT command controls most of the output generated by the Analysis category commands. Output from most other commands is controlled by the FEEDBACK command. The purpose of this distinction is to allow you to generate the output from commands such as FIT while suppressing most of the other output. When generating LATEX format output, a common choice is
FEEDBACK OFF
where <var-list> is a list of variables to print in an HTML table format. Note that this command is typically entered after a CAPTURE LATEX command. The following commands can be used to control the appearance of the LaTeX table:
The SET WRITE DECIMALS command can be used to specify how many digits after the decimal point will be printed (this will apply to all of the columns, currently there is no way to specify a different value for different columns). By default, the column headers will simply be the variable names. However, if you have entered a VARIABLE LABEL command for a given variable, the label specified for that variable will be used instead of the variable name.
\documentclass[12pt]{article} \usepackage{epsfig} \setlength{\textwidth}{6.25in} \setlength{\textheight}{9in} \setlength{\oddsidemargin}{0.25in} \setlength{\evensidemargin}{0in} \setlength{\headheight}{0.5in} \setlength{\headsep}{0.5in} \setlength{\topmargin}{-1in} \setlength{\parindent}{0in} \setlength{\parskip}{10pt} \setlength{\textfloatsep}{4ex} \addtolength{\footskip}{0.25in} \overfullrule=0pt \baselineskip=12pt \newcommand{\PGRAPHIC}[1]{\begin{figure}[h] \epsfig{file=#1,width=6.0in} \end{figure}} \newcommand{\LGRAPHIC}[1]{\begin{figure}[h] \epsfig{file=#1,angle=-90,width=6.0in} \end{figure}} \begin{document} \begin{verbatim}and the following LaTeX code at the end of the file: \end{verbatim} \end{document}You can specify files containing what LaTeX code goes at the beginning and end of the LaTeX file with the commands
SET LATEX FOOTER FILE <file-name> If you are going to incorporate Postscript graphics, be sure to include a PGRAPHIC and LGRAPHIC (for portrait and landscape orientation graphs, respectively). You can edit the defintions given above, but you should have some definition for these since Dataplot uses PGRAPHIC and LGRAPHIC to insert the Postscript graphs. In particular, if you are going to insert the Dataplot generated LaTeX into a larger file, you might want to specify files that contain no active LaTeX code. Note:
If you want to modify the appearance of the LaTeX output, edit the generated LaTeX output using the ASCII editor of your choice. We have written the LaTeX in a style which we believe is relatively easy to read and edit.
If this switch is set to ON, Dataplot will add the line
to the beginning of LaTex tables. This is useful for tables with a large number of columns. This LaTex command automatically resizes the text size if needed when there are a large number of columns.
2014/08 Added SET LATEX RESIZE command Support for LaTex formatted output added for various Analysis commands over the years
read gear.dat y x . line blank solid character x blank feedback off . capture latex tabulate.htm . summary y tabulate mean y x tabulate sd y x . set ipl1na meanplot.eps device 2 postscript encapsulated orientation landscape wordperfect title mean plot y1label diameter x1label batch mean plot y x device 2 close end of capture
|
Privacy
Policy/Security Notice
NIST is an agency of the U.S.
Commerce Department.
Date created: 11/14/2003 |