![如何将标题下的所有索引条目水平划分为段落](https://linux22.com/image/447373/%E5%A6%82%E4%BD%95%E5%B0%86%E6%A0%87%E9%A2%98%E4%B8%8B%E7%9A%84%E6%89%80%E6%9C%89%E7%B4%A2%E5%BC%95%E6%9D%A1%E7%9B%AE%E6%B0%B4%E5%B9%B3%E5%88%92%E5%88%86%E4%B8%BA%E6%AE%B5%E8%90%BD.png)
考虑一下代码
\documentclass{article}
\usepackage{imakeidx}
\makeindex
\usepackage{idxlayout}
\usepackage{xcolor}
\begin{document}
\Large
Some words.\index{Heading@\textbf{Heading}! 1. This is the first index entry.}
\newpage Some more words.\index{Heading@\textbf{Heading}! 2. This is the second index entry.}
\newpage Some more words.\index{Heading@\textbf{Heading}! 3. This is the third index entry.}\index{Heading@\textbf{Heading}! 4. This is the fourth index entry.}
\newpage Some more words.\index{Heading@\textbf{Heading}! 5. This is the fifth index entry; Moreover, I would like all of these five entries to appear within a single paragraph under the heading with the same indentation as displayed.}
\idxlayout{columns=1}
\printindex
\end{document}
生成索引:
问题:我怎样才能将给定标题下的所有索引条目水平列为段落,而不是像图中所示那样垂直列出?我用 编译代码lualatex
。
谢谢。