Page LayoutBibliography title problem

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

Bibliography title problem

Post by dsplib »

Dear all!

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

Code: Select all

\documentclass[10pt]{book}
\usepackage{amsmath,amssymb}
\usepackage{mathtext}
\usepackage[T1,T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian, english]{babel}
\usepackage{graphicx}
\usepackage{indentfirst} % Красная строка
\usepackage{float}
\usepackage{mathabx}
\usepackage{wrapfig}
\usepackage{amsthm}
\usepackage{cite}

\usepackage{section}
\setlength{\secindent}{\parindent}
\setlength{\subindent}{\parindent}


\usepackage[figurename=Рисунок]{caption}
\DeclareCaptionLabelSeparator{defffis}{ }
\captionsetup[figure]{justification=centering, labelfont=it,textfont={it},labelsep=space, font = small}
\renewcommand{\figurename}{Рисунок}


\numberwithin{equation}{section}
\numberwithin{figure}{section}


\usepackage{geometry}
\geometry{
	a5paper,
	left=14mm,
	top=20mm,
	right=14mm,
	bottom=20mm,
}

\binoppenalty=10000
\relpenalty=10000


\usepackage{tocloft}

\cftsetindents{section}{1em}{2em}
\cftsetindents{subsection}{2em}{3em}

%\renewcommand\cfttoctitlefont{\hfill\Large\bfseries}
\renewcommand\cftaftertoctitle{\hfill\mbox{}}
\setcounter{tocdepth}{2}


\usepackage[raggedright]{titlesec}
\titlespacing{\chapter}{\parindent}{3em}{3em}
\titlespacing{\section}{\parindent}{1em}{1em}
\titlespacing{\subsection}{\parindent}{1em}{1em}


\renewcommand{\leq}{\leqslant} % не забывайте про необходимость \usepackage{amssymb}!
\renewcommand{\geq}{\geqslant}


\usepackage{etoolbox}

\makeatletter
\patchcmd{\ttlh@hang}{\parindent\z@}{\parindent\z@\leavevmode}{}{}
\patchcmd{\ttlh@hang}{\noindent}{}{}{}
\makeatother

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}

\fancyhead[LE]{\slshape \leftmark }
\fancyhead[RO]{\slshape \rightmark}
\fancyfoot[C]{\thepage}


\usepackage{nomencl}
\makenomenclature   

\captionsetup{justification=raggedright,singlelinecheck=false}

\newif\iftex

\textrue


\begin{document}



\tableofcontents


\sloppy{
\chapter{Chapter}
Citation: \cite{SHANNON1948}
\chapter{One more chapter}
Citation: \cite{SHANNON1949} or \cite{WHITTAKER1915}

\footnotesize{
\addcontentsline{toc}{chapter}{Bibliography}
\bibliography{bib_forum}{}
\bibliographystyle{plain}
}
}

\end{document}
And after compilation on the last page I have follow
1.png
1.png (35.87 KiB) Viewed 1887 times
How to remove chapter 2 title from this page?

bib-file:

Code: Select all

@Article{SHANNON1948,
  author  = {C. E. {Shannon}},
  title   = {A mathematical theory of communication},
  journal = {The Bell System Technical Journal},
  year    = {1948},
  volume  = {27},
  number  = {4},
  pages   = {623-656},
  month   = {Oct},
  issn    = {0005-8580},
  doi     = {10.1002/j.1538-7305.1948.tb00917.x},
}


@Article{SHANNON1949,
  author  = {Shannon, C.},
  title   = {Communication in the presence of noise},
  journal = {Proceedings of the Institute of Radio Engineers},
  year    = {1949},
  volume  = {37},
  number  = {1},
  pages   = {10-–21},
  month   = {Jan},
}


@Article{WHITTAKER1915,
  author  = {Whittaker, E.},
  title   = {XVIII.— On the Functions which are represented by the Expansions of the Interpolation Theory},
  journal = {Proceedings of the Royal Society of Edinburgh},
  year    = {1915},
  volume  = {35},
  pages   = {181--194},
  doi     = {10.1017/S0370164600017806},
}
Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Bibliography title problem

Post by rais »

try loading the section package after the titlesec package.

KR
Rainer
Post Reply