Description Usage Arguments Details Value Author(s) See Also Examples
get.pdf
generates a pdf file using LaTeX
1 2 |
dir |
Directory where the pdf should be created |
form.name |
Name of the pdf file and the folder that contains all the raw information. See details. |
LaTeX_head |
Path of tex file containing the head of the LaTeX document. It contains the packages and macros used in LaTeX_body. If NULL, a default LaTeX head is generated. |
LaTeX_body |
A list that contains the elements to be displayed in the pdf. This list must contain the following elements:
|
compile.tex |
If TRUE compile the pdf. |
color1 |
For table, color of the head of the table. White by default. |
color2 |
For table, color of the row. White by default. The color of the rows is an alternation of white and color2. |
The function creates one folder named "form.name" (first argument of the function). This folder contains two folders: "figures" where all the pdf of the plots are stored and "tex.files" where all the .tex generated are stored. The pdf generated is moved from "./form.name/tex.files" to the current directory.
Note this function works if you have installed LaTeX and the following packages: longtable, lscape, graphicx, pdfpages, float, hyperref and fancyhdr. To download LaTeX, go to http://latex-project.org/ftp.html
Note that the argument [H] from the package float is used by default for figures and tables.
If you use LaTeX macro, do not forget to use escape mode, for example \textbf{}
.
The function returns a pdf which is the result of the concatenation as well as folders with raw data (see Details).
Pierre Riviere
1 | # See the vignette
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.