<div>
<div><span style="font-size: medium; color: #3366ff;">Eu tentei rodar e não gerou a tabela. O que aconteceu?</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;">> require(dplyr)</span></div>
<div><span style="font-size: 12.8px;">Carregando pacotes exigidos: dplyr</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;">Attaching package: ‘dplyr’</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;">The following objects are masked from ‘package:stats’:</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;"> filter, lag</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;">The following objects are masked from ‘package:base’:</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;"> intersect, setdiff, setequal, union</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;">> require(knitr)</span></div>
<div><span style="font-size: 12.8px;">Carregando pacotes exigidos: knitr</span></div>
<div><span style="font-size: 12.8px;">Warning message:</span></div>
<div><span style="font-size: 12.8px;">package ‘knitr’ was built under R version 3.6.2 </span></div>
<div><span style="font-size: 12.8px;">> require(kableExtra)</span></div>
<div><span style="font-size: 12.8px;">Carregando pacotes exigidos: kableExtra</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;">Attaching package: ‘kableExtra’</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;">The following object is masked from ‘package:dplyr’:</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;"> group_rows</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;">Warning message:</span></div>
<div><span style="font-size: 12.8px;">package ‘kableExtra’ was built under R version 3.6.2 </span></div>
<div><span style="font-size: 12.8px;">> require(rticles)</span></div>
<div><span style="font-size: 12.8px;">Carregando pacotes exigidos: rticles</span></div>
<div><span style="font-size: 12.8px;">> </span></div>
<div><span style="font-size: 12.8px;">> Mercury <- c(57900000, 4878, 1416, 88, 0.38, 100, 0)</span></div>
<div><span style="font-size: 12.8px;">> Venus <- c(108160000, 12104, 5832, 224, 0.9, 480, 0)</span></div>
<div><span style="font-size: 12.8px;">> Earth <- c(149600000, 12756, 24, 365, 1, 14, 1)</span></div>
<div><span style="font-size: 12.8px;">> Mars <- c(227936640, 6794, 24, 687, 0.38, -63, 2)</span></div>
<div><span style="font-size: 12.8px;">> Jupiter <- c(778369000, 142984, 10, 4380, 2.64, -130, 79)</span></div>
<div><span style="font-size: 12.8px;">> Saturn <- c(1427034000, 120536, 11, 10585, 1.16, -130, 62)</span></div>
<div><span style="font-size: 12.8px;">> Uranus <- c(2870658186, 51118, 17, 30660, 1.11, -200, 27)</span></div>
<div><span style="font-size: 12.8px;">> Neptune <- c(4496976000, 49532, 16, 60225, 1.21, -200, 14)</span></div>
<div><span style="font-size: 12.8px;">> </span></div>
<div><span style="font-size: 12.8px;">> df <- rbind(Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune)</span></div>
<div><span style="font-size: 12.8px;">> </span></div>
<div><span style="font-size: 12.8px;">> colnames(df) <- c("DFS", "Diameter","Day","Year","Gravity","Temperature","Moons")</span></div>
<div><span style="font-size: 12.8px;">> </span></div>
<div><span style="font-size: 12.8px;">> kable(df, caption = "Planetary Statistics.",</span></div>
<div><span style="font-size: 12.8px;">+ booktabs = T, linesep = "", align = "lcccccc", format = "latex") %>%</span></div>
<div><span style="font-size: 12.8px;">+ kable_styling(bootstrap_options = "condensed", latex_options = "striped",</span></div>
<div><span style="font-size: 12.8px;">+ stripe_color = "#D9D8D8") %>%</span></div>
<div><span style="font-size: 12.8px;">+ kable_styling(font_size = 10) %>%</span></div>
<div><span style="font-size: 12.8px;">+ kable_styling(latex_options = "HOLD_position") %>%</span></div>
<div><span style="font-size: 12.8px;">+ footnote(alphabet = "https://www.bobthealien.co.uk/solarsystem/table.htm",</span></div>
<div><span style="font-size: 12.8px;">+ alphabet_title = "Source:", footnote_as_chunk = T) %>%</span></div>
<div><span style="font-size: 12.8px;">+ footnote(alphabet = "average temperature in oC",</span></div>
<div><span style="font-size: 12.8px;">+ alphabet_title = "Temperature:", footnote_as_chunk = T) %>%</span></div>
<div><span style="font-size: 12.8px;">+ footnote(alphabet = "ratio to Earth's gravity",</span></div>
<div><span style="font-size: 12.8px;">+ alphabet_title = "Gravity:", footnote_as_chunk = T) %>%</span></div>
<div><span style="font-size: 12.8px;">+ footnote(alphabet = "time to complete a full rotation around the sun in days",</span></div>
<div><span style="font-size: 12.8px;">+ alphabet_title = "Year:", footnote_as_chunk = T) %>%</span></div>
<div><span style="font-size: 12.8px;">+ footnote(alphabet = "time to complete a full rotation over its axis in hours",</span></div>
<div><span style="font-size: 12.8px;">+ alphabet_title = "Day:", footnote_as_chunk = T) %>%</span></div>
<div><span style="font-size: 12.8px;">+ footnote(alphabet = "in km",</span></div>
<div><span style="font-size: 12.8px;">+ alphabet_title = "Diameter:", footnote_as_chunk = T) %>%</span></div>
<div><span style="font-size: 12.8px;">+ footnote(alphabet = "distance from the sun in km",</span></div>
<div><span style="font-size: 12.8px;">+ alphabet_title = "DFS:", footnote_as_chunk = T)</span></div>
<div><span style="font-size: 12.8px;">\begin{table}[H]</span></div>
<div><span style="font-size: 12.8px;"> </span></div>
<div><span style="font-size: 12.8px;">\caption{\label{tab:}Planetary Statistics.}</span></div>
<div><span style="font-size: 12.8px;">\centering</span></div>
<div><span style="font-size: 12.8px;">\fontsize{10}{12}\selectfont</span></div>
<div><span style="font-size: 12.8px;">\begin{tabular}[t]{llcccccc}</span></div>
<div><span style="font-size: 12.8px;">\toprule</span></div>
<div><span style="font-size: 12.8px;"> & DFS & Diameter & Day & Year & Gravity & Temperature & Moons\\</span></div>
<div><span style="font-size: 12.8px;">\midrule</span></div>
<div><span style="font-size: 12.8px;">\rowcolor[HTML]{D9D8D8} Mercury & 57900000 & 4878 & 1416 & 88 & 0.38 & 100 & 0\\</span></div>
<div><span style="font-size: 12.8px;">Venus & 108160000 & 12104 & 5832 & 224 & 0.90 & 480 & 0\\</span></div>
<div><span style="font-size: 12.8px;">\rowcolor[HTML]{D9D8D8} Earth & 149600000 & 12756 & 24 & 365 & 1.00 & 14 & 1\\</span></div>
<div><span style="font-size: 12.8px;">Mars & 227936640 & 6794 & 24 & 687 & 0.38 & -63 & 2\\</span></div>
<div><span style="font-size: 12.8px;">\rowcolor[HTML]{D9D8D8} Jupiter & 778369000 & 142984 & 10 & 4380 & 2.64 & -130 & 79\\</span></div>
<div><span style="font-size: 12.8px;">Saturn & 1427034000 & 120536 & 11 & 10585 & 1.16 & -130 & 62\\</span></div>
<div><span style="font-size: 12.8px;">\rowcolor[HTML]{D9D8D8} Uranus & 2870658186 & 51118 & 17 & 30660 & 1.11 & -200 & 27\\</span></div>
<div><span style="font-size: 12.8px;">Neptune & 4496976000 & 49532 & 16 & 60225 & 1.21 & -200 & 14\\</span></div>
<div><span style="font-size: 12.8px;">\bottomrule</span></div>
<div><span style="font-size: 12.8px;">\multicolumn{8}{l}{\textit{DFS:} \textsuperscript{a} distance from the sun in km}\\</span></div>
<div><span style="font-size: 12.8px;">\multicolumn{8}{l}{\textit{Diameter:} \textsuperscript{a} in km}\\</span></div>
<div><span style="font-size: 12.8px;">\multicolumn{8}{l}{\textit{Day:} \textsuperscript{a} time to complete a full rotation over its axis in hours}\\</span></div>
<div><span style="font-size: 12.8px;">\multicolumn{8}{l}{\textit{Year:} \textsuperscript{a} time to complete a full rotation around the sun in days}\\</span></div>
<div><span style="font-size: 12.8px;">\multicolumn{8}{l}{\textit{Gravity:} \textsuperscript{a} ratio to Earth's gravity}\\</span></div>
<div><span style="font-size: 12.8px;">\multicolumn{8}{l}{\textit{Temperature:} \textsuperscript{a} average temperature in oC}\\</span></div>
<div><span style="font-size: 12.8px;">\multicolumn{8}{l}{\textit{Source:} \textsuperscript{a} https://www.bobthealien.co.uk/solarsystem/table.htm}\\</span></div>
<div><span style="font-size: 12.8px;">\end{tabular}</span></div>
<div><span style="font-size: 12.8px;">\end{table}</span></div>
<div><span style="font-size: 12.8px;">> </span></div>
</div>
<div> </div>
<div dir="ltr">Olá pessoal,
<div> </div>
<div>Paz e bem,<br />
<div> </div>
<div>O arquivo Rmd que segue anexo (e abaixo); produz um documento no formato pdf que contém a tabela exemplo ilustrada abaixo. </div>
<div> </div>
<div>Eu utilizei um template do pacote "rticles" que possui uma formatação esteticamente agradável.</div>
<div> </div>
<div>
<div><img src="../content_id?msg_id=ODI0Ng&cid=ii_k6clom144&folder=JUNK" alt="T1.png" width="562" height="337" /></div>
</div>
<div class="hv-current-cursor">Contudo, o tamanho da fonte do caption da tabela é menor do que o tamanho da fonte no corpo da tabela o que, a meu ver, quebra a harmonia do documento e gera um desconforto cognitivo apreciável. </div>
<div> </div>
<div>Eu não sei onde é definido o tamanho da fonte do caption, talvez no template que eu utilizei (arquivo csl também segue anexo). Apesar de ter pesquisado bastante, não consegui encontrar solução que me permitisse realizar dois ajustes: (1) Trocar o "Table 1" por "Tabela 1" e aumentar o tamanho da fonte do caption. </div>
<div> </div>
<div>Agradeço as orientações que vocês possam me passar. </div>
<div> </div>
<div>Muito obrigado.<br />
<div> </div>
<div>
<div>-- </div>
</div>
<div class="gmail_signature" dir="ltr" data-smartmail="gmail_signature">
<div dir="ltr">
<div>
<p style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;" dir="ltr"><span style="font-size: 11pt; font-family: Cambria,serif; vertical-align: baseline; white-space: pre-wrap;">Paulo Eduardo de Mesquita</span></p>
<p style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;" dir="ltr"><span style="font-size: 11pt; font-family: Cambria,serif; vertical-align: baseline; white-space: pre-wrap;">Disciplina de Infectologia - Faculdade de Medicina Universidade do Oeste Paulista Presidente Prudente - São Paulo - Brasil</span></p>
<p style="line-height: 1.38; margin-top: 0pt; margin-bottom: 0pt;" dir="ltr"><span style="font-size: 11pt; font-family: Cambria,serif; vertical-align: baseline; white-space: pre-wrap;">telefone: 5518 97718261</span></p>
<div> </div>
<div> </div>
<div>---<br />title: Planetary Statistics<br />author:<br /> - name: Alice Anonymous<br /> email: <a href="../../../undefined//compose?to=alice@example.com" target="_blank">alice@example.com</a><br /> affiliation: Some Institute of Technology<br /> footnote: 1<br /> - name: Bob Security<br /> email: <a href="../../../undefined//compose?to=bob@example.com" target="_blank">bob@example.com</a><br /> affiliation: Another University<br />address:<br /> - code: Some Institute of Technology<br /> address: Department, Street, City, State, Zip<br /> - code: Another University<br /> address: Department, Street, City, State, Zip<br />footnote:<br /> - code: 1<br /> text: "Corresponding Author"<br /> - code: 2<br /> text: "Equal contribution"<br />journal: "An awesome journal"<br />date: "`r Sys.Date()`"<br />csl: elsevier-harvard.csl<br />output: rticles::elsevier_article<br />geometry: "left=3cm,right=2cm,top=2cm,bottom=2cm"<br />---<br /><br />```{r 1, include = TRUE, message=FALSE, warning=FALSE}<br />require(dplyr)<br />require(knitr)<br />require(kableExtra)<br />require(rticles)<br /><br />Mercury <- c(57900000, 4878, 1416, 88, 0.38, 100, 0)<br />Venus <- c(108160000, 12104, 5832, 224, 0.9, 480, 0)<br />Earth <- c(149600000, 12756, 24, 365, 1, 14, 1)<br />Mars <- c(227936640, 6794, 24, 687, 0.38, -63, 2)<br />Jupiter <- c(778369000, 142984, 10, 4380, 2.64, -130, 79)<br />Saturn <- c(1427034000, 120536, 11, 10585, 1.16, -130, 62)<br />Uranus <- c(2870658186, 51118, 17, 30660, 1.11, -200, 27)<br />Neptune <- c(4496976000, 49532, 16, 60225, 1.21, -200, 14)<br /><br />df <- rbind(Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune)<br /><br />colnames(df) <- c("DFS", "Diameter","Day","Year","Gravity","Temperature","Moons")<br /><br />kable(df, caption = "Planetary Statistics.", <br /> booktabs = T, linesep = "", align = "lcccccc", format = "latex") %>%<br />kable_styling(bootstrap_options = "condensed", latex_options = "striped", <br /> stripe_color = "#D9D8D8") %>%<br />kable_styling(font_size = 10) %>%<br />kable_styling(latex_options = "HOLD_position") %>%<br />footnote(alphabet = "<a href="https://www.bobthealien.co.uk/solarsystem/table.htm" target="_blank">https://www.bobthealien.co.uk/solarsystem/table.htm</a>", <br /> alphabet_title = "Source:", footnote_as_chunk = T) %>%<br />footnote(alphabet = "average temperature in oC", <br /> alphabet_title = "Temperature:", footnote_as_chunk = T) %>%<br />footnote(alphabet = "ratio to Earth's gravity", <br /> alphabet_title = "Gravity:", footnote_as_chunk = T) %>%<br />footnote(alphabet = "time to complete a full rotation around the sun in days", <br /> alphabet_title = "Year:", footnote_as_chunk = T) %>%<br />footnote(alphabet = "time to complete a full rotation over its axis in hours", <br /> alphabet_title = "Day:", footnote_as_chunk = T) %>%<br />footnote(alphabet = "in km", <br /> alphabet_title = "Diameter:", footnote_as_chunk = T) %>%<br />footnote(alphabet = "distance from the sun in km", <br /> alphabet_title = "DFS:", footnote_as_chunk = T)<br />```</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div>_______________________________________________<br />R-br mailing list<br />R-br@listas.c3sl.ufpr.br<br /><a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br />Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br /><br /></div>