Как создать индивидуальный абзац?

Как создать индивидуальный абзац?

В дополнение к пронумерованным и непронумерованным параграфам (раздел, подраздел, подподраздел) я хотел бы иметь в своей диссертации несколько абзацев с отступом и заголовком, но поскольку paragraphкоманда не отвечает моим потребностям, я ищу другое решение. Действительно, paragraphкоманда не освещает в достаточной степени ту часть текста, которую я хочу подчеркнуть. Этот параграф начинался бы с заголовка, например: «Наблюдение 1», как на следующем рисунке: введите описание изображения здесьв котором абзац, следующий за его заголовком («Наблюдение 20»), начинается с отступа, отличного от отступа основного текста.

Есть ли у кого-нибудь предложения? В следующем тексте я использую ненумерованный descriptionсписок, чтобы сделать абзац с отступом.

\documentclass[12pt,a4paper,footinclude=true,twoside,headinclude=true]{scrbook}
\usepackage[parts,pdfspacing,dottedtoc]{classicthesis}
\usepackage{fontspec}
\usepackage[applemac]{inputenc}    
\usepackage[frenchb]{babel}
\setmainfont{Minion Pro}
    \usepackage[marginparsep=8pt,left=3.5cm,right=3.5cm,top=3cm,bottom=3cm]{geometry}


    \begin{document}

   \begin{description}
    This is my text
   \end{description}

    \end{document}

решение1

Вы также можете сделать это с ntheoremпакетом: у него есть \theoremindentдлина, и вы можете определить observструктуру теоремы в breakстиле. Вот возможность; мне пришлось переопределить стиль break, чтобы обеспечить отступ для первого абзаца. Если вам не нужен такой отступ, то переопределять нечего.

\documentclass[12pt,a4paper,footinclude=true,twoside,headinclude=true]{scrbook}
\usepackage[parts,pdfspacing,dottedtoc]{classicthesis}
\usepackage{fontspec}
\usepackage[frenchb]{babel}
\setmainfont{Minion Pro}
\usepackage[marginparsep=8pt,left=3.5cm,right=3.5cm,top=3cm,bottom=3cm]{geometry}


\usepackage{ntheorem}
\theoremindent = 3em
\theorempreskip\medskipamount
\theorempostskip\medskipamount
\theoremstyle{break}
\theoremheaderfont{\itshape}
\theorembodyfont{\normalfont}
\makeatletter
\renewtheoremstyle{break}%
 {\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont
 ##1\ ##2\theorem@separator}\hbox{\strut}}}]\hskip\parindent}%
 {\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont
 ##1\ ##2\ (##3)\theorem@separator}\hbox{\strut}}}]\hskip\parindent}
\makeatother
\newtheorem{observ}{Observation}

    \begin{document}

A repetitive text a repetitive text a repetitive text a repetitive text a repetitive text a repetitive text a repetitive text a repetitive text a repetitive text.
   \begin{observ}
    This is my text. This my text This is my text. This my text This is my text. This my text This is my text. This my text This is my text. This my text. This my text This is my text. This my text This is my text. This my text.

    This is my text. This my text This is my text. This my text This is my text. This my text This is my text. This my text This is my text. This my text. This my text This is my text. This my text This is my text. This my text.
   \end{observ}
 Another no less repetitive text. Another no less repetitive text. Another no less repetitive text. Another no less repetitive text. Another no less repetitive text.

    \end{document} 

введите описание изображения здесь

решение2

Создайте свою собственную среду, чтобы все было так, как вам хочется.

Ниже я использовал adjustwidth(изchangepage) для установки цитируемой среды, называемой observation. observationЗаголовок следует за счетчиком, на который можно ссылаться с помощью \label- \ref.

введите описание изображения здесь

\documentclass{article}
\usepackage[margin=1in]{geometry}% Just for this example

\usepackage{changepage,lipsum}

\newcounter{observation}
\newenvironment{observation}
  {\par\medskip
   \begin{adjustwidth}{2em}{2em}
     \setlength{\parindent}{1.5em}% \parindent for Observations
     \small% Font changes (if any)
     \refstepcounter{observation}% Increment counter
     \hspace*{\parindent}% Indent Observation title
     Observation~\theobservation% Print Observation title
    \par\nobreak\smallskip}%
  {\end{adjustwidth}\medskip}
\begin{document}

\lipsum[1]

\begin{observation}
  \lipsum[2-3]
\end{observation}

\lipsum[4]

\begin{observation}
  \lipsum[5]
\end{observation}

\begin{observation}
  \lipsum[6]
\end{observation}

\lipsum[7]

\begin{observation}
  \lipsum[8-10]
\end{observation}

\lipsum[11]

\end{document}

Вы можете настроить \parindent( 1.5em) и adjustwidthотступы ( 2em) в соответствии с вашими потребностями. То же самое касается любых настроек шрифта ( \smallв данном случае).

Связанный контент