1

I know the code I need to use to numerate the bottom page in LyX but I don't know where to put it, and I can't find how to numerate equations according to the section where they belong.

  • 1
    Welcome to TeX.SX! Please help us (and also you) and add a minimal working example (MWE), that illustrates your problem. - (1) see package fancyhdr (2) Related: \numberwithin{equation}{subsection} fails for subsections “0” or Numbering equations differently before sections start within chapter – Bobyandbob Aug 27 '17 at 16:17
  • For the first part, you probably need to add it to Document --> Settings --> LaTeX preamble, but I'm not entirely sure what you mean, so I may be wrong. For the second, Document --> Settings --> Modules, add the "Number Equations by Section" module. – Torbjørn T. Aug 27 '17 at 17:40
  • For the second, after load that module, right-click in the equation, then in the contextual menu, check other mode than Inline formula (Eqarray Environment, for instance) and after that you will see in the same menu Number Whole Formula. – Fran Aug 27 '17 at 18:54
  • @Fran Never recommend eqnarray (tex.stackexchange.com/questions/196/eqnarray-vs-align). If the equation is inline in first place (I assumed that Moltimor already had numbered, displayed equations), then it likely should be a single line display anyway, so the standard Displayed Formula option is the way to go. – Torbjørn T. Aug 27 '17 at 20:53
  • @TorbjørnT. I did not intend to recommend anything, only show as example one of the several (seven, to be exact) options that activate a new menu section with Number Whole Formula and Number This line and Equation Label. – Fran Aug 27 '17 at 22:44
2

(Summarizing comments.)

To have equations numbered by the section they're in, i.e. have equation numbers of the form <section number>.<equation number>, go to Document --> Settings --> Modules, and add the Number Equations by Section module:

adding module

(This basically just adds \numberwithin{equation}{section} to the preamble, and makes sure amsmath is loaded.)

If your equations isn't numbered, then you should edit them to be so, e.g. via the right-click menu, or the keyboard shortcut Alt + MN. See also Numbering equations with LyX


The default layout of the default class has the page number in the center footer. So unless a different class is used, or customizations has been done to the \pagestyle, you will have the page number in the footer.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.