Question: lyx how to add page numbers?
Answer: In recent LyX versions: Go to Document→Settings→Modules and add the module "Number figures by section" or "Number tables by section", respectively.