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

Adiciona função para contador de figuras em html.

parent f564c356
No related branches found
No related tags found
No related merge requests found
......@@ -12,3 +12,18 @@ renderUrl <- function(text, url, output){
## renderUrl("Walmes Zeviani", "http://www.leg.ufpr.br/~walmes")
## renderUrl("Walmes Zeviani", "http://www.leg.ufpr.br/~walmes",
## output="tex")
## 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]]
})
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment