2

As I look at my document in LyX, the figure numbering looks like chapter.section.figurenumber. However, when a PDF is created the "section" portion of the figure number disappears, and I have multiple figures with the same figure number.

I'm using a custom class created at my University for the thesis that's based on memoir. One of the comments in it is that memoir only numbers section down to section & for most users this isn't enough. So they reset them with

\maxsecnumdepth{subsubsection}
\setsecnumdepth{subsubsection}
\maxtocdepth{subsubsection}

I did some searching and tried

\setcounter{lofdepth}{9}

to try to get the subsections (being unsure how large the integer should be...), but this did not have any effect after updating the class. There doesn't seem to be a similar

\maxlofdepth{subsubsection}

type command?

Most of my search finds talked about labeling subfigures not figures in subsections.

  • I may have found the answer now thanks to the "related" bar that appeared after posting. I'll give the suggestion that's in tex.stackexchange.com/questions/124036/… a try. – Elizabeth Claassen Jan 22 '14 at 22:38
  • 3
    If what you found works, post an answer to your own question. That will help others who encounter the same problem. – Ethan Bolker Jan 22 '14 at 22:42
  • And, if it doesn't work, we'll likely need the custom class file in order to properly help. Welcome to TeX.SX! – Adam Liter Jan 22 '14 at 22:54
1

The link I pasted into my comment above did point me to a solution. I added

\makeatletter
\renewcommand\@memmain@floats{%
  \counterwithin{figure}{section}
  \counterwithin{table}{section}
}
\makeatother

to the .cls file, and it appears to now be giving me the figure numbers I want.

I just wish I'd found that question/answer before I'd posted my own, so I didn't look quite so inept.

Thanks!

  • You look industrious, not inept. – Ethan Bolker Jan 23 '14 at 15:05

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.