如何突出显示某些参数字段

如何突出显示某些参数字段

我有这个包含 9 个参数的环境。我想突出显示参数 (#1) 的一些输入。可以这样做吗?

\documentclass{article}
\usepackage[margin=1in, a4paper]{geometry}
\usepackage{multicol}
\usepackage{polyglossia}
\setotherlanguage{bengali}
\setmainfont{Times New Roman}
\newfontfamily\bengalifont[Script=Bengali]{Kalpurush}

\newenvironment{word}[9]% environment name
{
    \fbox{#1}\hspace{0.2cm}\textit{#2}---#3\ifstrempty{#4}{}{\textbengali{ / #4}}\newline
    \ifstrempty{#9}{}{ex: \textbf{\textit{``#9''}}\\}
    \ifstrempty{#5}{}{n: #5\\}
    \ifstrempty{#6}{}{v: #6\\}
    \ifstrempty{#7}{}{adj: #7\\}
    \ifstrempty{#8}{}{adv: #8\\}
    \newline
}{}

\title{}
\author{}
\date{January 2023}

\begin{document}

\maketitle

\begin{multicols}{3}
    \section{31/05/2022}
    \begin{word}
        {269}{irrefutable}{impossible to deny or disprove}{}{}{}{}{}{}
    \end{word}
    \begin{word}
        {270}{asunder}{apart}{}{}{}{}{}{}
    \end{word}
    \begin{word}
        {271}{parables}{short story about moral attitude}{}{}{}{}{}{}
    \end{word}
    \begin{word}
        {272}{propound}{put forward / offer}{}{}{}{}{}{}
    \end{word}
    \end{multicols}
    
\end{document}

我想通过将一些数字放在单独的文件或放在同一个文件中来自动标记这些数字,就像这样[269,271等等]

相关内容