![如何将命令的输出视为“普通文本”?](https://linux22.com/image/462285/%E5%A6%82%E4%BD%95%E5%B0%86%E5%91%BD%E4%BB%A4%E7%9A%84%E8%BE%93%E5%87%BA%E8%A7%86%E4%B8%BA%E2%80%9C%E6%99%AE%E9%80%9A%E6%96%87%E6%9C%AC%E2%80%9D%EF%BC%9F.png)
在下面的例子中,我如何将输出\cite
视为简单的文本字符串?
\documentclass{article}
\usepackage[style=numeric-comp]{biblatex}
\begin{filecontents*}{\jobname.bib}
@book{A,
title = {A Bla},
author = {A Foo}
}
@book{B,
title = {B Bla},
author = {B Foo}
}
@book{C,
title = {C Bla},
author = {C Foo}
}
@book{D,
title = {D Bla},
author = {D Foo}
}
@book{E,
title = {E Bla},
author = {E Foo}
}
@book{F,
title = {F Bla},
author = {F Foo}
}
@book{G,
title = {G Bla},
author = {G Foo}
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\usepackage{listofitems}
\usepackage{scontents}
\begin{document}
\nocite{*}
I would like this example:
\setsepchar{,}
\readlist\foo{\cite{A,B,C,E,F,G}}
Show items: \showitems\foo\par
Term 1: \foo[1]\par
would give the same output as this example:
\setsepchar{,}
\readlist\bar{[1-3,5-7]}
Show items: \showitems\bar\par
Term 1: \bar[1]\par
Term 2: \bar[2]\par
\printbibliography
\end{document}