Skip to content

How to get automatic caption numbering? #600

Open
@lilyzhaochina

Description

@lilyzhaochina

the same as #87 #180 #590 #511 #554 #25.
Anybody help?This seems to solve this problem, but there is no example, it is difficult to understand.

Here is the descrprition about number from https://python-docx.readthedocs.io/en/latest/user/styles-understanding.html.

Identifying a style¶
A style has three identifying properties, name, style_id, and type.

Each style’s name property is its stable, unique identifier for access purposes.

A style’s style_id is used internally to key a content object such as a paragraph to its style. However this value is generated automatically by Word and is not guaranteed to be stable across saves. In general, the style id is formed simply by removing spaces from the localized style name, however there are exceptions. Users of python-docx should generally avoid using the style id unless they are confident with the internals involved.

A style’s type is set at creation time and cannot be changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions