GeneralIndention of itemized List outside of its Scope

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

Indention of itemized List outside of its Scope

Post by gafarglbargl »

I get an unwanted indentation when using this code for itemized lists (see attachment).

Code: Select all

Definitions:
\begin{itemize}
  \item Functional requirement:
  \item Non-functional requirement:
\end{itemize}

Abbreviations:
\begin{itemize}
  \item FR: Functional requirement
  \item NFR: Non-functional requirement
\end{itemize}
"Abbreviations:" is not supposed to be indented, what to do?
Attachments
itemize-problem.png
itemize-problem.png (18.46 KiB) Viewed 5242 times
Last edited by localghost on Wed Sep 11, 2013 12:34 pm, edited 1 time in total.

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

Indention of itemized List outside of its Scope

Post by localghost »

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 %).

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}

\begin{document}
  \section{Foo}
    Definitions:
    \begin{itemize}
      \item Functional requirement:
      \item Non-functional requirement:
    \end{itemize}
%
    Abbreviations:
    \begin{itemize}
      \item FR: Functional requirement
      \item NFR: Non-functional requirement
    \end{itemize}
\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
Thorsten
gafarglbargl
Posts: 3
Joined: Wed Sep 11, 2013 12:15 pm

Re: Indention of itemized List outside of its Scope

Post by gafarglbargl »

Thank you for the help, advice and welcome :D
Post Reply