You haven't told us which bibliography style you use, but it would appear to be one that generates a numeric citation style by default.
If the bibliography style is not completely incompatible with authoryear-style citations (a big if, given the first error message you report...), you could try issuing the command
\setcitestyle{authoryear}
after loading natbib
so that \citet
and \citep
can create citations in the desired authoryear style. After adding the command given above, be sure to wipe out the .aux file and rerun LaTeX, BibTeX, and LaTeX (twice more) .
If your bibliography style does turn out to be incompatible with authoryear-style citations, you either need to find another, compatible style file or create your own custom .bst style file from scratch. Fortunately, the latter method isn't as difficult as it might seem, thanks to the existence of the custom-bib package (which was created, incidentally, by the author of the natbib
package).
Well, in your code I can see some problems.
For example should package hyperref
be the last called package!
The documentation of package natbib
can you read by typing texdoc natbib
on your console/terminal. There are the styles listed you can use with natbib
and which styles and field names are supported.
To give you a starting point I changed your MWE, deleted not needed package calls for this problem, changed the order of package calls and added the missing informations for field year
and publisher
to your bib file (btw package filecontents
is only used to have bib file and TeX code in one compilable MWE).
MWE:
\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{SMFC,
author = {{SMFC = Academia RPR, Institutul de lingvistica din Bucuresti}},
title = {Institutul de lingvistica din Bucuresti, Studii \c{s}i
materiale privitoare la formarea cuvintelor în limba român\u{a}},
note = {vol I, 1959 ; II, 1960 ; III, 1962 ; IV, 1967 ; V, 1969 ; VI, 1972},
year = {1972},
editor = {Editura Academiei},
publisher = {UNKNOWN},
volumes = {6},
location = {Bucarest},
}
@inbook{Asan-PsaltHur,
author = {Asan, Finuţa},
title = {Derivarea cu sufixe şi prefixe în Psaltirea Hurmuzaki},
booktitle = {SMFC},
year = {1959},
bookauthor = {Academia RPR, Institutul de lingvistica din Bucuresti},
editor = {Editura Academiei},
publisher = {UNKNOWN},
location = {Bucarest},
volume = {1},
volumes = {6},
pages = {203--212},
}
@book{Popescu-Formarea,
author = {Popescu Marin, Magdalena (coord.)},
title = {Formarea cuvintelor în limba română din secolele al XVI lea – al XVIII lea},
year = {2007},
editor = {Editura Academiei},
publisher = {UNKNOWN},
location = {Bucarest},
}
\end{filecontents*}
\documentclass[10pt,a4paper,final]{book}
\usepackage{fontspec} % utf-8 encoding!
\setmainfont{Times New Roman}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{polyglossia}
\setmainlanguage{french}
\setotherlanguages{english,german,latin,italian,spanish,russian,greek}
\usepackage[numbers]{natbib}
\usepackage[hidelinks]{hyperref}
\begin{document}
text \cite{Asan-PsaltHur} \nocite{*}
\section{Bibliographie}
\bibliographystyle{abbrvnat} % plainnat abbrvnat
\bibliography{\jobname}
\end{document}
Now if you compile you will get three warnings like this:
As you can see the warning is pretty clear (same with the warnings you got with your original code): you can not use author and editor both. Please rework your bib file. I also changed your undefined @mvbook
to @book
.
At last three tips:
SMFC = Academia RPR, Institutul de lingvistica din Bucuresti
is an unusual entry for an author, better would be to place the acronym in the text and use the complete name. But your given name for author is an institution, as I can see. So better use it as editor ...
Studii \c{s}i
should be in an utf-8 encoded file changed. Please change all tex substitutions for special characters with cedilie etc. to the corresponding original utf-8 letter.
- You need a field
year
to be style-conform, so in the case of your first entry SMFC
I would use field note={vol I, 1959 ; II, 1960 ; III, 1962 ; IV, 1967 ; V, 1969 ; VI, 1972},
instead your date field.
Best Answer
You observe:
You may be mixing up two aspects of the process of creating (i) a bibliography and (ii) citations to entries in the bibliography. The first aspect -- determining how entries are typeset in the bibliography -- is handled by the bibliography style file (plos.bst in your case). The second aspect -- how citations/references to entries in the bibliography are formatted -- is handled by
natbib
.By loading
natbib
with thenumbers
option, you are actually instructing the package to create numeric-style citations. If you want authoryear-style citations -- as would seem to be indicated by your attempted use of the\citet
command -- you must specify theauthoryear
option instead.Incidentally, when natbib is set to perform authoryear-style citations, specifying the option
sort&compress
is not necessary (and has no effect).Addendum: From the OP's follow-up comments, I gather that a hybrid between "pure" numeric and authoryear citation styles -- viz., a combination of the author's (or authors') name and the associated citation number -- is what's needed. If this interpretation is correct, the following command may be of use (to be placed in the preamble):
Invoking
\hybridcite{People}
(assuming thatPeople
is the key to an entry which is listed first in the references and which has two authors, named Author1 and Author 2) will then generate the citationAuthor1 and Author2 [1]
.