Replies: 2 comments 5 replies
-
Is the issue the way that the R Journal uses a wrapper for the main .tex file? I think this is a complication we do not need for a general .Rnw to .Rmd converter, because we do not need to add all the journal metadata (volume and publication date etc). We can just have one .tex file with all the front matter from the original article. |
Beta Was this translation helpful? Give feedback.
-
Pandoc does not use LaTeX engine to convert the documents, it is more like an markup convertor which will only parse a subset of LaTeX syntax. So when the style files are included in the article pandoc will go through the latex code in the style file and try to parse the logic on its own, but the catch is :
So it actually does not matter if the we include the whole style file, rather port over essential macros to the existing(Metafix.sty) style file or create a new one base on the vignette style file for sweave files. Also while researching about this I found out an alternative way to make pandoc do the substitutions in the math env as well, it is worth giving a try (https://pandoc.org/MANUAL.html#extension-latex_macros). Extensions are added to the input format here similar to the one I have done for the output format. |
Beta Was this translation helpful? Give feedback.
-
To support user-defined macro packages, maybe the
standalone
package can help. More detail in this page.Beta Was this translation helpful? Give feedback.
All reactions