カスタマイズされた段落を作成するにはどうすればよいですか?

カスタマイズされた段落を作成するにはどうすればよいですか?

番号付きおよび番号なしの段落 (セクション、サブセクション、サブサブセクション) に加えて、インデントされたタイトル付きの段落を論文に含めたいのですが、paragraphコマンドではニーズを満たせないため、別の解決策を探しています。実際、paragraphコマンドでは、強調したいテキストの部分が十分に強調されません。その段落は、次の図のように「観察 1」などのタイトルで始まります。この図ここに画像の説明を入力してくださいでは、タイトルに続く段落 (「観察 20」) は、テキスト本体のインデントとは異なるインデントで始まります。

誰か提案はありますか? 次の mwe では、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

独自の環境を作成して、希望どおりに設定できます。

以下は私が使用したadjustwidthchangepage) を使用して、 と呼ばれる引用符のような環境を設定します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

関連情報