Answers for "latex apacite use brackets in citation"

0

latex apacite use brackets in citation

\documentclass{article}

\usepackage{apacite}
\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
  @book{Knu86,
    author = {Knuth, Donald E.},
    year = 1986,
    title = {The {\TeX{ book},
  }}}
\end{filecontents}
%
\makeatletter
\usepackage{etoolbox}
\makeatletter
\pretocmd{\@cite}{\def\@BBOP{[}\def\@BBCP{]}}{}{}
\makeatother

\makeatother

\begin{document}
\section{Demonstration} 

To adhere to SBC (Brazilian Computer Society) style:

This citation should be using square brackets:~\cite{Knu86}.

This should be using parentheses:~\citeA{Knu86}.
Posted by: Guest on April-24-2022

Browse Popular Code Answers by Language