Overleaf 中是否有索引所選單字的捷徑?

Overleaf 中是否有索引所選單字的捷徑?

我正在 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}

預先非常感謝您!

相關內容