Como criar um parágrafo personalizado?

Como criar um parágrafo personalizado?

Além dos parágrafos numerados e não numerados (seção, subseção, subsubseção) gostaria de ter em minha tese alguns parágrafos recuados e intitulados, mas como paragrapho comando não atende às minhas necessidades, estou buscando outra solução. Na verdade, paragrapho comando não esclarece suficientemente a parte do texto que quero enfatizar. Esse parágrafo começaria com um título como: “Observação 1” como na figura a seguir: insira a descrição da imagem aquiem que o parágrafo que segue seu título (“Observação 20”) começa com um recuo diferente da identificação do corpo principal do texto.

Alguém tem alguma sugestão? No texto a seguir, uso uma descriptionlista não numerada para ter um parágrafo recuado.

\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}

Responder1

Você também pode fazer isso com o ntheorempacote: ele tem um \theoremindentcomprimento e você pode definir uma observestrutura de teorema no breakestilo. Aqui está uma possibilidade; Tive que redefinir o breakestilo para garantir o recuo do primeiro parágrafo. Se você não deseja esse recuo, não há nada para redefinir.

\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} 

insira a descrição da imagem aqui

Responder2

Crie seu próprio ambiente para definir as coisas da maneira que desejar.

Abaixo eu usei adjustwidth(dechangepage) para definir um ambiente semelhante a uma cotação chamado observation. O observationtítulo segue um contador que você pode referenciar usando \label- \ref.

insira a descrição da imagem aqui

\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}

Você pode ajustar \parindent( 1.5em) e adjustwidthrecuos ( 2em) para atender às suas necessidades. O mesmo vale para quaisquer ajustes de fonte ( \smallneste caso).

informação relacionada