I am using a lyx article template . I want to put my all enumerate items in grayed box . How can I define the enumerate environment in preamble so that all my enumerated lists appear in a grey boxes. I do not want to use tex code inside lyx document and would like to define this style in preamble itself . Kindly help

  • use package mdframed
    – user2478
    Jan 7, 2014 at 17:03
  • I want to define it in preamble and do not want to enter any code on document body written in lyx
    – Vaibhav
    Jan 7, 2014 at 17:12
  • Do you allow white space between list items?
    – Herr K.
    Jan 7, 2014 at 17:27
  • No white spaces pls.
    – Vaibhav
    Jan 10, 2014 at 10:44

1 Answer 1


write into the preamble (document->setting->preamble):


enter image description here

for all other options, like rounded corners , frame color, ... read the documentation of mdframed

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .