LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and AcronymsHigh Index numbers are running into the title

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
marek_step
Posts: 23
Joined: Sun Aug 19, 2012 8:48 am

High Index numbers are running into the title

Postby marek_step » Sat Aug 09, 2014 1:49 pm

Hello all!

I have a little problem with my index numbers. The high numbers are running into the titles like follows (examples of the figures list):

Beginning:

1.1. Kaolin ......................................... 23
1.2. Plagioclase feldspar ................................. 24

Ending:

13.85.ShakunagaYukioPortrait .............................. 304
13.86.Shakunaga Yukio: Large Jar (No. 1), 2013, stoneware, h. 13 x dia. 15 1/4 in. (34x39cm) ..................................... 304

And in the pdf file the last points of high numbers are under the first letter and even not separated like here in this example with copy and paste.

Could somebody give me a hint? Is this a common problem? The document class I am using is:

  1. \documentclass[twoside=false,BCOR=12mm,DIV=calc,headsepline=yes,draft=false]{scrreprt}


Best greetings


marek
Last edited by cgnieder on Wed Aug 13, 2014 6:20 pm, edited 1 time in total.
Reason: added code markup

Tags:

User avatar
Johannes_B
Site Moderator
Posts: 3517
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat Aug 09, 2014 3:18 pm

Hi Marek, you need to prepare a minimal working example so we can reproduce the problem and test possible solutions. Please follow the link to get further hints.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

marek_step
Posts: 23
Joined: Sun Aug 19, 2012 8:48 am

Postby marek_step » Sun Aug 10, 2014 9:29 am

Thank Johannes_B for your reply. I thought this is probably a known issue and I don't need a minimal example. So I made up an example; unfortunately it is a longer than expected for a "minimal" example. Sorry! At the end of the TOC you see the numbers of the chapters running into the titles like:

0.11.11.Under Chapter 11

  1. \documentclass[]{scrreprt}
  2. \usepackage[ngerman,english]{babel}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage{CJKutf8}
  5. \usepackage[T1]{fontenc}
  6.  
  7. \usepackage{makeidx}
  8. \makeindex
  9.  
  10. \begin{document}
  11.  
  12. \titlehead{test}
  13. \subject{Test of indexed Titles}
  14. \title{Test Title}
  15. \author{Test writer}
  16.  
  17. \date{\today}
  18. \publishers{Test Publisher}
  19.  
  20. \maketitle
  21.  
  22.  
  23. \tableofcontents
  24.  
  25. \part{Test Part 1}
  26.  
  27. \section{Chapter 1}
  28. \subsection{Under Chapter 1}
  29. \subsubsection{Under Chapter 1, Section 1}
  30. \subsubsection{Under Chapter 1, Section 1}
  31. \subsubsection{Under Chapter 1, Section 1}
  32. \subsection{Under Chapter 1}
  33. \subsection{Under Chapter 1}
  34. \subsection{Under Chapter 1}
  35. \subsection{Under Chapter 1}
  36. \subsection{Under Chapter 1}
  37. \subsection{Under Chapter 1}
  38. \subsection{Under Chapter 1}
  39. \subsection{Under Chapter 1}
  40. \subsection{Under Chapter 1}
  41. \subsection{Under Chapter 1}
  42. \subsubsection{Under Chapter 1, Section 11}
  43. \subsubsection{Under Chapter 1, Section 11}
  44. \subsubsection{Under Chapter 1, Section 11}
  45.  
  46. \section{Chapter 2}
  47. \subsection{Under Chapter 2}
  48. \subsubsection{Under Chapter 2, Section 1}
  49. \subsubsection{Under Chapter 2, Section 1}
  50. \subsubsection{Under Chapter 2, Section 1}
  51. \subsection{Under Chapter 2}
  52. \subsection{Under Chapter 2}
  53. \subsection{Under Chapter 2}
  54. \subsection{Under Chapter 2}
  55. \subsection{Under Chapter 2}
  56. \subsection{Under Chapter 2}
  57. \subsection{Under Chapter 2}
  58. \subsection{Under Chapter 2}
  59. \subsection{Under Chapter 2}
  60. \subsection{Under Chapter 2}
  61. \subsubsection{Under Chapter 2, Section 11}
  62. \subsubsection{Under Chapter 2, Section 11}
  63. \subsubsection{Under Chapter 2, Section 11}
  64.  
  65. \section{Chapter 3}
  66. \subsection{Under Chapter 3}
  67. \subsubsection{Under Chapter 3, Section 1}
  68. \subsubsection{Under Chapter 3, Section 1}
  69. \subsubsection{Under Chapter 3, Section 1}
  70. \subsection{Under Chapter 3}
  71. \subsection{Under Chapter 3}
  72. \subsection{Under Chapter 3}
  73. \subsection{Under Chapter 3}
  74. \subsection{Under Chapter 3}
  75. \subsection{Under Chapter 3}
  76. \subsection{Under Chapter 3}
  77. \subsection{Under Chapter 3}
  78. \subsection{Under Chapter 3}
  79. \subsection{Under Chapter 3}
  80. \subsubsection{Under Chapter 3, Section 11}
  81. \subsubsection{Under Chapter 3, Section 11}
  82. \subsubsection{Under Chapter 3, Section 11}
  83.  
  84. \section{Chapter 4}
  85. \subsection{Under Chapter 4}
  86. \subsubsection{Under Chapter 4, Section 1}
  87. \subsubsection{Under Chapter 4, Section 1}
  88. \subsubsection{Under Chapter 4, Section 1}
  89. \subsection{Under Chapter 4}
  90. \subsection{Under Chapter 4}
  91. \subsection{Under Chapter 4}
  92. \subsection{Under Chapter 4}
  93. \subsection{Under Chapter 4}
  94. \subsection{Under Chapter 4}
  95. \subsection{Under Chapter 4}
  96. \subsection{Under Chapter 4}
  97. \subsection{Under Chapter 4}
  98. \subsection{Under Chapter 4}
  99. \subsubsection{Under Chapter 4, Section 11}
  100. \subsubsection{Under Chapter 4, Section 11}
  101. \subsubsection{Under Chapter 4, Section 11}
  102.  
  103. \section{Chapter 5}
  104. \subsection{Under Chapter 5}
  105. \subsubsection{Under Chapter 5, Section 1}
  106. \subsubsection{Under Chapter 5, Section 1}
  107. \subsubsection{Under Chapter 5, Section 1}
  108. \subsection{Under Chapter 5}
  109. \subsection{Under Chapter 5}
  110. \subsection{Under Chapter 5}
  111. \subsection{Under Chapter 5}
  112. \subsection{Under Chapter 5}
  113. \subsection{Under Chapter 5}
  114. \subsection{Under Chapter 5}
  115. \subsection{Under Chapter 5}
  116. \subsection{Under Chapter 5}
  117. \subsection{Under Chapter 5}
  118. \subsubsection{Under Chapter 5, Section 11}
  119. \subsubsection{Under Chapter 5, Section 11}
  120. \subsubsection{Under Chapter 5, Section 11}
  121.  
  122. \section{Chapter 6}
  123. \subsection{Under Chapter 6}
  124. \subsubsection{Under Chapter 6, Section 1}
  125. \subsubsection{Under Chapter 6, Section 1}
  126. \subsubsection{Under Chapter 6, Section 1}
  127. \subsection{Under Chapter 6}
  128. \subsection{Under Chapter 6}
  129. \subsection{Under Chapter 6}
  130. \subsection{Under Chapter 6}
  131. \subsection{Under Chapter 6}
  132. \subsection{Under Chapter 6}
  133. \subsection{Under Chapter 6}
  134. \subsection{Under Chapter 6}
  135. \subsection{Under Chapter 6}
  136. \subsection{Under Chapter 6}
  137. \subsubsection{Under Chapter 6, Section 11}
  138. \subsubsection{Under Chapter 6, Section 11}
  139. \subsubsection{Under Chapter 6, Section 11}
  140.  
  141. \section{Chapter 7}
  142. \subsection{Under Chapter 7}
  143. \subsubsection{Under Chapter 7, Section 1}
  144. \subsubsection{Under Chapter 7, Section 1}
  145. \subsubsection{Under Chapter 7, Section 1}
  146. \subsection{Under Chapter 7}
  147. \subsection{Under Chapter 7}
  148. \subsection{Under Chapter 7}
  149. \subsection{Under Chapter 7}
  150. \subsection{Under Chapter 7}
  151. \subsection{Under Chapter 7}
  152. \subsection{Under Chapter 7}
  153. \subsection{Under Chapter 7}
  154. \subsection{Under Chapter 7}
  155. \subsection{Under Chapter 7}
  156. \subsubsection{Under Chapter 7, Section 11}
  157. \subsubsection{Under Chapter 7, Section 11}
  158. \subsubsection{Under Chapter 7, Section 11}
  159.  
  160. \section{Chapter 8}
  161. \subsection{Under Chapter 8}
  162. \subsubsection{Under Chapter 8, Section 1}
  163. \subsubsection{Under Chapter 8, Section 1}
  164. \subsubsection{Under Chapter 8, Section 1}
  165. \subsection{Under Chapter 8}
  166. \subsection{Under Chapter 8}
  167. \subsection{Under Chapter 8}
  168. \subsection{Under Chapter 8}
  169. \subsection{Under Chapter 8}
  170. \subsection{Under Chapter 8}
  171. \subsection{Under Chapter 8}
  172. \subsection{Under Chapter 8}
  173. \subsection{Under Chapter 8}
  174. \subsection{Under Chapter 8}
  175. \subsubsection{Under Chapter 8, Section 11}
  176. \subsubsection{Under Chapter 8, Section 11}
  177. \subsubsection{Under Chapter 8, Section 11}
  178.  
  179. \section{Chapter 9}
  180. \subsection{Under Chapter 9}
  181. \subsubsection{Under Chapter 9, Section 1}
  182. \subsubsection{Under Chapter 9, Section 1}
  183. \subsubsection{Under Chapter 9, Section 1}
  184. \subsection{Under Chapter 9}
  185. \subsection{Under Chapter 9}
  186. \subsection{Under Chapter 9}
  187. \subsection{Under Chapter 9}
  188. \subsection{Under Chapter 9}
  189. \subsection{Under Chapter 9}
  190. \subsection{Under Chapter 9}
  191. \subsection{Under Chapter 9}
  192. \subsection{Under Chapter 9}
  193. \subsection{Under Chapter 9}
  194. \subsubsection{Under Chapter 9, Section 11}
  195. \subsubsection{Under Chapter 9, Section 11}
  196. \subsubsection{Under Chapter 9, Section 11}
  197.  
  198. \section{Chapter 10}
  199. \subsection{Under Chapter 10}
  200. \subsubsection{Under Chapter 10, Section 1}
  201. \subsubsection{Under Chapter 10, Section 1}
  202. \subsubsection{Under Chapter 10, Section 1}
  203. \subsection{Under Chapter 10}
  204. \subsection{Under Chapter 10}
  205. \subsection{Under Chapter 10}
  206. \subsection{Under Chapter 10}
  207. \subsection{Under Chapter 10}
  208. \subsection{Under Chapter 10}
  209. \subsection{Under Chapter 10}
  210. \subsection{Under Chapter 10}
  211. \subsection{Under Chapter 10}
  212. \subsection{Under Chapter 10}
  213. \subsubsection{Under Chapter 10, Section 11}
  214. \subsubsection{Under Chapter 10, Section 11}
  215. \subsubsection{Under Chapter 10, Section 11}
  216.  
  217. \section{Chapter 11}
  218. \subsection{Under Chapter 11}
  219. \subsubsection{Under Chapter 11, Section 1}
  220. \subsubsection{Under Chapter 11, Section 1}
  221. \subsubsection{Under Chapter 11, Section 1}
  222. \subsection{Under Chapter 11}
  223. \subsection{Under Chapter 11}
  224. \subsection{Under Chapter 11}
  225. \subsection{Under Chapter 11}
  226. \subsection{Under Chapter 11}
  227. \subsection{Under Chapter 11}
  228. \subsection{Under Chapter 11}
  229. \subsection{Under Chapter 11}
  230. \subsection{Under Chapter 11}
  231. \subsection{Under Chapter 11}
  232. \subsubsection{Under Chapter 11, Section 11}
  233. \subsubsection{Under Chapter 11, Section 11}
  234. \subsubsection{Under Chapter 11, Section 11}
  235.  
  236. \end{document}
  237.  

