开发者

Latex: index of symbols

开发者 https://www.devze.com 2022-12-31 04:59 出处:网络
I want to create an index of symbols or notation, similar to the usual index one obtains with makeindex. I have gotten this to work, using the glossaries package. However, just as in the usual index,

I want to create an index of symbols or notation, similar to the usual index one obtains with makeindex. I have gotten this to work, using the glossaries package. However, just as in the usual index, I would like to get two columns in the index of symbols, while glossaries puts everything under each other. Commands like twocolumn or multicol also do not work, because then the second column starts higher than the first, above开发者_C百科 the title of the index of symbols.

Any suggestions?


Deriving your own style for the glossaries package isn't that difficult. The trick is going to be not to twocolumn the command you are using to add the index, but to redefine the glossary style to be twocolumn. The documentation in the glossaries package is pretty good on this.

Update to include explicit realization of my suggestion:

\newglossarystyle{wooitspretty}{
    \glossarystyle{list}
    \renewcommand*{\glossarypreamble}{\begin{multicols*}{2}} 
    \renewcommand*{\glossarypostamble}{\end{multicols*}}
}

\printglossary[style=wooitspretty,type=\symboltype]

I don't know what type you use, so I left it as a command

0

精彩评论

暂无评论...
验证码 换一张
取 消