The following simple code does not compile with Texlive 2016

d &\text{si }j=0\\
0 &\text{sinon}.

With amsart class, everything is OK. Any hint or idea to solve this problem is welcome.

  • Welcome to TeX.SX, please consider making a full but minimal working example as explained in this question. – Diaa Nov 20 '16 at 18:53
  • 3
    Package amsmath is missing. elsarticle doesn't load it (as amsart does. – Zarko Nov 20 '16 at 19:01
  • 4
    Simply load amsmath(or, better mathtools: you'll have improved cases variants). Also don't use the syntax $$ … $$: it's plain TeX syntax, and you'll have bad spacing. – Bernard Nov 20 '16 at 19:02
  • To the comments of Bernard, Zarko and Diaa, you use \[...\] instead $$...$$. – Sebastiano Dec 8 '16 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.