Edición del título de la bibliografía.

Edición del título de la bibliografía.

Tengo un problema con \bibliography{}la titulación automática de comandos.

Latex supone que el título es como \section{*}\\ References, pero \section*{References}es necesario.

Aquí está la imagen del problema. ingrese la descripción de la imagen aquí

Aquí está el archivo de estilo.

\ProvidesPackage{chsu}[2019/08/16 chsu Style Package]
\RequirePackage{amsmath,amssymb,amsfonts,amsthm} %различные математические пакеты

\RequirePackage[utf8]{inputenc} %кодировка символов
\RequirePackage[T1,T2A]{fontenc} %кодировка шрифтов (T1 - латин, T2A - кирил)
\RequirePackage[english,russian]{babel} %русский и английский языки в документе, переносы

\RequirePackage[
    left=2.5cm,
    right=1.5cm,
    top=2cm,
    bottom=2cm
]{geometry} %поля страницы

\RequirePackage{setspace} %для разных разметок
\onehalfspacing %полуторный интерлиньяж

\RequirePackage{indentfirst} %первая строка абзаца всегда красная
\parindent = 1.25cm %абзацный отступ

\RequirePackage{enumitem} %пакет для списков
\setlist[enumerate,itemize]{leftmargin=1.87cm,nosep,noitemsep} %списки выравниваются по абзацу
\renewcommand\labelitemi{---} %вместо точки у списков будет тире

\RequirePackage{color} %цвета в pdf (для ссылок)
\RequirePackage[pdfhighlight=/I,colorlinks=true]{hyperref} %ссылки в pdf
\RequirePackage[all]{hypcap} %по ссылке переносит на рисунок, а не название
\RequirePackage[nottoc]{tocbibind} %добавляет библиографию в содержание

\renewcommand{\section}{\@startsection{section}{1}{0pt}
        {1.3pt}
        {1.3pt}
        {\centering\hyphenpenalty=10000\normalfont\bfseries}
} % заголовок по ГОСТ

\renewcommand{\subsection}{\@startsection{subsection}{2}{0pt}
        {1.3pt}
        {1.3pt}
        {\centering\hyphenpenalty=10000\normalfont\bfseries}
} % подзаголовок по ГОСТ

\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{0pt}
        {1.3pt}
        {1.3pt}
        {\centering\hyphenpenalty=10000\normalfont\bfseries}
} % подподзаголовок по ГОСТ

\def\capfigure{figure} %заменяет знак в названии рисунка точку на тире
\def\captable{table}
\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \ifx\@captype\capfigure
      \centering #1~---~#2 \par
  \else
      #1~---~#2 \par
  \fi
  \vskip\belowcaptionskip}

\addto\captionsrussian{\def\figurename{Рисунок}} %вместо рис. - рисунок (ГОСТ)
\renewcommand{\thefigure}{\thesection.\arabic{figure}} %сквозная нумерация рисунков

\newtheoremstyle{forthm} %стиль для теорем
    {0em}
    {0em}
    {\itshape}
    {1.25cm}
    {\bfseries}
    { \normalfont{---} }
    {0em}
    {}

\theoremstyle{forthm} %обозначение, что теоремы будут с этим стилем
\newtheorem{theorem}{Теорема}[section] %команда для теоремы        
\newtheorem{lemmma}{Лемма}[section] %команда для леммы

\newtheoremstyle{fordefn} %стиль для определений
    {0em}
    {0em}
    {}
    {1.25cm}
    {\bfseries}
    { \normalfont{---} }
    {0em}
    {}
\theoremstyle{fordefn} %обозначение, что определения будут с этим стилем
\newtheorem{definition}{Определение}[section] %команда для определения
\newtheorem{prop}{Утверждение}[section] %команда для утверждения

\newcommand{\hm}[1]{#1\nobreak\discretionary{}{\hbox{\ensuremath{#1}}}{}}       %команда делает повторение символа в строчной формуле

\endinput

Respuesta1

El MWE reducido

\documentclass{article}
\usepackage{amsmath}

\makeatletter
\renewcommand{\section}{\@startsection{section}{1}{0pt}
        {1.3pt}
        {1.3pt}
        {\centering\hyphenpenalty=10000\normalfont\bfseries}
}
\makeatother

\begin{document}
\section*{Foo}
\end{document}

reproduce el problema que usted describe

1 *//Foo

El problema aquí es un espacio espurio al final de la redefinición de \section. El carácter de final de línea desprotegido producirá un espacio no deseado que causará estragos en sus titulares si utiliza el formulario destacado. Una definición correcta sería

\renewcommand{\section}{\@startsection{section}{1}{0pt}
        {1.3pt}
        {1.3pt}
        {\centering\hyphenpenalty=10000\normalfont\bfseries}}

o

\renewcommand{\section}{\@startsection{section}{1}{0pt}
        {1.3pt}
        {1.3pt}
        {\centering\hyphenpenalty=10000\normalfont\bfseries}%
}

Todos los \sectioncomandos -like chsuse ven afectados y deben corregirse. Si es posible, informe este error al responsable de la clase/paquete.

Con la versión fija el resultado es

foo

como se esperaba.

información relacionada