词汇表和图片?

词汇表和图片?

我的问题是:如何最好地制作一种带有图片的词汇表?

事实上,我已经得到了制作工具的描述,一方面是文字描述(这里没什么难的),另一方面,因为最好能看到它是什么,所以我提供了它们的图片。

我原本想用词汇表来做这件事,但我不确定这是否是最好的方法。

有人知道我应该做什么(以及如何做)吗?

答案1

好吧,这里有一个可以放置图形的各个位置的示例:

\documentclass{article}
\usepackage[nonumberlist]{glossaries}
\makeglossaries
\usepackage{graphicx,xcolor}

\newcommand\tigerdescription{a large animal. Some facts:
 \begin{itemize}
  \item Has stripes
  \item Its image: \colorbox{red}{\includegraphics[width=1cm]{tiger}}
 \end{itemize}}


\newglossaryentry{tiger}
  {name={\raisebox{-0.5cm}{\colorbox{green}{\includegraphics[width=1cm]{tiger}}}},
   sort=tiger,
   text={tiger (\protect\raisebox{-0.5em}{\protect\colorbox{blue}{\protect\includegraphics[width=1em]{tiger}}})},
   description={\tigerdescription}}%

\begin{document}

A \gls{tiger} is a large animal.

\printglossary[style=list]%
\end{document}

相关内容