def visit_term(self, node: Element) -> None:
    for id in node.get('ids'):
        self.add_anchor(id, node)
    for n in node[:]:
        if isinstance(n, (addnodes.index, nodes.target)):
            n.walkabout(self)
            node.remove(n)
    self.body.append(('\n%s ' % self.at_item_x))
    self.at_item_x = '@itemx'
def visit_term(self, node: Element) -> None:
    for id in node.get('ids'):
        self.add_anchor(id, node)
    for n in node[:]:
        if isinstance(n, (addnodes.index, nodes.target)):
            n.walkabout(self)
            node.remove(n)
    self.body.append(('\n%s ' % self.at_item_x))
    self.at_item_x = '@itemx'