On Thu, 18 Aug 2022, Udicoudco wrote:

I don't have much  experience with KOMA-Script document classes, but from
what I've been reading in the documentation, automark does not have
anything to do with figure numbering, the command changes the page marks
above the headrule.

Udi,

That's interesting. I admit that I didn't fully search through the
KOMA-Script doc.

The reason the figure is numbered differently in the report class is that
in this class the chapter command is defined, and as a convention when it
is defined, usually figures are numbered within the chapter counter. On
the contrary, in report class, chapters are not defined.

If I use numbered sections there's no problem with float figures (or tables)
being numbered with integers regardless of class. Using unnumbered document
sections*, or chapters*, are when there's an issue.

To remove the figure counter from the reset list of chapter, you can
simply write in the preamble \counterwithout{figure}{chapter}, it will
also change the format of \thefigure to be \@arabic{\c@figure} which is
what I believe you want.

In previous documents (report class) unnumbered sections displayed figures
with integers when /automark*{section} was in the preamble. For some reason,
it did not do so with this one document. So I changed your command to
\counterwithout{figure}{section} and that did the trick. Thank you.

Note that this will only change the counter in the output file, and not in
the lyx file.

That's all that matters, :-)

Thanks very much for teaching me \counterwithout{}{}.

Regards,

Rich
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to