LyXSection Numbering with Memoir Class & Article option

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Gnosos
Posts: 23
Joined: Wed Jun 29, 2011 10:52 pm

Section Numbering with Memoir Class & Article option

Post by Gnosos »

I am using the Memoir class with the article class option. In LyX I choose Document > Settings > Document Class, where I set the document class to "Book (Memoir)" and add "article, oneside" to the Custom: field of Class options. In the LaTeX preamble, I input a number of formatting files, including \input{startpagebody} to number sections properly (without chapter numbers and starting from section #1).

But when I view the document in LyX, section numbers all begin with zero (because the document has no chapters). So, for example, instead of the first subsection in the first section being numbered "1.1", it's numbered "0.1.1". The final document is fine, but working in LyX with such wrong numbering makes writing more difficult. What's the best way to fix this?
Last edited by cgnieder on Fri Apr 12, 2013 8:20 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: Section Numbering with Memoir Class & Article option

Post by scottkosty »

Getting the numbering right in LyX is very difficult, especially when you add stuff to the preamble that changes tables. LyX would have to parse everything.

If you think this is feasible though, file an enhancement requestion: http://www.lyx.org/trac

Scott
Post Reply