How to cite german book titles properly (upper case) with csl and rmarkdown?BibTeX loses capitals when...

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

How is this relation reflexive?

What defenses are there against being summoned by the Gate spell?

Copenhagen passport control - US citizen

whey we use polarized capacitor?

How to report a triplet of septets in NMR tabulation?

Prevent a directory in /tmp from being deleted

Why don't electron-positron collisions release infinite energy?

Do airline pilots ever risk not hearing communication directed to them specifically, from traffic controllers?

Calculus Optimization - Point on graph closest to given point

Is there a minimum number of transactions in a block?

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

How do you conduct xenoanthropology after first contact?

What makes Graph invariants so useful/important?

How to type dʒ symbol (IPA) on Mac?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

Why CLRS example on residual networks does not follows its formula?

What do you call a Matrix-like slowdown and camera movement effect?

How can I fix this gap between bookcases I made?

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

Could a US political party gain complete control over the government by removing checks & balances?

Chess with symmetric move-square

A function which translates a sentence to title-case

A Journey Through Space and Time



How to cite german book titles properly (upper case) with csl and rmarkdown?


BibTeX loses capitals when creating .bbl fileWhat is the proper casing to use when storing titles in the bibliography database?Page header - Upper and lower caseAcronym upper/lower/mixed case, and pluralisationHow do I properly cite this German-language paper?Upper case using mhchem and glossariesHow to cite properly?How to use sans-serif fonts in Tikz and Rmarkdown?How to centre and bold a heading in RMarkdown and LaTeX?Bibliographic entry not show the paper's title correctlyOption clash with RMarkdown and beamerCustom citations and bibliography with natbib













1















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.




  1. Georgii H-O. Stochastik: Einführung in die wahrscheinlichkeitstheorie und statistik. de Gruyter; 2015.


But I want:




  1. 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?










share|improve this question







New contributor




nunberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Mhhh, good question, but it is probably more about CSL and how pandoc handles .bib files than about LaTeX or BibTeX. The usual LaTeX answer to this problem is to protect the words with braces: 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
    21 hours ago











  • I have never used pandoc/RMarkdown/... before, but I'm a bit confused. AFAIK CSL files assume content is stored in sentence case and the .csl you 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 .bib file on to the CSL format converts your titles into sentence case without asking. Maybe that can be turned off.

    – moewe
    21 hours ago








  • 1





    Maybe, just maybe, it is enough to add langid = {ngerman}, to the entry: github.com/jgm/pandoc-citeproc/blob/master/man/…

    – moewe
    21 hours ago











  • langid = {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.

    – nunberg
    20 hours ago


















1















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.




  1. Georgii H-O. Stochastik: Einführung in die wahrscheinlichkeitstheorie und statistik. de Gruyter; 2015.


But I want:




  1. 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?










share|improve this question







New contributor




nunberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Mhhh, good question, but it is probably more about CSL and how pandoc handles .bib files than about LaTeX or BibTeX. The usual LaTeX answer to this problem is to protect the words with braces: 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
    21 hours ago











  • I have never used pandoc/RMarkdown/... before, but I'm a bit confused. AFAIK CSL files assume content is stored in sentence case and the .csl you 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 .bib file on to the CSL format converts your titles into sentence case without asking. Maybe that can be turned off.

    – moewe
    21 hours ago








  • 1





    Maybe, just maybe, it is enough to add langid = {ngerman}, to the entry: github.com/jgm/pandoc-citeproc/blob/master/man/…

    – moewe
    21 hours ago











  • langid = {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.

    – nunberg
    20 hours ago
















1












1








1








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.




  1. Georgii H-O. Stochastik: Einführung in die wahrscheinlichkeitstheorie und statistik. de Gruyter; 2015.


But I want:




  1. 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?










share|improve this question







New contributor




nunberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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.




  1. Georgii H-O. Stochastik: Einführung in die wahrscheinlichkeitstheorie und statistik. de Gruyter; 2015.


But I want:




  1. 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?







citing r knitr capitalization markdown






share|improve this question







New contributor




nunberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




nunberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




nunberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 22 hours ago









nunbergnunberg

184




184




New contributor




nunberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





nunberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






nunberg is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Mhhh, good question, but it is probably more about CSL and how pandoc handles .bib files than about LaTeX or BibTeX. The usual LaTeX answer to this problem is to protect the words with braces: 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
    21 hours ago











  • I have never used pandoc/RMarkdown/... before, but I'm a bit confused. AFAIK CSL files assume content is stored in sentence case and the .csl you 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 .bib file on to the CSL format converts your titles into sentence case without asking. Maybe that can be turned off.

    – moewe
    21 hours ago








  • 1





    Maybe, just maybe, it is enough to add langid = {ngerman}, to the entry: github.com/jgm/pandoc-citeproc/blob/master/man/…

    – moewe
    21 hours ago











  • langid = {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.

    – nunberg
    20 hours ago





















  • Mhhh, good question, but it is probably more about CSL and how pandoc handles .bib files than about LaTeX or BibTeX. The usual LaTeX answer to this problem is to protect the words with braces: 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
    21 hours ago











  • I have never used pandoc/RMarkdown/... before, but I'm a bit confused. AFAIK CSL files assume content is stored in sentence case and the .csl you 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 .bib file on to the CSL format converts your titles into sentence case without asking. Maybe that can be turned off.

    – moewe
    21 hours ago








  • 1





    Maybe, just maybe, it is enough to add langid = {ngerman}, to the entry: github.com/jgm/pandoc-citeproc/blob/master/man/…

    – moewe
    21 hours ago











  • langid = {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.

    – nunberg
    20 hours ago



















Mhhh, good question, but it is probably more about CSL and how pandoc handles .bib files than about LaTeX or BibTeX. The usual LaTeX answer to this problem is to protect the words with braces: 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
21 hours ago





Mhhh, good question, but it is probably more about CSL and how pandoc handles .bib files than about LaTeX or BibTeX. The usual LaTeX answer to this problem is to protect the words with braces: 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
21 hours ago













I have never used pandoc/RMarkdown/... before, but I'm a bit confused. AFAIK CSL files assume content is stored in sentence case and the .csl you 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 .bib file on to the CSL format converts your titles into sentence case without asking. Maybe that can be turned off.

– moewe
21 hours ago







I have never used pandoc/RMarkdown/... before, but I'm a bit confused. AFAIK CSL files assume content is stored in sentence case and the .csl you 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 .bib file on to the CSL format converts your titles into sentence case without asking. Maybe that can be turned off.

– moewe
21 hours ago






1




1





Maybe, just maybe, it is enough to add langid = {ngerman}, to the entry: github.com/jgm/pandoc-citeproc/blob/master/man/…

– moewe
21 hours ago





Maybe, just maybe, it is enough to add langid = {ngerman}, to the entry: github.com/jgm/pandoc-citeproc/blob/master/man/…

– moewe
21 hours ago













langid = {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.

– nunberg
20 hours ago







langid = {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.

– nunberg
20 hours ago












1 Answer
1






active

oldest

votes


















1














This seems to be a feature of pandoc and is not directly related to BibTeX (which also has a feature to convert titles to sentence case, see BibTeX loses capitals when creating .bbl file).



CSL expects titles to be saved in sentence case while .bib files are expected to contain titles in Title Case (see What is the proper casing to use when storing titles in the bibliography database?). Hence, it seems reasonable that pandoc would convert your titles in the .bib file to sentence case before passing them to on the CSL style.



According to https://github.com/jgm/pandoc-citeproc/blob/master/man/pandoc-citeproc.1.md you should be able to disable this behaviour for non-English titles by telling pandoc manually that your citation is in German (where there is no concept of sentence case vs Title Case) and that therefore the titles should be left alone. This happens via the langid field (that would also be used by biblatex to decide whether or not to apply sentence casing).



@book{georgii2015stochastik,
title = {Stochastik: Einführung in die Wahrscheinlichkeitstheorie und Statistik},
author = {Georgii, Hans-Otto},
year = {2015},
publisher = {de Gruyter},
langid = {ngerman},
}





share|improve this answer


























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    nunberg is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483615%2fhow-to-cite-german-book-titles-properly-upper-case-with-csl-and-rmarkdown%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    This seems to be a feature of pandoc and is not directly related to BibTeX (which also has a feature to convert titles to sentence case, see BibTeX loses capitals when creating .bbl file).



    CSL expects titles to be saved in sentence case while .bib files are expected to contain titles in Title Case (see What is the proper casing to use when storing titles in the bibliography database?). Hence, it seems reasonable that pandoc would convert your titles in the .bib file to sentence case before passing them to on the CSL style.



    According to https://github.com/jgm/pandoc-citeproc/blob/master/man/pandoc-citeproc.1.md you should be able to disable this behaviour for non-English titles by telling pandoc manually that your citation is in German (where there is no concept of sentence case vs Title Case) and that therefore the titles should be left alone. This happens via the langid field (that would also be used by biblatex to decide whether or not to apply sentence casing).



    @book{georgii2015stochastik,
    title = {Stochastik: Einführung in die Wahrscheinlichkeitstheorie und Statistik},
    author = {Georgii, Hans-Otto},
    year = {2015},
    publisher = {de Gruyter},
    langid = {ngerman},
    }





    share|improve this answer






























      1














      This seems to be a feature of pandoc and is not directly related to BibTeX (which also has a feature to convert titles to sentence case, see BibTeX loses capitals when creating .bbl file).



      CSL expects titles to be saved in sentence case while .bib files are expected to contain titles in Title Case (see What is the proper casing to use when storing titles in the bibliography database?). Hence, it seems reasonable that pandoc would convert your titles in the .bib file to sentence case before passing them to on the CSL style.



      According to https://github.com/jgm/pandoc-citeproc/blob/master/man/pandoc-citeproc.1.md you should be able to disable this behaviour for non-English titles by telling pandoc manually that your citation is in German (where there is no concept of sentence case vs Title Case) and that therefore the titles should be left alone. This happens via the langid field (that would also be used by biblatex to decide whether or not to apply sentence casing).



      @book{georgii2015stochastik,
      title = {Stochastik: Einführung in die Wahrscheinlichkeitstheorie und Statistik},
      author = {Georgii, Hans-Otto},
      year = {2015},
      publisher = {de Gruyter},
      langid = {ngerman},
      }





      share|improve this answer




























        1












        1








        1







        This seems to be a feature of pandoc and is not directly related to BibTeX (which also has a feature to convert titles to sentence case, see BibTeX loses capitals when creating .bbl file).



        CSL expects titles to be saved in sentence case while .bib files are expected to contain titles in Title Case (see What is the proper casing to use when storing titles in the bibliography database?). Hence, it seems reasonable that pandoc would convert your titles in the .bib file to sentence case before passing them to on the CSL style.



        According to https://github.com/jgm/pandoc-citeproc/blob/master/man/pandoc-citeproc.1.md you should be able to disable this behaviour for non-English titles by telling pandoc manually that your citation is in German (where there is no concept of sentence case vs Title Case) and that therefore the titles should be left alone. This happens via the langid field (that would also be used by biblatex to decide whether or not to apply sentence casing).



        @book{georgii2015stochastik,
        title = {Stochastik: Einführung in die Wahrscheinlichkeitstheorie und Statistik},
        author = {Georgii, Hans-Otto},
        year = {2015},
        publisher = {de Gruyter},
        langid = {ngerman},
        }





        share|improve this answer















        This seems to be a feature of pandoc and is not directly related to BibTeX (which also has a feature to convert titles to sentence case, see BibTeX loses capitals when creating .bbl file).



        CSL expects titles to be saved in sentence case while .bib files are expected to contain titles in Title Case (see What is the proper casing to use when storing titles in the bibliography database?). Hence, it seems reasonable that pandoc would convert your titles in the .bib file to sentence case before passing them to on the CSL style.



        According to https://github.com/jgm/pandoc-citeproc/blob/master/man/pandoc-citeproc.1.md you should be able to disable this behaviour for non-English titles by telling pandoc manually that your citation is in German (where there is no concept of sentence case vs Title Case) and that therefore the titles should be left alone. This happens via the langid field (that would also be used by biblatex to decide whether or not to apply sentence casing).



        @book{georgii2015stochastik,
        title = {Stochastik: Einführung in die Wahrscheinlichkeitstheorie und Statistik},
        author = {Georgii, Hans-Otto},
        year = {2015},
        publisher = {de Gruyter},
        langid = {ngerman},
        }






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 16 hours ago

























        answered 19 hours ago









        moewemoewe

        96.5k10118362




        96.5k10118362






















            nunberg is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            nunberg is a new contributor. Be nice, and check out our Code of Conduct.













            nunberg is a new contributor. Be nice, and check out our Code of Conduct.












            nunberg is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483615%2fhow-to-cite-german-book-titles-properly-upper-case-with-csl-and-rmarkdown%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

            Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

            How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...