I use Texmker 4.1 and Texlive 2013 in my Xubuntu. I use this system to write my teacher's book with the AMS package (gsm in fact), which is in Vietnamese. There is a problem in sorting the index, it did not display the order correctly, and some indices were missed. I have searched on Tex Stack Exchange, there are indeed two topic about this kind of problem ( here and here ), but the solution there did not work in my case.
Here is the MWE:
\documentclass{gsm-l}
\usepackage[papersize={160mm,240mm},inner=20mm, outer=15mm, vmargin=15mm]{geometry}
\geometry{includeheadfoot}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{amsmath,enumitem}% http://ctan.org/pkg/{amsmath,enumitem}
\setlist[enumerate]{leftmargin=*}
\usepackage[utf8]{vietnam}
\usepackage{makeidx}
\makeindex
\begin{document}
\chapter{Hello}
This is the MWE
\index{Đồng biến}
\index{Nghịch biến}
\index{Dao động điều hòa}
\index{Ếch}
\index{Alphabetical}
\index{Albert Einstein}
\index{Bổ đề}
\index{Đường thẳng}
\index{Chương}
\printindex
\end{document}
Makeindex command in the terminal will produce the Index sorting like this :
Ếch>Đồng biến>Đường thẳng>Albert Einstein>Alphabetical>Bổ đề>Chương>Dao động điều hòa>Nghịch biến.
This is not the sorting I want as in Vietnamese, it should be like this
Albert Einstein>Alphabetical>Bổ đề>Chương>Dao động điều hòa>Đồng biến>Đường thẳng>Ếch
Please help me. Thanks.
xindyrather thanmakeindexasmakeindexis hard-coded for English. If those answers don't solve your problem, usingmakeindexcertainly won't. It might be easier to say in what way those solutions didn't work. (For example, is the problem that you can't getxindyto work?) – Nicola Talbot Jan 08 '14 at 09:43xindydid not work, I have said above. It removed the utf8 encoded like Ê, Đ. It also changed the header style of the Index page, therefore I asked the new question. – trequartista Jan 08 '14 at 09:52makeindex. It would be better if you edited your question to show how you tried to create the index usingxindy(for example, did you usexindydirectly or did you usetexindyand what were the arguments). Also it might help if you added the contents of the.idxfile (so we can see if the utf8 characters were correctly written to the index file) and the.ilg(so we can see if there were any error messages or warnings). – Nicola Talbot Jan 08 '14 at 10:02gsmstyle. it has an index page style that is quite "nonstandard" and incompatible with all index packages except foramsmidx. (amsmidxwas built to avoid messing up this special page layout, and at the moment, i am trying to devise a modification toimakeidxto correct the problem, sinceimakeidxis superior toamsmidx.) it may be possible to patchxindyortexindyto fix the page layout problem withgsm, but otherwise the only (unpleasant) approach i can see is to insert sort fields for the index terms. – barbara beeton Jan 08 '14 at 13:46