如何设置长文内引用换行的背景颜色?

如何设置长文内引用换行的背景颜色?

修订版一般会将修订文本高亮显示,当文内引用较长,且超过一行时,背景色会延伸至页边距,下一行引用内容则没有背景色。

我现在用的是\usepackage{soul} \soulregister\cite7 \soulregister\citep7,我知道这个问题是因为\soulregister把文内引用放进去了\mbox

我试过了tcolorbox , tikz,但它们就像盒子一样。

我想要的只是有背景颜色的一段文本,文本块内有超过一行的引用,并且有背景颜色。使用soul包时无需受到限制。

想知道乳胶是否能做到这一点?任何帮助都非常感谢!

妇女权利委员会:


\documentclass{article}
\usepackage{color}
\usepackage{natbib}
\usepackage{soul}
\soulregister\cite7
\soulregister\citep7

\begin{filecontents*}{bibtest.bib}
    @article{r14,
        author = {Tavakoli, R and Mura, P},
        title = {Netnography in tourism - Beyond Web 2.0},
        journal = {Annals of Tourism Research},
        year = {2018},
        volume = {73},
        pages = {190-192},
    }
    @article{r15,
        author = {Ahmad, M and Sattar, Y},
        title = {A Factors influencing Customer Satisfaction in Hotel Industry: A Case of Pakistan},
        journal = {Journal of Business and Finance Management Research},
        year = {2018},
        volume = {4},
        pages = {5-11},
    }
    @article{r16,
        author = {Gilbert, G R and Veloutsou, C and Goode, M M H and et al},
        title = {Measuring customer satisfaction in the fast food industry},
        journal = {Journal of Services Marketing},
        year = {2004},
        volume = {18},
        number = {5},
        pages = {371-383},
    }
    @article{r17,
        author = {Anderson, E W and Fornell, C and Lehmann, D R},
        title = {Customer Satisfaction, Market Share, and Profitability},
        journal = {Journal of Marketing},
        year = {1994},
        volume = {58},
        pages = {53-66},
    }
\end{filecontents*}

\begin{document}
    
    \hl{werwe Etiam \citep{r14} suscipit \citep{r14,r15,r16,r17} Donec Fusce ornare. 
        
        Proin ipsum enim \cite{r15,r16,r17} aliquam
    }
    
    \bibliographystyle{apalike}
    \bibliography{bibtest}
    
\end{document}

有背景颜色问题的结果:

背景颜色问题

相关内容