User avatar
Johannes_B
Site Moderator
Posts: 3517
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sun Aug 10, 2014 2:19 pm

I thought you were talking about an index done with makeindex.

What you described is indeed common, and we had this a few days ago.

To sum it up, use package tocstyle.

Btw: You are loading package cjkutf8, do you know why? If not, comment it out.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

marek_step
Posts: 23
Joined: Sun Aug 19, 2012 8:48 am

Postby marek_step » Mon Aug 11, 2014 5:22 am

Thank you Johannes_B for the hint.

This package seems to be highly experimental, issuing a warning like:

Package tocstyle Warning: THIS IS AN ALPHA VERSION!
(tocstyle) USAGE OF THIS VERSION IS ON YOUR OWN RISK!
(tocstyle) EVERYTHING MAY HAPPEN!
(tocstyle) EVERYTHING MAY CHANGE IN FUTURE!
(tocstyle) THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE!
(tocstyle) Maybe it would be better, not to load this package.


And the manual is one of those, which are eating up your lifetime with some hints only for the LaTeX gurus, not mentioning one concrete example, how to implement these styles in your document. For those, who are reading this thread:

Adding this line in your preamble, seems to solve the problem:

  1. \usepackage[toctextentriesindented]{tocstyle}


But be careful: everything may happen :-) And an advice: run the pdflatex command three times!


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 1 guest