Here is my code:
\documentclass[10pt]{beamer}
\usetheme{CambridgeUS}
\usepackage[backend=biber,style=ieee,citestyle=authoryear]{biblatex}
\bibliography{literature.bib}
\begin{document}
network design\parencite{sb2016}
\end{document}
Now it produces something like this:

Notice there is a space between the ( and the author's name.
I tried this: Biblatex[-chicago, authordate] footnote on first cite. Extra space put in parencite But it tells me that the cite:init is not defined.
I've never come across this question before. I even updated the required packages to see if it corrects the error. No it didn't work. Weird.
Update: bibentry
@article{sb2016,
title={Strategic design of public bicycle sharing systems with service level constraints},
author={Lin, Jenn-Rong and Yang, Ta-Hui},
journal={Transportation research part E: logistics and transportation review},
volume={47},
number={2},
pages={284--294},
year={2011},
publisher={Elsevier}
}
I am using biblatex package version 3.7. And biber 2.7.
Update: With article and its log file
\documentclass{article}
\usepackage[UTF8]{ctexcap}
%-------------------------------------------------------
% INCLUDE PACKAGES
%-------------------------------------------------------
\usepackage{extramarks} % Required for headers and footers
\usepackage{graphicx} % Required to insert images
\usepackage{tikz} % Required for tikz picture
\usetikzlibrary{fit,arrows,calc,positioning}
\usepackage{xcolor} % Required for color setting
\newcommand{\highlight}[1]{%
\colorbox{red!20}{$\displaystyle#1$}}
\usepackage{amssymb} % Required for math fonts
\usepackage{amsmath} % Required for math notation
\usepackage{mathtools} % Required for math notation
\usepackage{float} % Stop float
\usepackage[timeinterval=1]{tdclock} % Required for clock
\usepackage{mdframed} % Required to change backgroud colour, but no floating support
\usepackage{pgfpages} % Required for split screen note
\usepackage[backend=biber,style=ieee,citestyle=authoryear,citetracker=true,ibidtracker=false]{biblatex} % Required for citation
\renewcommand\citesetup{\footnotesize}
\usepackage{hyperref}
%-------------------------------------------------------
% DRAWING FIGURES TIKZ
%-------------------------------------------------------
% tikz
\usepackage{tikz}
\usepackage{varwidth}
\usetikzlibrary{arrows,shapes,shapes.geometric,calc}
\tikzstyle{startstop} = [rectangle, rounded corners, minimum width=1.2cm, minimum height=0.7cm,text centered, draw=black, fill=red!30]
\tikzstyle{io} = [trapezium, trapezium left angle=70, trapezium right angle=110, minimum width=1.2cm, minimum height=0.7cm, text centered, draw=black, fill=blue!30]
\tikzstyle{process} = [rectangle, minimum width=1.2cm, minimum height=0.7cm, text centered, draw=black, fill=orange!30]
\tikzstyle{decision} = [diamond, aspect=1.5, minimum width=0.7cm, minimum height=0.7cm, text centered, text width=1.5cm, draw=black, fill=green!30, execute at begin node={\begin{varwidth}{30em}}, execute at end node={\end{varwidth}}]
\tikzstyle{arrow} = [thick,->,>=stealth]
%-------------------------------------------------------
% DEFFINING AND REDEFINING COMMANDS
%-------------------------------------------------------
\renewcommand{\eqref}[1]{$Eq\ \ref{#1}$}
% citation
\ExecuteBibliographyOptions{firstinits=true, isbn=false, url=false, doi=false, uniquename=init}
\AtEveryCitekey{%
\ifentrytype{article}{
\clearfield{pages}%
\clearfield{volume}%
}{}
}
% font
% \setbeamerfont{footnote}{size=\tiny}
% math underline with color
\newsavebox\MBox
\newcommand\Cunderline[2][red]{{\sbox\MBox{$#2$}%
\rlap{\usebox\MBox}\color{#1}\rule[-1.2\dp\MBox]{\wd\MBox}{0.5pt}}}
% citation
% \setbeamertemplate{bibliography item}{\insertbiblabel}
\DeclareCiteCommand{\sfcite}[\cbx@superscript]%
{\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim
\iffieldundef{prenote}{}{\BibliographyWarning{Ignoring prenote argument}}%
\iffieldundef{postnote}{}{\BibliographyWarning{Ignoring postnote argument}}}
{\usebibmacro{citeindex}%
\ifciteseen
{\ifnumequal{\value{page}}{\csuse{cbx@page@\thefield{entrykey}}}
{}
{\ifnumequal{\value{framenumber}}{\csuse{cbx@frame@\thefield{entrykey}}}
{\usebibmacro{sfcite}}
{}}}
{\usebibmacro{sfcite}}%
\usebibmacro{cite:comp}}
{}
{\usebibmacro{cite:dump}}
% remove the space in front of the parencite
% reference font
\renewcommand*{\bibfont}{\footnotesize}
\bibliography{literature.bib}
\begin{document}
network design\parencite{lin2011strategic}
\end{document}
literature.bib, so I tested with\addbibresource{biblatex-examples.bib}andsigfridsson. I could not reproduce the problem then. What version ofbiblatexare you running? (The current version is 3.7.) Note that the linked question is unlikely to help since it is about a vastly different style. – moewe Dec 16 '16 at 15:18.bibentry. Does the screenshot come from the exact MWE you posted or does it come from a larger document? Can you reproduce the problem with the MWE? – moewe Dec 16 '16 at 15:45.cfgs or.defs? Can you reproduce the problem with thearticledocument class? If so, please change your example to usearticleand show us the whole.logfile. – moewe Dec 16 '16 at 15:53