TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried searching the mailing list for this but maybe I'm searching for the wrong thing.

Basically, I have something I want to put in the index, but it has a plus symbol in it. ConTeXt interprets the plus symbol as a level separator, and as a result, the item I'm indexing comes out wrong.

E.g.

\starttext
Lorem\index{Hello + World} ipsum

\placeindex[n=1]
\stoptext

Produces:

Old index

But what I want (mocked up myself):

enter image description here

I tried manually adding the entry with \setregisterentry but no matter what I tried giving that command it never seemed to give me the plus symbol back.

share|improve this question
    
You can use the \textplus command in your index entry, i.e. \index{Hello \textplus\ World}. – Metafox Mar 18 at 10:01
1  
@Metafox you might want to make that an answer – DG' Mar 18 at 10:09
    
@DG' That’s not necessary. – Metafox Mar 18 at 10:12
    
@Metafox Ok, I will cleanup my answer and the comments then – DG' Mar 18 at 10:14
up vote 6 down vote accepted

You can use \textplus in the index:

\starttext
Lorem\index[Hello + World]{Hello \textplus\ World} ipsum

\placeindex[n=1]
\stoptext

enter image description here

share|improve this answer
    
I knew it would be something simple! – dreamlax Mar 18 at 22:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.