TransWikia.com

Add tag, label to several items in a list

TeX - LaTeX Asked by antshar on November 26, 2020

Is it possible to add a tag the way aligned environment does, but with itemize?

I want to achieve such a result

enter image description here

I managed to do that with this workaround, but it doesn’t look neat for me.

noindent My list
begin{itemize}
    item The first item[-6ex]
    item[] hfill(1)label{items:1}[-6ex]
    item The second item
end{itemize}

One Answer

If you use the memoir class (a superset of book, report and article) then it provides means of reducing the spaces between items.

% itemizeprob.tex  SE 543595

documentclass{memoir}
%
begin{document}
noindent My list
begin{itemize}
 %  firmlist % reduce inter-item spaces
  tightlist % eliminate inter-item spaces
  item The first item hfill(1)label{items:1}
  item The second item
end{itemize}
end{document}

The class also provides declarations that reduce the inter-item spacing in all lists; see section 8.6 Lists in the manual (texdoc memoir).

Answered by Peter Wilson on November 26, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP