TransWikia.com

Citealias doesn't follow the same rules for parenthesis

TeX - LaTeX Asked on May 10, 2021

I am trying to cite an organization, but the command citepalias doesn’t work the same as citep, it removes parenthesis.

%!TEX program = xelatex
begin{filecontents}{mybib.bib}
@book{fao1990,
    author = {{Food and Agriculture Organization}},
    title = {FAO soils bulletin},
    publisher = {FAO},
    year = {1990}  
}
end{filecontents}
documentclass[a4paper,11pt,authoryear]{article}
usepackage{natbib}
usepackage[colorlinks, hidelinks, colorlinks, linktocpage=false, pagebackref=true, breaklinks=false]{hyperref}
 hypersetup{%
    pdfborder = {0 0 0},
    colorlinks,
    citecolor=blue,
    filecolor=Darkgreen,
    linkcolor=blue,
    urlcolor=BlueViolet%cyan!50!black!90
}
usepackage[T1]{fontenc}
usepackage{xurl}
bibliographystyle{apa}
begin{document}
defcitealias{fao1990}{FAO, 1990} 
citepalias{fao1990}
bibliography{mybib}
end{document}

enter image description here

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP