GeneralIndent in the {description} enviroment

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
japc126
Posts: 2
Joined: Sat May 03, 2008 3:11 am

Indent in the {description} enviroment

Post by japc126 »

First, Hi Latex Community!

How can I force latex to indent all the paragraphs in the {description} enviroment?

for example,

\begin{description}
\item{Something: Other thing\\} This is the text that I want indented
\end{description}

So it would look like this:

Something: Other thing
___________hsakjfbibgiolasfbgousahgosgovbfiogboigboubgoberogre
________jlbsbfbfiygbgoisbfuo;bsfdougbo;sabgobsgfoghosfhgoupsgfj
________hlsgb9yisagbfsgfpohgbsdigbso;gfpusofg.

thanks for all help

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Indent in the {description} enviroment

Post by Stefan Kottwitz »

Hi japc126,

welcome to the LaTeX Community board!
The text of the description environment above is indented, that's why I don't understand your question with that example. Perhaps you could explain more what you need but the description environment does not.

Stefan
LaTeX.org admin
japc126
Posts: 2
Joined: Sat May 03, 2008 3:11 am

Re: Indent in the {description} enviroment

Post by japc126 »

No, when I try to write something that way is comes out like this:

Something: Other thing
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb

_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb

_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb

And I want it to look like this (with extra indent on the first line)

Something: Other thing
___________khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsa
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb

___________khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsa
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb

___________khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsa
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
_______khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

Indent in the {description} enviroment

Post by Juanjo »

This example may help:

Code: Select all

\documentclass[a4paper]{article}
\usepackage{lipsum}

\begin{document}

\newenvironment{indenteddescription}%
  {\begin{list}{}{\setlength{\labelwidth}{0pt}
   \setlength{\itemindent}{-\leftmargin}
   \setlength{\listparindent}{\parindent}
   \renewcommand{\makelabel}{\descriptionlabel}}}%
  {\end{list}}

\begin{indenteddescription}
  \item[Something to be described:]\mbox{}\par
       \lipsum[1] \par
       \lipsum[2]
  \item[Other thing to be described:]\mbox{}\par
       \lipsum[3] \par
       \lipsum[4]
\end{indenteddescription}

\end{document}
The definition of indenteddescription is just that of the standard description environment plus the line \setlength{\listparindent}{\parindent} in order to achieve the desired indentation.
mmperillo
Posts: 1
Joined: Sun Jan 08, 2012 10:16 pm

Indent in the {description} enviroment

Post by mmperillo »

A simple and dirty way to solve it by doing

Code: Select all

\begin{description}
\item[\hspace{0.75cm}khfsakhfilgbfob] khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
\item[khfsakhfilgbfob] khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
\item[khfsakhfilgbfob] khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
\item[khfsakhfilgbfob] khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
\item[khfsakhfilgbfob] khfsakhfilgbfobsoigbosjbgflisdfbisdhfbsao;gb
\end{description}
Post Reply