Skip to content
Snippets Groups Projects
Commit 0644fddb authored by Walmes Marques Zeviani's avatar Walmes Marques Zeviani
Browse files

Edita chunk setup.

parent 7a14cdc6
No related branches found
No related tags found
No related merge requests found
...@@ -4,33 +4,14 @@ author: "Fernando Mayer & Walmes Zeviani" ...@@ -4,33 +4,14 @@ author: "Fernando Mayer & Walmes Zeviani"
--- ---
```{r setup, include=FALSE} ```{r setup, include=FALSE}
library(knitr) ## Carrega as definições de sessão.
source("setup_knitr.R")
opts_chunk$set( source("config.R")
dev.args=list(family = "Palatino"))
opts_knit$set(eval.after = "fig.cap")
## http://stackoverflow.com/questions/13848137/figure-captions-references-using-knitr-and-markdown-to-html
fig <- local({
i <- 0
ref <- list()
list(
cap = function(refName, text) {
i <<- i + 1
ref[[refName]] <<- i
paste("Figura ", i, ": ", text, sep = "")
},
ref = function(refName) {
ref[[refName]]
})
})
## Tipo de output necessário para saber como gerar os captions. ## Tipo de output necessário para saber como gerar os captions.
ishtml <- any(grepl(pattern = "^html_document", ishtml <- any(grepl(pattern = "^html_document",
x = readLines("_output.yaml"))) x = readLines("_output.yaml")))
options(width = 68)
## Carrega as definições de sessão. ## Carrega as definições de sessão.
source("config.R") source("config.R")
rty <- "md" rty <- "md"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment