问题 - 乳胶中的多重索引

问题 - 乳胶中的多重索引

我在这里找到一个例子,并将其用于我的多重索引。Latex 中的这段代码可以工作,但我想\smindexxspecial[\ITerm]{beccari}改用newcommand\index[\ITerm]{beccari}或。为此,我执行了这个。但它不起作用。\smsindexspecial{IServ{www.wikipedia.org}\index[\IServ]{www.wikipedia.org}\newcommand{\smindexxspecial}[2]{{\MyLarge#2} \index[1]{#2}}

有人有想法吗?

\documentclass{article}
\usepackage{imakeidx}

\newcommand{\ITerm}{IndexTerms}
\newcommand{\IServ}{IndexServs}

\newcommand{\MyLarge}{\Large}

\newcommand{\smindexxspecial}[2]{{\MyLarge#2} \index{#2}}
\newcommand{\smindexspecial}[2]{{\MyLarge#2}\index{#2}}
\newcommand{\smindexvspecial}[2]{{\MyLarge#2}\index{#2}}
\newcommand{\smsindexspecial}[2]{{\MyLarge\url{#2}}\index{#2}}

\makeindex[name= \ITerm, Concept Index,columns=3]
\makeindex[name= \IServ,title= Websites,columns=3]

\begin{document}

Here is a list of things and people
\begin{itemize}
 \item \LaTeX \index[\IServ]{www.wikipedia.org}  %\smsindexspecial{IServ{www.wikipedia.org}
 \item Beccari \index[\ITerm]{beccari}           %\smindexxspecial[\ITerm]{beccari}
 \item Gregorio \index[\ITerm]{gregorio}
\end{itemize}

And this is the end of the story.

\printindex[\IServ]

\indexprologue{\small In this index you’ll find only
famous people’s names}
\printindex[\ITerm]

\end{document}

相关内容