I was looking for a way to get biblatex's \autocite{} command to change the parentheses from normal parentheses to brackets if issued within a stretch of text enclosed by parentheses, but was unable to find anything either here, or in the biblatex and biblatex-chicago manuals.
Consider this MWE:
% !TEX TS-program = xelatexmk
\documentclass{article}
\usepackage{filecontents}
\usepackage[authordate, backend=biber, parentracker=true, cmsdate=both]{biblatex-chicago}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{test1,
author = {Antelope, Alfred},
year = {2010},
title = {A Title},
url = {www.url.com},
urldate = {2015-05-05},
journal = {Journal},
volume = {1},
number = {2},
pages = {3--15}
}
@article{test2,
author = {Bee, Ben},
year = {2011},
origyear = {1960},
title = {Best Title},
journal = {Journal},
volume = {1},
number = {2},
pages = {3--4}
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Text (in parenthesis \autocite{test1})
Text (in parenthesis \autocite{test2})
\end{document}
It gives me:
Text (in parenthesis (Antelope 2010))
Text (in parenthesis (Bee [1960] 2011))
but I was hoping for
Text (in parenthesis [Antelope 2010])
Text (in parenthesis [Bee (1960) 2011])
I originally thought that parentracker=true would take care of that automatically, but it seems to be there for a different purpose?
\mkbibparensand\parentextif there is one? – jan Nov 29 '16 at 15:53biblates.stywe have\newrobustcmd*{\parentext}{\mkbibparens}. From what I could find in the documentation, I'm lead to believe that\parentextis the higher-level command, so I suggest you use that. – moewe Nov 29 '16 at 17:01\let\(=\bibopenparenand\let\)=\bibclosebracketand then use\(and\)where needed? Works with the MWE but I want to make sure that I won't break anything elsewhere ... – jan Nov 29 '16 at 17:33\(starts math mode (in LaTeX not TeX, so you can write\(a\)instead of$a$). So it might not be the best idea to overwrite that... – moewe Nov 29 '16 at 17:39\<and\>then. A search didn't bring up anything meaningful for these. – jan Nov 29 '16 at 17:51