I want to have an index entry referencing to another entry withought adding a comma. I currently do this with:


And then in the text itself when an entry occurs:


This above part produces exactly the index format I am looking for. However, since this is a rather long bit for the second line to type each time in my text where I have such an entry I want to shorten this. I tried to use:


and then in the text itself:


However, this completely ignores the "\gobblecomma@" part. How can I solve this? Compilable it looks like this:

\documentclass[10pt, twoside, a4paper, twocolumn, openany, makeidx]{book}

\usepackage[totoc, initsep=0pt, columns=4]{idxlayout}



random text entry


random other entry text


more random text



The difference is just in the presence of the comma before the "see also" in the end result.

  • 1
    Welcome to TeX.SE! Can you please make your code snippets compilable ... – Mensch Aug 14 '17 at 18:55
  • 1
    \string\gobblecomma@ – David Carlisle Aug 14 '17 at 19:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.