You may use my idxlayout
package to change the hanging indentation of \item
s in a manually created theindex
environment. Note that for a one-column index you have to add \par
at the end of the last \item
for the settings to take effect. In the following example, I've also added code to remove the "Index" chapter heading and header.
\documentclass[a4paper,10pt]{book}
\usepackage[top=53mm, bottom=45mm, left=40mm, right=40mm]{geometry}
\usepackage[columns=1,hangindent=2em]{idxlayout}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\ila@prologue}{\chapter*{\indexname}}{}{}{}
\patchcmd{\ila@prologue}{\@mkboth}{\@gobbletwo}{}{}
\makeatother
\begin{document}
\begin{theindex}
\item arithmetic [VOL I] V, VII-VIII, IX, XIII, 1, 3-4, 39 fn.\,1, [VOL II] 70 fn.\,1, 73, 77-78, 83-84, 86-88, 95, 97-104, 109, 117, 119, 123-125, 139, 139 fn.\,2, 141-142, 146-147, 149, 151-152, 154, 155 fn.\,1, 156-157, 162, 168, 253, 255, 257, 265.\par
\end{theindex}
\end{document}
I don't think that using indentation "for emphasis" is a good idea. I prefer indented paragraphs and zero paragraph skip, but I know that somebody has different opinions.
However, I believe that one should either using indentation always (with the usual exceptions, for instance after section titles) or never.
If you really want to confuse your reader ;-)
, here's a way. Note that \indent
just adds an empty box of width \parindent
, so if you set the parameter to zero, nothing will be visible. The trick is to reset \parindent
locally, the closing additional brace will reset it to zero.
\documentclass{article}
\setlength{\parindent}{0pt}
\newcommand{\forceindent}{\leavevmode{\parindent=1em\indent}}
\begin{document}
This is not indented.
\forceindent This is indented.
This is not indented.
\end{document}
Note. Thanks to Frank Mittelbach for having spotted a problem in the simpler solution without \leavevmode
that would deliver the \everypar
tokens inside a group. With \leavevmode
there will be two "indent boxes", one of zero width, followed by what's possibly inserted by \everypar
and then the new indent box.
Another possibility could be to not doing anything inside a group:
\newcommand{\forceindent}{\parindent=1em\indent\parindent=0pt\relax}
Best Answer
You're better off using
enumitem
to manage your lists:The
listparindent
key sets thepar
agraphindent
inside alist
item, where the default isĀ0pt
. Note that you have to insert an explicit\par
or an empty line. It's better than using\\
directly.If you also want to indent the first paragraph in the
itemize
, then useitemindent
, as suggested in Indenting First Paragraph in a List.