Advertisement
Guest User

Untitled

a guest
Aug 31st, 2015
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. documentclass[listof=totoc]{scrreprt}
  2.  
  3. usepackage{bookmark}
  4. bookmarksetup{
  5. open,
  6. addtohook={%
  7. ifnumbookmarkget{level}=0 %
  8. bookmarksetup{bold}%
  9. fi
  10. },
  11. }
  12.  
  13.  
  14. usepackage{graphicx}
  15. usepackage{lipsum}
  16. usepackage{mwe}
  17.  
  18. begin{document}
  19. pdfbookmark[0]{Content}{toc}
  20. tableofcontents
  21. bookmarksetupnext{bold=false}
  22. listoffigures
  23. newpage
  24.  
  25. chapter{Chapter 1}
  26. lipsum[1]
  27. begin{figure}[h]
  28. includegraphics[width=textwidth]{example-image-a}
  29. caption{I am a figurelabel{fig:one}}
  30. end{figure}
  31. section{Section 1}
  32. lipsum[1]
  33. begin{figure}[h]
  34. includegraphics[width=textwidth]{example-image-a}
  35. caption{I am a figurelabel{fig:one}}
  36. end{figure}
  37.  
  38. bookmarksetupnext{bold=false}
  39. appendix
  40. addtocontents{toc}{protectcontentsline {chapter}{Appendix}{}{}}
  41. chapter{App 1}
  42. lipsum[1]
  43. end{document}
  44.  
  45. documentclass[listof=totoc]{scrreprt}
  46.  
  47. usepackage{bookmark}
  48. bookmarksetup{
  49. open,
  50. addtohook={%
  51. ifnumbookmarkget{level}=0 %
  52. bookmarksetup{bold}%
  53. fi
  54. },
  55. }
  56.  
  57. usepackage{graphicx}
  58. usepackage{lipsum}
  59. usepackage{mwe}
  60.  
  61. begin{document}
  62. pdfbookmark[0]{Content}{toc}
  63. tableofcontents
  64. bookmarksetupnext{addtohook=bookmarksetup{bold=false}}
  65. listoffigures
  66. newpage
  67.  
  68. chapter{Chapter 1}
  69. lipsum[1]
  70. begin{figure}[h]
  71. includegraphics[width=textwidth]{example-image-a}
  72. caption{I am a figurelabel{fig:one}}
  73. end{figure}
  74. section{Section 1}
  75. lipsum[1]
  76. begin{figure}[h]
  77. includegraphics[width=textwidth]{example-image-a}
  78. caption{I am a figurelabel{fig:two}}
  79. end{figure}
  80.  
  81. bookmarksetupnext{addtohook=bookmarksetup{bold=false}}
  82. appendix
  83. addtocontents{toc}{protectcontentsline {chapter}{Appendix}{}{}}
  84. chapter{App 1}
  85. lipsum[1]
  86. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement