Questions tagged [rmarkdown]

Rmarkdown is a lightweight markup language with plain-text-formatting syntax. Its a variant of markdown syntax that allow inclusion of chunks of R code through knitr. The documents can be exported with pandoc to LaTeX, PDF (via LaTeX), Word, or HTML formats showing the output of R chunks (and/or de R code) including plots and tables.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

How increase the font size of an equation with begin{equation}?

I have the following code in RMarkdown that prints an equation like: # in a LaTeX environment I would write: \usepackage{amsmath} \begin{document} \begin{equation}\label{eq: eq1} \psi_{j} = \frac{\...
0
votes
0answers
8 views

Collapse line spacing between items in the preamble of an r markdown pdf output to single spacing

I'm starting to explore Latex right now, working with Rstudio and using an r markdown file to produce a report in pdf format. I would like to find a way to adjust the spaces between lines of the title,...
2
votes
1answer
41 views

LaTeX Error: File `underscore.sty' not found

In order to allow underscores in a R Markdown script (whose output is pdf_document, with latex_engine: xelatex), I've added \usepackage{underscore} and \usepackage[english]{babel} (https://tex....
0
votes
1answer
44 views

TeX capacity exceeded, sorry [parameter stack size=10000] [duplicate]

I am a Spanish linguist working on writing my dissertation using RMarkdown. My document was compiling fine into a pdf until I tried to add examples and glosses using the gb4e package. I am working on ...
0
votes
1answer
47 views

Tikz in RMarkdown

I have a diagram rendered using tikz and would like to include it at multiple places throughout my document. I have tried to define a command to insert this into the tikz environment, however I'm not ...
1
vote
0answers
23 views

Why I am getting full code of user defined command in rmarkdown?

--- documentclass: report classoption: twoside fontsize: 12pt output: pdf_document: latex_engine: xelatex keep_tex: true header-includes: | \usepackage{geometry} \usepackage{tikz} \...
0
votes
0answers
27 views

Apply specific format to word in rmarkdown

I am using rmarkdown and I want the Country "Afghanistan" to become HUGE, Center and in Oswald Regular I tried \Centering\Huge but I failed. --- documentclass: report classoption: twoside ...
0
votes
1answer
32 views

Question about using book down in R-do I need to load packages on each page? Help with basic understanding!

Please forgive the v basic question. I have recently started using R bookdown, to try write papers. I've read the cookbook and book down guide. I use rmardown, and understand that, but I don't ...
0
votes
0answers
14 views

backref with biblatex or hyperref in markdown, is it possible?

I use RStudio rmarkdown to write as this gives opportunity to have output in Word which some journals want [(:!)] I would like to use the backref feature in biblatex or hyperref for the bibliography. ...
1
vote
1answer
21 views

Fix cleveref ?? prefix with floatrow

I am following the solution in this answer to add captions and cross-references to code chunks in an .Rmd file. I would like to use cleveref to refer to these code chunks. However, currently my \cref'...
1
vote
0answers
35 views

Color change in beamer at R markdown

Esteemed, I'm having trouble putting together a beamer presentation. I would like to put the title, the footer and the items in green tones. I appreciate any help. title: "long title" date: &...
0
votes
0answers
68 views

Figures showing at the end of the document in R markdown

I have been working on this issue since yesterday and have checked almost all the solutions but I'm still not able to solve this issue. All the figures and tables I put in the document shows at the ...
0
votes
0answers
441 views

l3backend installed, but getting: “LaTeX Error: File `l3backend-pdfmode.def' not found” error

I am unable to knit a pdf in RStudio. I have had no issues previously, though did recently update my Xcode installation. I am working on a Mac OS Catalina 10.15.6. The problem seems to be related to ...
0
votes
1answer
45 views

theme: Szeged - how to edit header

I am using RMarkdown Beamer and I set the theme: Szeged in the YAML header as per: --- title: title author: name date: date output: beamer_presentation: theme: Szeged slide_level: 2 ...
1
vote
0answers
38 views

Rmarkdown chunk with xtable() stopped rendering LaTeX table

