LaTeX forum ⇒ GeneralIndention of itemized List outside of its Scope Topic is solved

LaTeX specific issues not fitting into one of the other forums of this category.
Posts: 3
Joined: Wed Sep 11, 2013 12:15 pm

Indention of itemized List outside of its Scope

Postby gafarglbargl » Wed Sep 11, 2013 12:24 pm

I get an unwanted indentation when using this code for itemized lists (see attachment).
  1. Definitions:
  2. \begin{itemize}
  3. \item Functional requirement:
  4. \item Non-functional requirement:
  5. \end{itemize}
  7. Abbreviations:
  8. \begin{itemize}
  9. \item FR: Functional requirement
  10. \item NFR: Non-functional requirement
  11. \end{itemize}

"Abbreviations:" is not supposed to be indented, what to do?
itemize-problem.png (18.46 KiB) Viewed 2764 times
Last edited by localghost on Wed Sep 11, 2013 12:34 pm, edited 1 time in total.
Reason: Code is posted as text, not as image.


User avatar
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Wed Sep 11, 2013 12:42 pm

The term "Abbreviations:" is indented by an amount of horizontal space determined by \parindent because it follows a blank line in the source code which introduces a new paragraph. The term "Definitions:" is not indented because it probably directly follows a heading (chapter, section, …). If you do not want that indentation, either delete the blank line or comment it (by simply inserting %).
  1. \documentclass{article}
  2. \usepackage[T1]{fontenc}
  4. \begin{document}
  5. \section{Foo}
  6. Definitions:
  7. \begin{itemize}
  8. \item Functional requirement:
  9. \item Non-functional requirement:
  10. \end{itemize}
  11. %
  12. Abbreviations:
  13. \begin{itemize}
  14. \item FR: Functional requirement
  15. \item NFR: Non-functional requirement
  16. \end{itemize}
  17. \end{document}

Next time please prepare a self-contained and minimal example to give an adequate problem description and in order to avoid speculations and guesswork.

Best regards and welcome to the board
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1

Posts: 3
Joined: Wed Sep 11, 2013 12:15 pm

Postby gafarglbargl » Wed Sep 11, 2013 1:28 pm

Thank you for the help, advice and welcome :D

Return to “General”

Who is online

Users browsing this forum: Google [Bot] and 6 guests