Skip to content
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

can I change the format of prefix ? #440

Closed
thunderbolt-fire opened this issue Jun 8, 2024 · 4 comments
Closed

can I change the format of prefix ? #440

thunderbolt-fire opened this issue Jun 8, 2024 · 4 comments

Comments

@thunderbolt-fire
Copy link

example: 图 1.1

I want to change it to 图 1-1

@lierdakil
Copy link
Owner

See chapDelim option, but bear in mind that - is used for reference ranges, so you will likely want to change rangeDelim as well. You may also need to use numberSections, depending on how your document is organized.

Not everything is supported with LaTeX/PDF output. If you're targeting that specifically, consider using cref: true and modifying the output using cleveref options instead. See cleveref docs

@thunderbolt-fire
Copy link
Author

See chapDelim option, but bear in mind that - is used for reference ranges, so you will likely want to change rangeDelim as well. You may also need to use numberSections, depending on how your document is organized.

Not everything is supported with LaTeX/PDF output. If you're targeting that specifically, consider using cref: true and modifying the output using cleveref options instead. See cleveref docs

I want to turn markdown into word, but I find i – object number, possibly with chapter number (if chapter=True) .
i is the '1.1' , i can't change it to '1-1'.

@lierdakil
Copy link
Owner

As I said, chapDelim. Set it to chapDelim: '-'. Here's an example:

---
chapters: true
chapDelim: '-'
---

# Chapter 1

![Figure 1](foo.png){#fig:foo}

@fig:foo

@thunderbolt-fire
Copy link
Author

As I said, chapDelim. Set it to chapDelim: '-'. Here's an example:

---
chapters: true
chapDelim: '-'
---

# Chapter 1

![Figure 1](foo.png){#fig:foo}

@fig:foo

Thanks very much! I solve it.

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