LaTeX forum ⇒ Page LayoutBibliography title problem

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
dsplib
Posts: 3
Joined: Fri Jun 15, 2018 2:33 pm

Bibliography title problem

Postby dsplib » Sun May 12, 2019 3:35 pm

Dear all!

I cannot to understand why I have chapter title in bibliography reference page?
Code:

  1. \documentclass[10pt]{book}
  2. \usepackage{amsmath,amssymb}
  3. \usepackage{mathtext}
  4. \usepackage[T1,T2A]{fontenc}
  5. \usepackage[utf8]{inputenc}
  6. \usepackage[russian, english]{babel}
  7. \usepackage{graphicx}
  8. \usepackage{indentfirst} % Красная строка
  9. \usepackage{float}
  10. \usepackage{mathabx}
  11. \usepackage{wrapfig}
  12. \usepackage{amsthm}
  13. \usepackage{cite}
  14.  
  15. \usepackage{section}
  16. \setlength{\secindent}{\parindent}
  17. \setlength{\subindent}{\parindent}
  18.  
  19.  
  20. \usepackage[figurename=Рисунок]{caption}
  21. \DeclareCaptionLabelSeparator{defffis}{ }
  22. \captionsetup[figure]{justification=centering, labelfont=it,textfont={it},labelsep=space, font = small}
  23. \renewcommand{\figurename}{Рисунок}
  24.  
  25.  
  26. \numberwithin{equation}{section}
  27. \numberwithin{figure}{section}
  28.  
  29.  
  30. \usepackage{geometry}
  31. \geometry{
  32. a5paper,
  33. left=14mm,
  34. top=20mm,
  35. right=14mm,
  36. bottom=20mm,
  37. }
  38.  
  39. \binoppenalty=10000
  40. \relpenalty=10000
  41.  
  42.  
  43. \usepackage{tocloft}
  44.  
  45. \cftsetindents{section}{1em}{2em}
  46. \cftsetindents{subsection}{2em}{3em}
  47.  
  48. %\renewcommand\cfttoctitlefont{\hfill\Large\bfseries}
  49. \renewcommand\cftaftertoctitle{\hfill\mbox{}}
  50. \setcounter{tocdepth}{2}
  51.  
  52.  
  53. \usepackage[raggedright]{titlesec}
  54. \titlespacing{\chapter}{\parindent}{3em}{3em}
  55. \titlespacing{\section}{\parindent}{1em}{1em}
  56. \titlespacing{\subsection}{\parindent}{1em}{1em}
  57.  
  58.  
  59. \renewcommand{\leq}{\leqslant} % не забывайте про необходимость \usepackage{amssymb}!
  60. \renewcommand{\geq}{\geqslant}
  61.  
  62.  
  63. \usepackage{etoolbox}
  64.  
  65. \makeatletter
  66. \patchcmd{\ttlh@hang}{\parindent\z@}{\parindent\z@\leavevmode}{}{}
  67. \patchcmd{\ttlh@hang}{\noindent}{}{}{}
  68. \makeatother
  69.  
  70. \usepackage{fancyhdr}
  71. \pagestyle{fancy}
  72. \fancyhead{}
  73. \fancyfoot{}
  74.  
  75. \fancyhead[LE]{\slshape \leftmark }
  76. \fancyhead[RO]{\slshape \rightmark}
  77. \fancyfoot[C]{\thepage}
  78.  
  79.  
  80. \usepackage{nomencl}
  81. \makenomenclature
  82.  
  83. \captionsetup{justification=raggedright,singlelinecheck=false}
  84.  
  85. \newif\iftex
  86.  
  87. \textrue
  88.  
  89.  
  90. \begin{document}
  91.  
  92.  
  93.  
  94. \tableofcontents
  95.  
  96.  
  97. \sloppy{
  98. \chapter{Chapter}
  99. Citation: \cite{SHANNON1948}
  100. \chapter{One more chapter}
  101. Citation: \cite{SHANNON1949} or \cite{WHITTAKER1915}
  102.  
  103. \footnotesize{
  104. \addcontentsline{toc}{chapter}{Bibliography}
  105. \bibliography{bib_forum}{}
  106. \bibliographystyle{plain}
  107. }
  108. }
  109.  
  110. \end{document}


And after compilation on the last page I have follow
1.png
1.png (35.87 KiB) Viewed 135 times


How to remove chapter 2 title from this page?

bib-file:

  1. @Article{SHANNON1948,
  2. author = {C. E. {Shannon}},
  3. title = {A mathematical theory of communication},
  4. journal = {The Bell System Technical Journal},
  5. year = {1948},
  6. volume = {27},
  7. number = {4},
  8. pages = {623-656},
  9. month = {Oct},
  10. issn = {0005-8580},
  11. doi = {10.1002/j.1538-7305.1948.tb00917.x},
  12. }
  13.  
  14.  
  15. @Article{SHANNON1949,
  16. author = {Shannon, C.},
  17. title = {Communication in the presence of noise},
  18. journal = {Proceedings of the Institute of Radio Engineers},
  19. year = {1949},
  20. volume = {37},
  21. number = {1},
  22. pages = {10-–21},
  23. month = {Jan},
  24. }
  25.  
  26.  
  27. @Article{WHITTAKER1915,
  28. author = {Whittaker, E.},
  29. title = {XVIII.— On the Functions which are represented by the Expansions of the Interpolation Theory},
  30. journal = {Proceedings of the Royal Society of Edinburgh},
  31. year = {1915},
  32. volume = {35},
  33. pages = {181--194},
  34. doi = {10.1017/S0370164600017806},
  35. }


Thanks!

rais
Posts: 197
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Sun May 12, 2019 8:08 pm

try loading the section package after the titlesec package.

KR
Rainer


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 2 guests