Index ordering when using math symbolsOccasionally wrong page numbers for index entriesRedefining ordering in indexSorting index entries with accented wordsSimplify index nested entriesIndexes using datagidx where multiple terms have a single index entryNicely showing 'special' index entries in the marginNomenclature Sorting: Correct sorting of math while using groupsOccasionally wrong page numbers for index entriesmakeindex - Sorting by page number using many math symbolsnewcommand for index inserts unwanted spaces when using How to add custom letter groups to an index, e.g. for greek letters or brackets?

Dragon forelimb placement

Email Account under attack (really) - anything I can do?

Risk of getting Chronic Wasting Disease (CWD) in the United States?

Watching something be written to a file live with tail

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

What defenses are there against being summoned by the Gate spell?

Why Is Death Allowed In the Matrix?

Mage Armor with Defense fighting style (for Adventurers League bladeslinger)

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Why are electrically insulating heatsinks so rare? Is it just cost?

Minkowski space

Smoothness of finite-dimensional functional calculus

What would happen to a modern skyscraper if it rains micro blackholes?

Why not use SQL instead of GraphQL?

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

How to write a macro that is braces sensitive?

"to be prejudice towards/against someone" vs "to be prejudiced against/towards someone"

Which models of the Boeing 737 are still in production?

How does one intimidate enemies without having the capacity for violence?

Arthur Somervell: 1000 Exercises - Meaning of this notation

Is it possible to do 50 km distance without any previous training?

Collect Fourier series terms

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

The use of multiple foreign keys on same column in SQL Server



Index ordering when using math symbols


Occasionally wrong page numbers for index entriesRedefining ordering in indexSorting index entries with accented wordsSimplify index nested entriesIndexes using datagidx where multiple terms have a single index entryNicely showing 'special' index entries in the marginNomenclature Sorting: Correct sorting of math while using groupsOccasionally wrong page numbers for index entriesmakeindex - Sorting by page number using many math symbolsnewcommand for index inserts unwanted spaces when using How to add custom letter groups to an index, e.g. for greek letters or brackets?













13















I'm making an index where certain entries start with the math symbols $k$, $mathcalC$, $ast$-a.... In the first two cases, I want them to appear in the index as if they start with k and c respectively. In the last case I want the index to ignore $ast$- and treat the word as if it begins with the letter a.



How might I go about doing that?










share|improve this question



















  • 4





    indexk@$k$ and indexc@$mathcalC$

    – egreg
    Aug 22 '12 at 13:28











  • @egreg: why don't you post this as an answer?

    – bodo
    Aug 22 '12 at 13:29















13















I'm making an index where certain entries start with the math symbols $k$, $mathcalC$, $ast$-a.... In the first two cases, I want them to appear in the index as if they start with k and c respectively. In the last case I want the index to ignore $ast$- and treat the word as if it begins with the letter a.



How might I go about doing that?










share|improve this question



















  • 4





    indexk@$k$ and indexc@$mathcalC$

    – egreg
    Aug 22 '12 at 13:28











  • @egreg: why don't you post this as an answer?

    – bodo
    Aug 22 '12 at 13:29













13












13








13


7






I'm making an index where certain entries start with the math symbols $k$, $mathcalC$, $ast$-a.... In the first two cases, I want them to appear in the index as if they start with k and c respectively. In the last case I want the index to ignore $ast$- and treat the word as if it begins with the letter a.



How might I go about doing that?










share|improve this question
















I'm making an index where certain entries start with the math symbols $k$, $mathcalC$, $ast$-a.... In the first two cases, I want them to appear in the index as if they start with k and c respectively. In the last case I want the index to ignore $ast$- and treat the word as if it begins with the letter a.



How might I go about doing that?







indexing sorting






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 22 '12 at 13:31









Thorsten

9,86965663




9,86965663










asked Aug 22 '12 at 13:26









Eivind DahlEivind Dahl

385211




385211







  • 4





    indexk@$k$ and indexc@$mathcalC$

    – egreg
    Aug 22 '12 at 13:28











  • @egreg: why don't you post this as an answer?

    – bodo
    Aug 22 '12 at 13:29












  • 4





    indexk@$k$ and indexc@$mathcalC$

    – egreg
    Aug 22 '12 at 13:28











  • @egreg: why don't you post this as an answer?

    – bodo
    Aug 22 '12 at 13:29







4




4





indexk@$k$ and indexc@$mathcalC$

– egreg
Aug 22 '12 at 13:28





indexk@$k$ and indexc@$mathcalC$

– egreg
Aug 22 '12 at 13:28













@egreg: why don't you post this as an answer?

– bodo
Aug 22 '12 at 13:29





@egreg: why don't you post this as an answer?

– bodo
Aug 22 '12 at 13:29










1 Answer
1






active

oldest

votes


















18














you need to give these entries a sort field. you've actually chosen the easiest approach, sorting them in with the alphabetic entries. egreg has provided good examples for the first two:



indexk@$k$ and indexc@$mathcalC$



my suggestion for the * is



indexa sterisk@$ast$



including a space after the a to make sure it sorts at the beginning.



i've been compiling a set of notes on how to prepare a "clean" index, presenting tactics for avoiding all the problems i've seen in my experience as author technical support for the ams; when it's ready for general consumption, it will be posted on the ams web site for general reference, and i'll update this answer with a link.



Addendum:

(1) Regarding the index sort: Remember that the sorting is parallel at each level, so if a symbol is subsidiary to another entry, a sort field needs to be provided at the relevant level. Say you have this two-level entry with multiple sub-entries at the second level:




Entry

  First sub-entry

  Omega (the symbol)




Assuming you want the sub-entries in alphabetical order, you should enter the second sub-entry as



indexEntry!Omega@$Omega$


otherwise it will be sorted before the first sub-entry.



The same principle applies at the third level, if your index entries are nested that deeply.



(2) Between the time of the original answer and this addendum, I have retired, and there is no longer any question that an answer might be the "official" position of my employer. Hence any posting by me will now be in "proper" upper- and lowercase.



There is another consequence implied here. The notes I was compiling on preparing a "clean" index weren't completed before I left AMS. I do intend to complete them, but it's not certain that they will be posted on the AMS web site. They will, however, be posted to CTAN and I'll give a link when this happens.






share|improve this answer




















  • 1





    Makeindex knows a section for symbols before the letter A. Therefore I would start the sort key with a symbol, if the symbols should be sorted in the symbol section: index$asterisk@$ast$, index$colon@:, …

    – Heiko Oberdiek
    Aug 22 '12 at 13:52






  • 4





    Were the notes ever published?

    – Yiannis Lazarides
    Jun 26 '15 at 7:20






  • 1





    @YiannisLazarides -- sadly, it's still on my "to do" list, er, pushdown stack. it'll come to the surface sometime, but right now, i can't predict when.

    – barbara beeton
    Jun 26 '15 at 12:25






  • 2





    @barbarabeeton Will be looking forward to it :)

    – Eivind Dahl
    Jun 26 '15 at 12:35






  • 1





    @EivindDahl -- still working; new developments in the glossaries area have caused me to rethink this area. (please keep nagging.)

    – barbara beeton
    Jun 1 '18 at 12:47











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f68240%2findex-ordering-when-using-math-symbols%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









18














you need to give these entries a sort field. you've actually chosen the easiest approach, sorting them in with the alphabetic entries. egreg has provided good examples for the first two:



indexk@$k$ and indexc@$mathcalC$



my suggestion for the * is



indexa sterisk@$ast$



including a space after the a to make sure it sorts at the beginning.



i've been compiling a set of notes on how to prepare a "clean" index, presenting tactics for avoiding all the problems i've seen in my experience as author technical support for the ams; when it's ready for general consumption, it will be posted on the ams web site for general reference, and i'll update this answer with a link.



Addendum:

(1) Regarding the index sort: Remember that the sorting is parallel at each level, so if a symbol is subsidiary to another entry, a sort field needs to be provided at the relevant level. Say you have this two-level entry with multiple sub-entries at the second level:




Entry

  First sub-entry

  Omega (the symbol)




Assuming you want the sub-entries in alphabetical order, you should enter the second sub-entry as



indexEntry!Omega@$Omega$


otherwise it will be sorted before the first sub-entry.



The same principle applies at the third level, if your index entries are nested that deeply.



(2) Between the time of the original answer and this addendum, I have retired, and there is no longer any question that an answer might be the "official" position of my employer. Hence any posting by me will now be in "proper" upper- and lowercase.



There is another consequence implied here. The notes I was compiling on preparing a "clean" index weren't completed before I left AMS. I do intend to complete them, but it's not certain that they will be posted on the AMS web site. They will, however, be posted to CTAN and I'll give a link when this happens.






share|improve this answer




















  • 1





    Makeindex knows a section for symbols before the letter A. Therefore I would start the sort key with a symbol, if the symbols should be sorted in the symbol section: index$asterisk@$ast$, index$colon@:, …

    – Heiko Oberdiek
    Aug 22 '12 at 13:52






  • 4





    Were the notes ever published?

    – Yiannis Lazarides
    Jun 26 '15 at 7:20






  • 1





    @YiannisLazarides -- sadly, it's still on my "to do" list, er, pushdown stack. it'll come to the surface sometime, but right now, i can't predict when.

    – barbara beeton
    Jun 26 '15 at 12:25






  • 2





    @barbarabeeton Will be looking forward to it :)

    – Eivind Dahl
    Jun 26 '15 at 12:35






  • 1





    @EivindDahl -- still working; new developments in the glossaries area have caused me to rethink this area. (please keep nagging.)

    – barbara beeton
    Jun 1 '18 at 12:47















18














you need to give these entries a sort field. you've actually chosen the easiest approach, sorting them in with the alphabetic entries. egreg has provided good examples for the first two:



indexk@$k$ and indexc@$mathcalC$



my suggestion for the * is



indexa sterisk@$ast$



including a space after the a to make sure it sorts at the beginning.



i've been compiling a set of notes on how to prepare a "clean" index, presenting tactics for avoiding all the problems i've seen in my experience as author technical support for the ams; when it's ready for general consumption, it will be posted on the ams web site for general reference, and i'll update this answer with a link.



Addendum:

(1) Regarding the index sort: Remember that the sorting is parallel at each level, so if a symbol is subsidiary to another entry, a sort field needs to be provided at the relevant level. Say you have this two-level entry with multiple sub-entries at the second level:




Entry

  First sub-entry

  Omega (the symbol)




Assuming you want the sub-entries in alphabetical order, you should enter the second sub-entry as



indexEntry!Omega@$Omega$


otherwise it will be sorted before the first sub-entry.



The same principle applies at the third level, if your index entries are nested that deeply.



(2) Between the time of the original answer and this addendum, I have retired, and there is no longer any question that an answer might be the "official" position of my employer. Hence any posting by me will now be in "proper" upper- and lowercase.



There is another consequence implied here. The notes I was compiling on preparing a "clean" index weren't completed before I left AMS. I do intend to complete them, but it's not certain that they will be posted on the AMS web site. They will, however, be posted to CTAN and I'll give a link when this happens.






share|improve this answer




















  • 1





    Makeindex knows a section for symbols before the letter A. Therefore I would start the sort key with a symbol, if the symbols should be sorted in the symbol section: index$asterisk@$ast$, index$colon@:, …

    – Heiko Oberdiek
    Aug 22 '12 at 13:52






  • 4





    Were the notes ever published?

    – Yiannis Lazarides
    Jun 26 '15 at 7:20






  • 1





    @YiannisLazarides -- sadly, it's still on my "to do" list, er, pushdown stack. it'll come to the surface sometime, but right now, i can't predict when.

    – barbara beeton
    Jun 26 '15 at 12:25






  • 2





    @barbarabeeton Will be looking forward to it :)

    – Eivind Dahl
    Jun 26 '15 at 12:35






  • 1





    @EivindDahl -- still working; new developments in the glossaries area have caused me to rethink this area. (please keep nagging.)

    – barbara beeton
    Jun 1 '18 at 12:47













18












18








18







you need to give these entries a sort field. you've actually chosen the easiest approach, sorting them in with the alphabetic entries. egreg has provided good examples for the first two:



indexk@$k$ and indexc@$mathcalC$



my suggestion for the * is



indexa sterisk@$ast$



including a space after the a to make sure it sorts at the beginning.



i've been compiling a set of notes on how to prepare a "clean" index, presenting tactics for avoiding all the problems i've seen in my experience as author technical support for the ams; when it's ready for general consumption, it will be posted on the ams web site for general reference, and i'll update this answer with a link.



Addendum:

(1) Regarding the index sort: Remember that the sorting is parallel at each level, so if a symbol is subsidiary to another entry, a sort field needs to be provided at the relevant level. Say you have this two-level entry with multiple sub-entries at the second level:




Entry

  First sub-entry

  Omega (the symbol)




Assuming you want the sub-entries in alphabetical order, you should enter the second sub-entry as



indexEntry!Omega@$Omega$


otherwise it will be sorted before the first sub-entry.



The same principle applies at the third level, if your index entries are nested that deeply.



(2) Between the time of the original answer and this addendum, I have retired, and there is no longer any question that an answer might be the "official" position of my employer. Hence any posting by me will now be in "proper" upper- and lowercase.



There is another consequence implied here. The notes I was compiling on preparing a "clean" index weren't completed before I left AMS. I do intend to complete them, but it's not certain that they will be posted on the AMS web site. They will, however, be posted to CTAN and I'll give a link when this happens.






share|improve this answer















you need to give these entries a sort field. you've actually chosen the easiest approach, sorting them in with the alphabetic entries. egreg has provided good examples for the first two:



indexk@$k$ and indexc@$mathcalC$



my suggestion for the * is



indexa sterisk@$ast$



including a space after the a to make sure it sorts at the beginning.



i've been compiling a set of notes on how to prepare a "clean" index, presenting tactics for avoiding all the problems i've seen in my experience as author technical support for the ams; when it's ready for general consumption, it will be posted on the ams web site for general reference, and i'll update this answer with a link.



Addendum:

(1) Regarding the index sort: Remember that the sorting is parallel at each level, so if a symbol is subsidiary to another entry, a sort field needs to be provided at the relevant level. Say you have this two-level entry with multiple sub-entries at the second level:




Entry

  First sub-entry

  Omega (the symbol)




Assuming you want the sub-entries in alphabetical order, you should enter the second sub-entry as



indexEntry!Omega@$Omega$


otherwise it will be sorted before the first sub-entry.



The same principle applies at the third level, if your index entries are nested that deeply.



(2) Between the time of the original answer and this addendum, I have retired, and there is no longer any question that an answer might be the "official" position of my employer. Hence any posting by me will now be in "proper" upper- and lowercase.



There is another consequence implied here. The notes I was compiling on preparing a "clean" index weren't completed before I left AMS. I do intend to complete them, but it's not certain that they will be posted on the AMS web site. They will, however, be posted to CTAN and I'll give a link when this happens.







share|improve this answer














share|improve this answer



share|improve this answer








edited 2 mins ago

























answered Aug 22 '12 at 13:36









barbara beetonbarbara beeton

70.1k9159380




70.1k9159380







  • 1





    Makeindex knows a section for symbols before the letter A. Therefore I would start the sort key with a symbol, if the symbols should be sorted in the symbol section: index$asterisk@$ast$, index$colon@:, …

    – Heiko Oberdiek
    Aug 22 '12 at 13:52






  • 4





    Were the notes ever published?

    – Yiannis Lazarides
    Jun 26 '15 at 7:20






  • 1





    @YiannisLazarides -- sadly, it's still on my "to do" list, er, pushdown stack. it'll come to the surface sometime, but right now, i can't predict when.

    – barbara beeton
    Jun 26 '15 at 12:25






  • 2





    @barbarabeeton Will be looking forward to it :)

    – Eivind Dahl
    Jun 26 '15 at 12:35






  • 1





    @EivindDahl -- still working; new developments in the glossaries area have caused me to rethink this area. (please keep nagging.)

    – barbara beeton
    Jun 1 '18 at 12:47












  • 1





    Makeindex knows a section for symbols before the letter A. Therefore I would start the sort key with a symbol, if the symbols should be sorted in the symbol section: index$asterisk@$ast$, index$colon@:, …

    – Heiko Oberdiek
    Aug 22 '12 at 13:52






  • 4





    Were the notes ever published?

    – Yiannis Lazarides
    Jun 26 '15 at 7:20






  • 1





    @YiannisLazarides -- sadly, it's still on my "to do" list, er, pushdown stack. it'll come to the surface sometime, but right now, i can't predict when.

    – barbara beeton
    Jun 26 '15 at 12:25






  • 2





    @barbarabeeton Will be looking forward to it :)

    – Eivind Dahl
    Jun 26 '15 at 12:35






  • 1





    @EivindDahl -- still working; new developments in the glossaries area have caused me to rethink this area. (please keep nagging.)

    – barbara beeton
    Jun 1 '18 at 12:47







1




1





Makeindex knows a section for symbols before the letter A. Therefore I would start the sort key with a symbol, if the symbols should be sorted in the symbol section: index$asterisk@$ast$, index$colon@:, …

– Heiko Oberdiek
Aug 22 '12 at 13:52





Makeindex knows a section for symbols before the letter A. Therefore I would start the sort key with a symbol, if the symbols should be sorted in the symbol section: index$asterisk@$ast$, index$colon@:, …

– Heiko Oberdiek
Aug 22 '12 at 13:52




4




4





Were the notes ever published?

– Yiannis Lazarides
Jun 26 '15 at 7:20





Were the notes ever published?

– Yiannis Lazarides
Jun 26 '15 at 7:20




1




1





@YiannisLazarides -- sadly, it's still on my "to do" list, er, pushdown stack. it'll come to the surface sometime, but right now, i can't predict when.

– barbara beeton
Jun 26 '15 at 12:25





@YiannisLazarides -- sadly, it's still on my "to do" list, er, pushdown stack. it'll come to the surface sometime, but right now, i can't predict when.

– barbara beeton
Jun 26 '15 at 12:25




2




2





@barbarabeeton Will be looking forward to it :)

– Eivind Dahl
Jun 26 '15 at 12:35





@barbarabeeton Will be looking forward to it :)

– Eivind Dahl
Jun 26 '15 at 12:35




1




1





@EivindDahl -- still working; new developments in the glossaries area have caused me to rethink this area. (please keep nagging.)

– barbara beeton
Jun 1 '18 at 12:47





@EivindDahl -- still working; new developments in the glossaries area have caused me to rethink this area. (please keep nagging.)

– barbara beeton
Jun 1 '18 at 12:47

















draft saved

draft discarded
















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f68240%2findex-ordering-when-using-math-symbols%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"

Haugesund Nexus externi | Tabula navigationisHaugesund pagina interretialisAmplifica