设置颜色 \plauthorhl 参数插入空格

设置颜色 \plauthorhl 参数插入空格

我正在尝试自定义 publist 作者的突出显示,但插入了不必要的空格

在此处输入图片描述

\begin{filecontents}{\jobname.bib}
    
@article{salem2023implementation,
    title={An implementation of an enhanced DG primary control equipped with fault detection scheme},
    author={Salem, Qusay and Aljarrah, Rafat and Alzaareer, Khaled and Harasis, Salman and Aldaoudeyeh, {Al-Motasem} Ihssan},
    journal={International Journal of Sustainable Energy},
    volume={42},
    number={1},
    pages={318--330},
    year={2023},
    month={3},
    publisher={Taylor \& Francis},
    doi={https://doi.org/10.1080/14786451.2023.2191149}
}
    
\end{filecontents}

\documentclass{article}

\usepackage[x11names]{xcolor}

\usepackage[bibstyle=publist, plauthorhandling=highlight]{biblatex}
\addbibresource{\jobname.bib}
\plauthorname[{Al-Motasem} Ihssan]{Aldaoudeyeh}

\RenewDocumentCommand{\plauthorhl}{m}{%
    \leavevmode\color{DodgerBlue3}%
    \mkbibbold{#1}%
}

\begin{document}
    
    \nocite{*}

    \printbibliography[heading={subbibliography}, title={Journal Articles}, type=article]

\end{document}

答案1

我不确定问题出在哪里,但是

\RenewDocumentCommand{\plauthorhl}{m}{%
  \mkbibbold{\color{DodgerBlue3}#1\unskip}%
}

避免了虚假空间。

在此处输入图片描述

相关内容