Skip to content

Fig.cap not working #820

@andersgs

Description

@andersgs

Hi. I am trying to add a caption to a figure, but nothing shows up in the PDF. I am using RStudio (0.98.932) + knitr 1.6 + markdown on a Mac with MacTex installed. The following code does not produce a caption, for instance.


---
title: "Test"
author: "Me"
date: "28 July 2014"
output: pdf_document

---

This is an R Markdown document. Markdown is a simple formatting syntax for
authoring HTML, PDF, and MS Word documents. For more details on using R Markdown
see <http://rmarkdown.rstudio.com>.

When you click the **Knit** button a document will be generated that includes
both content as well as the output of any embedded R code chunks within the
document. You can embed an R code chunk like this:

```{r}
summary(cars)
```

You can also embed plots, for example:

```{r, echo=FALSE,fig.cap="Test"}
plot(cars)
```

Note that the `echo = FALSE` parameter was added to the code chunk to prevent
printing of the R code that generated the plot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    won't fixWon't fix due to lack of time/interest or there exist workarounds

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions