Skip to content

Update instructions for using CSL files? #34

@frederic-santos

Description

@frederic-santos

Hello,

This is maybe more a question than a proper issue, but the template says:

Using CSL

If cite-method is set to citeproc in elsevier_article(), ...

What is exactly elsevier_article() -- especially since the way it is formatted suggests that it's an R function?

I could not figure out exactly how to specify an external CSL file. For instance, if I need the two following parameters:

cite-method: citeproc
csl: global-ecology-and-conservation.csl

where am I supposed to insert them in the YAML header? Whichever place I tried (e.g., as subparameters of elsevier-pdf), I got the following error message:

ERROR: 
compilation failed- error
Package natbib Error: Bibliography not compatible with author-year citations.

(natbib)                Press <return> to continue in numerical citation style.


See the natbib package documentation for explanation.
Type  H <return>  for immediate help.

Conversely, if I remove cite-style: authoryear in the YAML and add the two previous parameters instead, the document can now be compiled with no error... but the journal style is not taken into account.

Are these CSL instructions still up to date?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions