In a previous question, I asked about the possibility to create a custom "cited as" which related to the author names and a label when disambiguation is needed.
In some of the cases, I got the right citation in the bibliography, however there is an extra space between the label and the final ")." This creates a break, were the Author-Label is on one line and the ")." is on the next line.
By trial and errors, I've identified that this is due to the "\usebibmacro{cite}%", which is redefined in my custom CBX file. This would be something as:
Author First, Title and potential subtitle 3ed, Location year (cited as Author-Label
).
I'd prefer something similar to:
Author First, Title and potential subtitle 3ed, Location year (cited as
Author-Label).
However, I don't see where the parenthesis is set and especially were it is ended. My guess is that it may be in the "labelname" part, but I'm kind of stuck to this point.
What should I surgically edit in which biblatex macro?
NB: a MWE is difficult to reproduce, at the moment, I circumvented the issue by adding and extra space in the title.
.bbx
\ProvidesFile{biblatex-xawi.bbx}[2018/04/18 v1.1]
\RequireCitationStyle{authortitle}
\newbibmacro{citedas:cite}{%
\begingroup
\delimcontext{cite}%
\DeclareFieldFormat{bibhyperref}{##1}%
\csuse{blx@hook@cite}%
\csuse{blx@hook@citekey}%
\undef\cbx@lasthash
\undef\cbx@lastyear
\citetrackerfalse\pagetrackerfalse\backtrackerfalse
\defcounter{maxnames}{\blx@maxcitenames}%
\usebibmacro{cite}%
\endgroup
}
\newbibmacro{citedas}{%
\ifsingletitle
{}{
\printtext[parens] {%
\bibstring{citedas}%
\addcolon\space
\usebibmacro{citedas:cite}
}
}
}
.cbx
\renewbibmacro*{cite}{%
\iffieldundef{shorthand}
{\ifnameundef{labelname}
{\usebibmacro{cite:title}}
{\ifsingletitle
{\printtext[bibhyperref]{\printnames{labelname}}}
{\printnames{labelname}%
\setunit{\nametitledelim}%
\usebibmacro{cite:title}}}}%
{\usebibmacro{cite:shorthand}}}
%after\usebibmacro{citedas:cite}in\newbibmacro{citedas}. Also after the whole\ifsingletitle. – gusbrs May 04 '18 at 15:23\printtext[parens] {...– gusbrs May 04 '18 at 15:35%s and does not risk producing unwanted space. – moewe May 04 '18 at 15:37%after\usebibmacro{citedas:cite}. But if you leave the other missing%, you may potentially cause other unwanted spaces, so they should be also included. As to this one, though didactic, I think it is best marked as a duplicate. – gusbrs May 04 '18 at 16:12%s, so the formatting is also part of the answer. (There is a reason why I changed things back in my answers even if your questions had a different formatting.) – moewe May 04 '18 at 16:26