Text FormattingList with Hanging Indent and no Item Labels

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
rdonohoe
Posts: 3
Joined: Fri Sep 09, 2011 5:33 pm

List with Hanging Indent and no Item Labels

Post by rdonohoe »

I am looking to manually write a bibliography because the style is complex and I don't have the skills to make my own bibliography style file so I am making a list which I would like no label and the first line of each list item indented 1em and the subsequent lines (if any) to indent 2em.

I am having trouble doing this. I have tried \usepackage{enumitem} but can't find any combination of options to do what I am looking for.

Anyone have any advice.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

List with Hanging Indent and no Item Labels

Post by localghost »

If you need to implement a very special bibliography style, you may take a look at the biblatex package. It lets you customize your bibliography by LaTeX macros, which might be easier than generating a new style by custom-bib or manipulate an existing style.

Off the top of my head I can offer a solution without a package.

Code: Select all

\documentclass[11pt,english]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{blindtext}

\newenvironment{biblist}{%
  \begin{list}{}{%
    \setlength{\labelwidth}{0pt}%
    \setlength{\labelsep}{1em}%
    \setlength{\leftmargin}{2em}%
    \setlength{\itemindent}{-1em}%
  }
}{\end{list}}

\begin{document}
  \blindtext

  \begin{biblist}
    \item \blindtext
  \end{biblist}

  \blindtext
\end{document}
This customized list only regards basic settings corresponding to your information.

The blindtext package is only used for generating some dummy text, thus is not part of the solution.


Best regards and welcome to the board
Thorsten
Post Reply