Skip to content

How to get automatic caption numbering? #600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lilyzhaochina opened this issue Jan 15, 2019 · 1 comment
Open

How to get automatic caption numbering? #600

lilyzhaochina opened this issue Jan 15, 2019 · 1 comment

Comments

@lilyzhaochina
Copy link

lilyzhaochina commented Jan 15, 2019

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.

@de-adshot
Copy link

Got any hit @lilyzhaochina ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants