EDIT: I finally found out how to do it:
\newrobustcmd*{\parentexttrack}[1]{%
\begingroup
\blx@blxinit
\blx@setsfcodes
\blx@bibopenparen#1\blx@bibcloseparen
\endgroup}
\AtEveryCite{%
\let\parentext=\parentexttrack%
\let\bibopenparen=\bibopenbracket%
\let\bibcloseparen=\bibclosebracket}
\makeatother
\renewcommand{\cite}{\parencite}
The code for square brackets is from this thread: Biblatex, author-year, square brackets And the renewcommand changes \cite to have the same properties as \parencite
How do I redefine \cite so that there are brackets [] around it?
\let\[\cite\]=\cite
did not work.
It should look like this: text bla bla[John Doe, 1990] bla bla bla text more text
Every functionality in \cite should still be there.
I am using Biblatex \usepackage[citestyle=authoryear]{biblatex}
EDIT: In my opinion this is not a duplicate. The mentioned question is similiar but I want to use \cite
and NOT \parencite
or other types of cite to achieve the following:
Square brackets around the citation and NOT! round brackets as this is the case for \parencite
. It has to be the \cite
command because I am working with another program which requires the \cite
command.
\cite
I can not use\parencite
– Takeru Apr 22 '13 at 11:12biblatex
:\usepackage{letltxmacro}\LetLtxMacro{\cite}{\parencite}
– lockstep Apr 22 '13 at 11:56\renewcommand*{\nameyeardelim}{\addcomma\space}
in your preamble. I will delete my answer below, since it was mainly a reference to the duplicate. – anderfo Apr 22 '13 at 12:00\cite
which I have to use. I just want\cite
to citate liketext[John Doe, 2009]
with square brackets and not round brackets – Takeru Apr 22 '13 at 12:27