我正在 Overleaf 中撰写文本,并希望包含一个包含(许多)选定单词的索引。为此,我使用了包imakeidx
。是否可以定义快捷键或键盘热键,以便我标记单词并按下快捷键,而不必\index{selected word}
多次书写?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{imakeidx}
\makeindex
\begin{document}
\section{Introduction}
In this example several keywords\index{keywords} will be used
which are important and deserve to appear in the Index\index{Index}.
Terms like generate\index{generate} and some\index{others} will
also show up.
\printindex
\end{document}
提前非常感谢您!