I have a data analysis Rmarkdown file that I will use to knit a .pdf results section for my thesis. I had beautiful working LaTeX table code when I knit a pdf together in Rstudio using the knit button ...
3
votes
5answers
218 views

Align inequalities in cases

Context I am using cases inside an R-Markdown document to display a formula (this for the context as I am not totally aware which tools Rmarkdown uses to typeset the formula eventually). But ...
1
vote
2answers
299 views

R markdown / Plotly R with LaTeX unable to generate plot and get error on a file name with hyphen

I am using LaTeX for some formatting, and trying to generate a PDF file with a plotly R plot as a png. The following piece of code gives me an error as show below. It seems like a problem with the ...
0
votes
0answers
278 views

Failure to knit using rmarkdown

I am using RStudio (version 1.2.5019) and have MiKTeX installed to my work laptop. When knitting to PDF using rmarkdown the .TEX file seems to be created ok but I get an error: Error: LaTeX failed to ...
0
votes
0answers
22 views

Correct syntax for using \setstretch{} \color{} \textit{} and scriptsize in same macro?

I am writing a custom macro to display text as footnotes for some custom figures and pictures in my R markdown code, using latex. I need to have scriptsize fontsize, decreased line spacing than rest ...
1
vote
0answers
36 views

Is it possible to attach a file to a beamer presentation? [closed]

I am familiar with the navigator package, which works flawlessly in long documents. However, I recently wanted to attach a file to a beamer presentation. I am not using LaTex, but rmarkdown to create ...
0
votes
1answer
71 views

Leave Header Blank Fancyhdr

I am new to coding and Latex so please forgive me as I'm sure this is a very straight forward solution. I am creating a PDF report using RMarkdown with a .tex file to control the header, margins, and ...
0
votes
0answers
233 views

How to indent a numbered list of references in R markdown as in latex?

I post this same question in stackoverflow (https://stackoverflow.com/questions/61060820/how-to-indent-a-numbered-list-of-references-in-r-markdown) and I was suggested to ask here. So, my problem is: ...
0
votes
0answers
213 views

Rmarkdown longtable in kable won't center

I am trying to get my kable table to align in the center of my pdf from RMarkdown. Currently, it is aligning very left of my page and the caption is awkwardly floating in the center (pic at bottom). I ...
1
vote
1answer
111 views

Rmarkdown, plot title font as latin modern

I have an knitr document with single plot. I want to use the original fonts of R in the plot except the axis labels which should come from latin modern. I can use latin modern for all the fonts in the ...
0
votes
1answer
50 views

Is there a command to make reference entries type consistent?

I am writing my PDF document in Rmarkdown and I keep the .tex file. I use Zotero for citation management. The following yalm had my citations coded transferable between .Rmd and .tex files, which ...
1
vote
1answer
540 views

Changing the syntax highlighting color in a Rmarkdown/beamer presentation

Which tex package does Rmarkdown use by default to implement syntax highlighting and how to change the highlighting colors? I have written a style file which i use as a template for my beamer ...
1
vote
1answer
240 views

How to integrate custom beamer template in rmarkdown/ issues with yaml

I am procrastinating for fun on a modern beamer template using IBMs awesome new PLEX font (i will share it on git once finished or atleast half-done). As I am planning to completely switch to ...
1
vote
2answers
258 views

How to keep a table on the same page?

I have a report with many summary tables of regression output and converted them into tables using pander in the Rmarkdown document. Even though all tables are less than one page, they sometimes break ...
0
votes
2answers
150 views

R Markdown: BibLaTeX duplicate Bibliography When adding to ToC

an R markdown file index.rmd: --- title: title author: author bibliography: bib.bib output: pdf_document: latex_engine: xelatex toc: true pandoc_args: ["--biblatex"] header-includes: -...
0
votes
0answers
157 views

LaTeX citation in R Markdown [duplicate]

With a bib.bib file: @article{mycite, title = {title}, author = {author name}, pages = {45-50}, year = {2020}, url = {https://example.com} } and an index.rmd file like this: --- title: ...
0
votes
1answer
40 views

How to handle multiple citations with multiple pages using a bib file?

Using R markdown, I'm duplicating citations in my bib file to cite the same entry using different pages: @article{devers_2011_34, title = {I know how to do the play now: A Part of Willy Loman in ...
0
votes
1answer
533 views

Centering plot in rmarkdown pdf displays latex code in output (\begin{center}) latex

I'm new to latex and rmarkdown. I am trying to center a plotly chart and I have already tried fig.align = "center" and nothing happens, if to this command I add fig.show = 'hold', the plot is centered ...
0
votes
1answer
31 views

Why citations in footnote aren't displayed?

I'm writing a paper in Rmarkdown. I have the following problem: citations don't appear in the footnote. This is an example: while in the main text citations appear correctly with cross-referencing: ...
2
votes
1answer
1k views

RMarkdown french accents/special characters

I want to use the LaTeX syntax for writing french accents/special characters in RMarkdown, but it doesn't work. \'{a} for instance doesn't compile but is literally printed in the pdf document. So far ...
1
vote
1answer
23 views

How can I add “note” below two tables put next to each other?

I use Rmarkdown and I am trying to put a note below two tables that I want them to appear next to each other. I manage to make appear them next to each other only when the "note" is not there. If I ...
0
votes
1answer
38 views

How to add a note below a table that doesn't exceed the table dimensions?

I am writing a paper in Rmarkdown. I created a table and I would like to place a note belowe the table. The problem is that when I try to do so, being the note quite long, it exceeds table's ...
0
votes
0answers
568 views

How can I make sure that Local TeX Live is not older than remote repository?

I have downloaded MacTeX-2020 to be able to knit R Markdown documents to PDF in R Studio. I downloaded it yesterday and it is the 2020 version. When I try to knit to PDF in R Markdown, I get the error:...
0
votes
0answers
275 views

RMarkdown PDF Fatal error : Undefined control sequence (\grffile@filename). Possible Bad Character?

I have written a R script to generate 2 RMarkdown PDF reports for a given dataset. The script runs without error on my main Linux machine with Texlive. I adjusted it for my work laptop with Windows ...
0
votes
0answers
699 views

Error `! Undefined control sequence.`using R markdown to create a pdf under MacTex (TexLive 2019)

I'm trying to use R Studio, R version 3.6.3 and MacTex (TeX Live) to create a pdf from a *.Rmd file. This error came up right after (successfully?) troubleshooting another error message in R itself: ...
0
votes
1answer
49 views

How can I add a space between name and surname in a R markdown (Twenty seconds format)?

I have made a CV using a R markdown template called Twenty Seconds Format from the Vitae package. However I cannot add a space between name and surname so they run together. I am a real beginner and ...
0
votes
0answers
133 views

How to change paper size for certain pages in R markdown

This question is replaced from stack overflow to here. I am working on a markdown file, but one table in particular is huge. I was able to set the pages where this table is occurring to landscape ...
0
votes
0answers
22 views

Is it possible to specify options for preventing incomplete words in Rmarkdown? [duplicate]

I'm working with Rmarkdown and my output is a pdf document. When reading the text, I noticed that so many words are printed incomplete such as "ar- rojan" and "progra- mación" (which should be "...
1
vote
1answer
545 views

Alternative approaches to R markdown to compile PDF output

I am a new user of R and R Markdown and understand that R markdown has some functionality to compile PDF documents that include R script. I have two questions: Does R markdown have the same ...
0
votes
0answers
19 views

Command \@ already defined when using journal style file [duplicate]

I am trying to compile an (R) markdown document that includes a journal style file. The following line produces the following error: \newcommand\@titlenote{} %! LaTeX Error: Command \@ already ...
0
votes
1answer
60 views

Error while set language, despite package is already installed

I'm writing a document in R markdown and using latex for figures and tables. I need the captions in Portuguese, so I try this: R markdown file: --- output: pdf_document: includes: ...
1
vote
1answer
80 views

Fill 16:9 page with LaTeX in R-project

I'm programming a presentation based on different graphs inside R-project that use LaTeX to create pdf documents. I'm using LaTex with the beamer class and i would like to fill the page with the ...