Как добавить точку для нумерации разделов / подразделов в TeX

8563
sahwar

Болгарское стандартное форматирование нумерации разделов / подразделов выглядит следующим образом:
1. Раздел 1
1.1. Подраздел 1.1.
2. Раздел 2
2.1. Подраздел 2.1.

Обратите внимание, что и раздел, и подраздел имеют точку после числа. Ну, я пробовал \ section и \ subsection в TeX, и нумерация форматирования по умолчанию без точек (это американский стиль, если я не ошибаюсь, в то время как европейский стандарт с точками после номера раздела / подраздела).

Как добавить точку после раздела / подраздела, чтобы она выглядела как принадлежащая разделу / подразделу, а не после пробела после номера раздела / подраздела?

Заранее спасибо за ответы!

0

2 ответа на вопрос

0
sahwar

This question is answered over at tex.stackexchange.com

There are 4 ways to solve this:

  1. titlesec package:

    \usepackage \titlelabel{\thetitle.\quad} 
  2. You can use the secdot package:

    \documentclass \usepackage \begin \chapter \section \end 

    The package documentation is your friend. The following adds a dot after the subsection number(s):

    Example:

    \documentclass \usepackage \sectiondot \begin \section \subsection \end 
  3. If you want that in all places the section number appears as "1.1.", also in cross references, the question is settled quite easily:

    \renewcommand{\thechapter}{\arabic.} \renewcommand{\thesection}{\thechapter\arabic.} 

    (in this case you would also change chapter numbers, for uniformity).

    If you want only the number in the section title to be followed by a period, then you can follow Alan's good suggestion or delve into the internals (see the FAQ entry for more information):

    \makeatletter \renewcommand{\@seccntformat}[1]{\csname the#1\endcsname.\quad} \makeatother 

    This will change the format of all the sectional units also below \section. You might prefer the titlesec way to get more control on the appearance of the section headings.

  4. If you use Komascript you may use the option numbers=endperiod.

    Example:

    \documentclass[11pt,english,numbers=endperiod] \usepackage \usepackage \begin \tableofcontents \blinddocument \end 
0
baghermasoudi

Используйте -{}после вашего раздела или подразделов или .{}после разделов или подразделов следующим образом:

\renewcommand{\thesection}{\arabic-\arabic-{}} \renewcommand{\thesubsection}{\arabic-\arabic-\arabic-{}} \renewcommand{\thefigure}{\arabic-\arabic-{}} \renewcommand{\thetable}{\arabic-\arabic-{}} 

Похожие вопросы