LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and AcronymsGlossary with Page Breaks in Presentation Topic is solved

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
mafis103
Posts: 7
Joined: Sat Feb 23, 2013 9:29 am

Glossary with Page Breaks in Presentation

Postby mafis103 » Sat Mar 16, 2013 7:42 pm

Hi everyone,

I have got the following problem: I am using the beamer class and added an index with datagidx from datatool. When I add a lot of indexes, the pages don't break and the indexes flow over the frame (see example).

Is there any solution for that?

  1. \documentclass[16pt,pdftex]{beamer}
  2.  
  3. \makeatletter
  4. % beamer doesn't define \@idxitem, but it's used by the
  5. % \printterms "index" style, so define it:
  6. \newcommand\@idxitem{\par\hangindent40pt}
  7. \makeatother
  8.  
  9. \usepackage{datagidx}
  10.  
  11. \newgidx{index}{Index}
  12. \DTLgidxSetDefaultDB{index}
  13.  
  14. \newterm{taindex}
  15. \newterm{waindex}
  16. \newterm[parent=waindex]{ssubaz}
  17. \newterm{zbzindex}
  18. \newterm[parent=zbzindex]{isubbu}
  19. \newterm{ezzz}
  20. \newterm[parent=ezzz]{ezsubaz}
  21. \newterm{ezzbindex}
  22. \newterm[parent=ezzbindex]{uzsubbu}
  23. \newterm{binden}
  24. \newterm{aindex}
  25. \newterm[parent=aindex]{suba2}
  26. \newterm{bindex}
  27. \newterm[parent=bindex]{subb2}
  28. \newterm{cindex}
  29. \newterm{dindex}
  30. \newterm{eindex}
  31. \newterm{findex}
  32. \newterm{gindex}
  33. \newterm{hindex}
  34. \newterm{iindex}
  35. \newterm{jindex}
  36. \newterm{kindex}
  37. \newterm{dindex2}
  38. \newterm{eindex2}
  39. \newterm{findex2}
  40. \newterm{gindex2}
  41. \newterm{hindex2}
  42. \newterm{iindex2}
  43. \newterm{jindex2}
  44. \newterm{kindex2}
  45. \newterm{dindex3}
  46. \newterm{eindex3}
  47. \newterm{findex3}
  48. \newterm{gindex3}
  49. \newterm{hindex3}
  50. \newterm{iindex3}
  51. \newterm{jindex3}
  52. \newterm{kindex3}
  53.  
  54. \begin{document}
  55.  
  56. \begin{frame}
  57. \frametitle{TableOfContents}
  58. \tableofcontents
  59. \end{frame}
  60.  
  61. \begin{frame}
  62. \frametitle{Part1SecA}
  63. test \gls{taindex} \gls{ssubaz}
  64. \gls{isubbu}
  65. \end{frame}
  66.  
  67. \begin{frame}
  68. \frametitle{Part1SecA}
  69. % Make the next term have a bold page number in the index:
  70. test \gls{[textbf]taindex}
  71. \gls{ezsubaz}
  72. \gls{dindex}
  73. \gls{eindex}
  74. \gls{findex}
  75. \gls{gindex}
  76. \gls{hindex}
  77. \gls{iindex}
  78. \gls{jindex}
  79. \gls{kindex}
  80. \gls{uzsubbu}
  81. \gls{dindex2}
  82. \gls{eindex2}
  83. \gls{findex2}
  84. \gls{gindex2}
  85. \gls{hindex2}
  86. \gls{iindex2}
  87. \gls{jindex2}
  88. \gls{kindex2}
  89. \gls{dindex3}
  90. \gls{eindex3}
  91. \gls{findex3}
  92. \gls{gindex3}
  93. \gls{hindex3}
  94. \gls{iindex3}
  95. \gls{jindex3}
  96. \gls{kindex3}
  97. \end{frame}
  98.  
  99. \begin{frame}
  100. \frametitle{Part2SecB}
  101. test \gls{binden}\gls{suba2}
  102. \gls{subb2}
  103. \end{frame}
  104.  
  105. \begin{frame}[allowframebreaks]
  106. \frametitle{Index}
  107. \printterms[style=index]
  108. \end{frame}
  109.  
  110. \end{document}


Thanks in advance for any hint =)
And have a nice weekend.

Tags:

User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

Postby nlct » Wed Mar 20, 2013 8:22 pm

The problem seems to be that the multicols environment doesn't work properly with \begin{frame}[allowframebreaks]. The only solution I can think of is to switch to one column mode using:
  1. \printterms[style=index,columns=1]

This will allow frame breaks, although it looks a bit odd with just one column. (\twocolumn doesn't work with beamer, so unfortunately that's not an option either.)

Regards
Nicola Talbot

mafis103
Posts: 7
Joined: Sat Feb 23, 2013 9:29 am

Postby mafis103 » Wed Mar 20, 2013 9:21 pm

Thank you very much Nicola,
that solved my problem (again ;) ).


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 1 guest