TransWikia.com

Special label for a item

TeX - LaTeX Asked on July 5, 2021

I am using

begin{enumerate}[start=1,label={{bf{Claim arabic*.}}}]
item
....
item
begin{enumerate}

and it works fine. I get my output as

output

Now, now and then I would like to have a different item label, something like:

wished output

Is there a quick trick? I am not able to see it. I am using usepackage{enumitem}. Thanks.

One Answer

You may be misusing (abusing?) the powers of the enumitem package. I think you'd be better off loading the amsmthm package and defining a numbered environment called claim and an unnumbered environment named comment.

enter image description here

documentclass{article}
usepackage{amsthm}
theoremstyle{definition} % use upright lettering
newtheorem{claim}{Claim}
newtheorem*{comment}{Comment}

begin{document}

begin{claim} 
bla bla bla 
end{claim}
begin{comment} 
ble ble ble 
end{comment}
begin{claim} 
bli bli bli 
end{claim}
end{document}

Correct answer by Mico on July 5, 2021

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