Text Formattinglist with no indentation on first line of item

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Leo__
Posts: 28
Joined: Thu Oct 28, 2010 4:33 pm

list with no indentation on first line of item

Post by Leo__ »

Hello,

I would like to produce a list with the following requirements:

1) the first line of each item should have no indentation.

2) the subsequent lines of the item should all have the same (small) indentation.

Of course I would like to avoid doing this by hand and (if possible) without getting into the specifics of the special bib files.

Leo

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: list with no indentation on first line of item

Post by Stefan Kottwitz »

Hi Leo,

did you already try it? If yes, perhaps post your try as a sample which we can compile and modify. So we could come up with a concrete way instead of talking about modifying indentation in a theoretical way.

Stefan
LaTeX.org admin
Leo__
Posts: 28
Joined: Thu Oct 28, 2010 4:33 pm

list with no indentation on first line of item

Post by Leo__ »

Unfortunately I have no idea how to do it concretely. Maybe there is a bibliography package that does it. I can produce an (artificial) example like this:

Code: Select all

\documentclass[11pt,b5paper]{book}
\begin{document}

\noindent {\textbf{Bob and Alice Cryptos}}, {\it{An alien way of crypting the universe}}, Journal \hspace*{0.2cm} of Imaginative Theoretical Science {\bf{12}}, Special issue, University Press of \hspace*{0.2cm} Nancago, 2054, xii-xvi.

\noindent {\textbf{Bob and Alice Cryptos}}, {\it{Another alien way of crypting the universe}}, \hspace*{0.2cm} Journal  of Imaginative Theoretical Science {\bf{14}}, Special issue, University \hspace*{0.2cm} Press of  Nancago, 2055, i-ix.

\end{document}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: list with no indentation on first line of item

Post by Stefan Kottwitz »

Hi Leo,

now I understand that it's not just a list, but you would like to create a bibliography or list of references. I notice the additional mentioning of bib files in the first post now.

Do you use BibTeX? Do you use natbib, or biblatex? Any bibliography style, or are you doing all manually?

Stefan
LaTeX.org admin
Leo__
Posts: 28
Joined: Thu Oct 28, 2010 4:33 pm

Re: list with no indentation on first line of item

Post by Leo__ »

Yes I need to produce a list of works, which are loosely connected to the main text. So there are no actual "references" in the text to the works in the list. So in a sense, it is simpler case of bibliography.

Right now, my list is a real manual list, that is, I haven't made a .bbl file. (I do use biblatex for my articles, but this is a work of a different kind.)

[On the other hand, it is a bit more complicated than a regular bibliography because the list contains works or references that are difficult to present in a standardized format.]

I am ready to go through the bibtex format and the entry types but only if I really need to.

I hope I answered your question.
Leo__
Posts: 28
Joined: Thu Oct 28, 2010 4:33 pm

list with no indentation on first line of item

Post by Leo__ »

After more searching, I found an answer. I'll post the link here, it may be useful to other users:

http://stackoverflow.com/questions/3254 ... econd-line
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

list with no indentation on first line of item

Post by Johannes_B »

To sum it up, the link suggests to use package hanging to achieve paragraphs with hanging indentation.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

Re: list with no indentation on first line of item

Post by Stefan Kottwitz »

Great, thanks for posting the solution!

Stefan
LaTeX.org admin
Post Reply