Je rédige un travail avec R markdown en utilisant le package apaja. Lorsque je produis mon document pdf, je constate que malheureusement les noms et prénoms des auteurs sont inversés, comme dans cet exemple:
Frederik Aust and Marius Barth.papaja: Create APA manuscripts with RMarkdown, 2015.20URL https://github.com/crsh/papaja. R package version 0.1.0.9054.
Alors que j'attends quelque chose de ce format ci:
Aust Frederik and Barth Marius .papaja: Create APA manuscripts with RMarkdown, 2015.20URL https://github.com/crsh/papaja. R package version 0.1.0.9054.
Voici le contenu de mon fichier .rmd:
Code : Tout sélectionner
---
title: "The title"
shorttitle: "Title"
author:
- name: First Author
affiliation: 1
corresponding: yes # Define only one corresponding author
address: Postal address
email: my@email.com
- name: Ernst-August Doelle
affiliation: "1,2"
affiliation:
- id: 1
institution: Wilhelm-Wundt-University
- id: 2
institution: Konstanz Business School
abstract: |
Enter abstract here (note the indentation, if you start a new paragraph).
note: |
Complete departmental affiliations for each author (note the indentation, if you start a new paragraph).
Enter author note here.
keywords: "keywords"
wordcount: X
class: man
lang: american
figsintext: yes
lineno: yes
bibliography:
- test-references.bib
output: papaja::apa6_pdf
---
```{r message = FALSE, warning = FALSE}
library("papaja")
apa_prepare_doc() # Prepare document for rendering
```
[@R-papaja]
# References
```{r create_r-references}
r_refs(file = "test-references.bib")
```
\setlength{\parindent}{-0.5in}
\setlength{\leftskip}{0.5in}
\setlength{\parskip}{8pt}
dans le fichier test-references.bib il y a ceci:
Code : Tout sélectionner
%% This BibTeX bibliography file was created using BibDesk.
%% http://bibdesk.sourceforge.net/
%% Created for Lucien at 2015-12-09 13:45:03 +0100
%% Saved with string encoding Unicode (UTF-8)
@Manual{R-papaja,
author = {Aust, Frederik and Barth, Marius},
title = {papaja: Create APA manuscripts with RMarkdown},
year = {2015},
note = {R package version 0.1.0.9054},
url = {https://github.com/crsh/papaja},
}
Je serais très reconnaissant si quelqu'un pouvait m'aider à comprendre la raison de cette inversion et comment y rémédier...