Description Usage Arguments Details Value Author(s) Examples
Converts a raw LaTex file to RMarkdown format, then to Word format. Can optionally convert to any format supported by RMarkdown
1 | tex2rmd(infile)
|
infile |
Full path to the input Latex file. |
The general workflow to convert a Latex document into Markdown, and eventually Word, is as follows:
Compile the latex document, using pdftex or whatever, so that the .aux and .bbl files are generated.
Run tex3rmd
specifying the file containing
the raw Latex code as the input. The associated .aux
and .bbl files must be in the same directory. This will
generate a markdown document of the same root name but
with .Rmd extension.
Compile the .Rmd file. In RStudio, open it and hit <ctrl>-<shift>-K.
The markdown code is written to a file named <root>.Rmd,
where inFile
is <root>.tex. The markdown code in the
form of a vector, one line per element, is invisably returned.
Trent McDonald
1 2 3 | \notrun{
tex2rmd("main.tex")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.