<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'><div>Hi,</div><div><br></div><div><span class="tlid-translation translation" tabindex="-1" lang="en"><span title="" class="">For the first time I try to write a LYX module corresponding to a custom enumerate style (with two levels).</span></span></div><div><span class="tlid-translation translation" tabindex="-1" lang="en"><span title="" class="">I use the article Koma class with enumitem.sty package (I try…)</span></span></div><div><span class="tlid-translation translation" tabindex="-1" lang="en"><span title="" class=""><br></span></span></div><div><span class="tlid-translation translation" tabindex="-1" lang="en"><span title="" class=""><br></span></span></div><span class="tlid-translation translation" lang="en"><span title="" class="">I encounter several difficulties:</span></span><div><ul><li>In the Lyx interface the 1rst level counter returns to the initial value on paragraph breaks. I am unable to mimic the correct behavior visible in the pdf export.</li><li>Automatic cross-reference don't work correctly when placing labels on a 2nd level item... As you can see on :</li></ul><span style="white-space:pre">  </span><span style="white-space:pre">     </span><span style="white-space:pre">     </span>test_mon_module_From_LYX.pdf <br></div><div><ul><li>Automatic Cross-reference don't work at all if I use the TEX file produced by LYX from TexMaker (see test_mon_module_From_LYX_Then_TexMaker.pdf).</li></ul><div>I place: <br></div><div><ul><li> the mwe on lyx;</li><li>my poor Mes_listes_CPGE.module file;</li><li>pdf exported from LYX;</li><li>The tex file exported from LYX;<br></li><li>pdf exported from TexMaker with the .tex LYX produce.</li></ul><div><br></div><div>I hope to find some help here to move forward.</div><div><br></div><div>Didier<br></div></div></div><div><span class="tlid-translation translation" tabindex="-1" lang="en"><span title="" class=""><span class="tlid-translation translation" lang="en"><span title="" class=""><br></span></span></span></span></div><div><span class="tlid-translation translation" tabindex="-1" lang="en"><span title="" class=""><span class="tlid-translation translation" lang="en"><span title="" class=""><br></span></span></span></span></div></div></body></html>