Text FormattingVariable Indentation in enumerated List

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
drrilll
Posts: 2
Joined: Mon Oct 15, 2012 7:38 pm

Variable Indentation in enumerated List

Post by drrilll »

Hi,

I have a problem with the indented enumeration. I have tried hangindent also, to no avail. I am getting this:

1. The AdminAssistant selects the Create New Consultation Record op-
___tion.
________2. The system puts up a form asking for the patient name or
___record number.

Sorry I don't know how to do a proper indent here. I would like the wrapping lines of the second enumeration line up with its own indent, not the one above. I would do an example but we are short in time and I don't know how to indent properly on this forum. This is the code:

Code: Select all

\begin{enumerate}[noitemsep,nolistsep]
\newcommand{\indentitem}{\setlength\itemindent{18mm}\item \setlength\itemindent{0mm}}  

 \item The {\bf AdminAssistant} selects the Create New Consultation Record option.  
  \indentitem {The system puts up a form asking for the patient name or record number.}
%% And so on %%
/end{enumerate}


Any help is greatly appreciated. We are doing this project and I have come back to this problem time and again for weeks.

This is my first post and first time on the forum, so apologies if I have done something against the rules.

Thanks!
Last edited by localghost on Mon Oct 15, 2012 8:27 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.

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

Variable Indentation in enumerated List

Post by localghost »

drrilll wrote:[…] I would do an example but we are short in time and I don't know how to indent properly on this forum. […]
Not only if you are short in time, you should prepare a proper minimal example that shows the undesired behaviour. Answers are then easier to give because fixing provided code is faster than writing something from scratch.

If I understand you right, the below example should do what you are after. However, this kind of list is quite irritating.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{enumitem}

\begin{document}
  \begin{enumerate}[nosep]
     \item The \textbf{AdminAssistant} selects the Create New Consultation Record option.  
      \begin{enumerate}[nosep,start=2,label={\arabic*.}]
        \item The system puts up a form asking for the patient name or record number.
      \end{enumerate}
  \end{enumerate}
\end{document}
For details refer to the enumitem manual.

Remarks:
  • Do not use the old LaTeX2.09 syntax \bf for bold faced text. We are using LaTeX2e, thus \textbf{…} for short text is the way to go here. The correct switch for longer text passages would be \bfseries.

Best regards and welcome to the board
Thorsten
drrilll
Posts: 2
Joined: Mon Oct 15, 2012 7:38 pm

Re: Variable Indentation in enumerated List

Post by drrilll »

Funny how simple it seems when you finally see it. Seriously, thank you.
Post Reply