This is an RMarkdown file that I use to knit a cv in pdf.
I have no problem using Portuguese characters in the body of the Rmd file.
But the same characters imported in the bib file (test.bib) when I do pubs <- bibliography_entries("test.bib") are not well encoded.
This only happens in Windows. When I use my Mac the output is fine!
---
header-includes:
- \usepackage[T1]{fontenc}
- \usepackage[utf8]{inputenc}
- \usepackage[portuges]{babel}
- \usepackage{apalike}
output: vitae::hyndman
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE)
library(vitae)
```
# Publicações
Sérgio Conceição é o autor de um trabalho sobre habitação.
```{r publications}
library(dplyr)
pubs <- bibliography_entries("test.bib")
pubs
```
This is my test.bib file:
@article{conc2021,
title={História da Habitação},
author={Conceição, Sérgio},
journal={Portuguese History},
number={1},
year={2021}
}
This is the output:
