Basically, I am trying to write a paper for a Springer journal and I am using their template which you can download here. I am uploading it as a Zip file on Overleaf.
Thanks to this answer, I could manage to produce the citations because the bst files they have are in a bst folder, not in the root folder where .tex
main article file exists. So I moved a bst file into the root folder. I could use \cite{...}
command where it shows reference with number and square brackets, such as [1]
.
However, as their documentation claims, unfortunately, \citep{...}
option is not working. It still gives me the same output as \cite{...}
does. In other words, \citep{...}
does not print (Jones et al., 1990).
As this answer points out, I tried to write \documentclass{sn-jnl}
without "sn-mathphys
" but this time, I get an error, "Package natbib Warning: Author undefined for citation 'bib1' on page 2 on input line 129." whic I do have it!
and I tried many things and could not work it out.
Note that minimal example is already in download file with the bib items.
EDIT:
As a commenter points out, here is Springer Nature latex template preamble:
%%\documentclass[pdflatex,sn-basic]{sn-jnl}% Basic Springer Nature Reference Style/Chemistry Reference Style
%%\documentclass{sn-jnl}
%%\documentclass[sn-basic]{sn-jnl}% Basic Springer Nature Reference Style/Chemistry Reference Style
\documentclass[sn-mathphys]{sn-jnl}% Math and Physical Sciences Reference Style
%%\documentclass[sn-aps]{sn-jnl}% American Physical Society (APS) Reference Style
%%\documentclass[sn-vancouver]{sn-jnl}% Vancouver Reference Style
%%\documentclass[sn-aps]{sn-jnl}% APA Reference Style
%%\documentclass[sn-chicago]{sn-jnl}% Chicago-based Humanities Reference Style
%%\documentclass[sn-standardnature]{sn-jnl}% Standard Nature Portfolio Reference Style
%%\documentclass[default]{sn-jnl}% Default
%%\documentclass[default,iicol]{sn-jnl}% Default with double column layout
Here I need to use \documentclass[sn-mathphys]{sn-jnl}
since it is a mathematical paper. Besides, I put sn-mathphys.bst
file in root folder, as I mentioned above.
This is the claim what this template does with \citep{...}
command but it does not work:
Besides, what \citep
does is pretty obvious. I want to have authoryear-style citation.
\documentclass
instruction in your document and (b) whether you want to generate authoryear-style or numeric-style citation call-outs.\citep
command is not doing what it is supposed to do, even though Springer's documentation tells it does! What else do I need to tell? I edited my question