I used the order "\citet{}" under biblatex and it shows error:" unbalanced parentheses or brackets" and "unmatched \bibcloseparen". How can I cite document in the type of "author(year)" under biblatex? (Besides, I tried \cite{} but the result is (author,year).)
\documentclass{scrartcl}
\usepackage[
backend=biber,
style=authoryear,
sorting=ynt
]{biblatex}
\addbibresource{mybib.bib}
\begin{document}
Just have a look at~\cite{wikibook}.
Described by Laura Lion~\cite[9]{lion2010}.
\nocite{*}
\printbibliography
\end{document}
% ==============content of mybib.bib===============
%
%@book{lion2010,
% author = {Laura Lion and Gabrielle Giraffe and Carl Capybara},
% title = {The dangers of asking the wrong question},
% publisher = {publishing house},
% date = {2010},
% keywords = {trusted},
%}
%@online{wikibook,
% title = {Generating Bibliographies with biblatex and biber},
% organization = {Wikibooks},
% date = {2016},
% urldate = {2016-03-07},
% url = {https://en.wikibooks.org/wiki/LaTeX/Generating_Bibliographies_with_biblatex_and_biber},
% keywords = {untrusted},
%}
gives you:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.