I am using RMarkdown in RStudio and want to cite several sources using csl, specifically I use the style "elsevier-with-titles.csl". I want to cite a german reference, so title must have upper case words other than for english references but the titles are forced to be completely lower case.
My sources are correctly set up in a .bib file (BibTex format).
YAML header in my RMarkdown file:
title: "mytitle"
author: "nunberg"
date: '01\.01\.2019'
output:
pdf_document: default
html_document: default
bibliography: refs.bib
csl: elsevier-with-titles.csl
.bib file:
@book{georgii2015stochastik,
title={Stochastik: Einf{\"u}hrung in die Wahrscheinlichkeitstheorie und Statistik},
author={Georgii, Hans-Otto},
year={2015},
publisher={de Gruyter}
}
I get this result in my knitted output files.
- Georgii H-O. Stochastik: Einführung in die wahrscheinlichkeitstheorie und statistik. de Gruyter; 2015.
But I want:
- Georgii H-O. Stochastik: Einführung in die Wahrscheinlichkeitstheorie und Statistik. de Gruyter; 2015.
Does somebody know how to set things up correctly in this case?
.bibfiles than about LaTeX or BibTeX. The usual LaTeX answer to this problem is to protect the words with braces: https://tex.stackexchange.com/q/10772/35864. But I think that is bad practice for German titles (where basically everything would have to be protected), instead one should use a style that does not use sentence casing. – moewe Apr 07 '19 at 06:47.cslyou use does not change the title casing for@books. So naively I'd have assumed that in your example you should not see case changes at all. The only explanation for what you see that makes sense to me is that whatever program passes your.bibfile on to the CSL format converts your titles into sentence case without asking. Maybe that can be turned off. – moewe Apr 07 '19 at 06:50langid = {ngerman},to the entry: https://github.com/jgm/pandoc-citeproc/blob/master/man/pandoc-citeproc.1.md – moewe Apr 07 '19 at 06:56langid = {ngerman}in the .bib file entry works perfectly for me. A bit tedious for longer .bib files though. If you write an answer I will accept it. – rieemann Apr 07 '19 at 08:25