是否可以自定义memoir
索引,使其包含超过两列?我的索引条目是单个汉字,因此甚至\twocolindex
会导致太多空格。
答案1
使用idxlayout
包。它允许索引包含超过两列,并且可响应类的索引相关选项和命令memoir
。
披露:我是该软件包的作者。
\documentclass{memoir}
% \usepackage{makeidx}% Emulated by memoir
\makeindex
\usepackage[columns=3]{idxlayout}
\begin{document}
\chapter{foo}
Some text.\index{Alpha}\index{Bravo}\index{Charlie}\index{Delta}\index{Echo}\index{Foxtrott}
\printindex
\end{document}
答案2
抱歉重新提起旧话题,但是为了完整性起见,我想提供另一个建议。:)
imakeidx
该软件包的最新版本memoir
已兼容。我们可以轻松地使用它来自定义我们的索引,包括列数。:)
\documentclass{memoir}
\usepackage{imakeidx}[2012/05/09]
\makeindex[columns=3]
\begin{document}
\chapter{Hello}
Some text.\index{Apple}\index{Apricot}\index{Avocado}\index{Banana}
\index{Bilberry}\index{Blackberry}\index{Blackcurrant}\index{Blueberry}
\index{Currant}\index{Cherry}\index{Cherimoya}\index{Clementine}
\index{Date}\index{Damson}\index{Dragonfruit}\index{Durian}
\index{Eggplant}\index{Elderberry}\index{Feijoa}\index{Gooseberry}
\index{Grape}\index{Grapefruit}\index{Guava}\index{Huckleberry}
\index{Jackfruit}\index{Jambul}\index{Kiwi fruit}\index{Kumquat}
\index{Legume}\index{Lemon}\index{Lime}\index{Lychee}\index{Mandarine}
\index{Mango}\index{Melon}\index{Nectarine}\index{Orange}\index{Peach}
\index{Pear}\index{Pitaya}\index{Physalis}\index{Plum}\index{Pineapple}
\index{Pomegranate}\index{Purple Mangosteen}\index{Raisin}\index{Raspberry}
\index{Rambutan}\index{Redcurrant}\index{Salal berry}\index{Satsuma}
\index{Star fruit}\index{Strawberry}\index{Tangerine}\index{Tomato}
\index{Ugli fruit}\index{Watermelon}\index{Ziziphus mauritiana}
\printindex
\end{document}
输出: