@@ -285,13 +285,14 @@ With the testing file `tests/test.tex`:
285
285
## Default Metadata
286
286
287
287
``` bash
288
- pandoc -o output.docx -F pandoc-tex-numbering test.tex -M theorem-names=" thm,lem"
288
+ pandoc test.tex -o output.docx -F pandoc-tex-numbering -M theorem-names=" thm,lem" -M appendix-names= " Appendix "
289
289
```
290
290
291
291
The results are shown as follows:
292
292
293
293
![ alt text] ( https://github.com/fncokg/pandoc-tex-numbering/blob/main/images/default-page1.jpg?raw=true )
294
294
![ alt text] ( https://github.com/fncokg/pandoc-tex-numbering/blob/main/images/default-page2.jpg?raw=true )
295
+ ![ alt text] ( https://github.com/fncokg/pandoc-tex-numbering/blob/main/images/default-page3.jpg?raw=true )
295
296
296
297
## Customized Metadata
297
298
@@ -307,13 +308,17 @@ In the following example, we custom the following **silly** items *only for the
307
308
- For figures:
308
309
- at the beginning of captions, use styles like ` Figure 1.1:1 `
309
310
- when referred to, use styles like ` as shown in Fig. 1.1.1, `
310
- - For equations, at the end of equations, use styles like ` (1-1-1) `
311
+ - For equations, suppress the parentheses and use the format ` 1.1.1 `
311
312
- For subfigures:
312
313
- use greek letters for symbols
313
314
- at the beginning of captions, use styles like ` [β(1)] `
314
315
- For theorems:
315
316
- Theorem environment "thm" uses "Theorem" as the prefix
316
317
- Lemma environment "lem" uses "Lemma" as the prefix
318
+ - For appendices:
319
+ - Suppress the top level appendix number
320
+ - Use (upper case) Roman numbers for the second level appendices
321
+ - Suppress the top level numbering in all references
317
322
- Turn on custom list of figures and tables and:
318
323
- Use custom titles as "图片目录" and "Table Lists" respectively.
319
324
- Use hyphens as the leader in the lists.
@@ -331,31 +336,45 @@ pandoc -o output.docx -F pandoc-tex-numbering --metadata-file test.yaml -f latex
331
336
332
337
``` yaml
333
338
# test.yaml
339
+ number-reset-level : 2
334
340
theorem-names : " thm,lem"
341
+ appendix-names : " Appendix"
342
+
343
+ # Prefix Settings
335
344
figure-prefix : Fig
336
345
table-prefix : Tab
337
346
equation-prefix : Eq
338
347
theorem-thm-prefix : Theorem
339
348
theorem-lem-prefix : Lemma
340
- number-reset-level : 2
341
- non-arabic-numbers : true
349
+
350
+ # Numbering Style Settings
351
+ subfigure-numstyle : " greek"
352
+ appendix-numstyle-2 : " Roman"
353
+
354
+ # Formatting Settings
342
355
section-src-format-1 : " 第{h1_zh}章"
343
- section-src-format-2 : " Section {h1}.{h2 }."
356
+ section-src-format-2 : " Section {num }."
344
357
section-cref-format-1 : " chapter {h1}"
345
- section-cref-format-2 : " 第{h1}.{h2 }节"
346
- table-src-format : " Table {h1}-{h2}-{tab_id }"
347
- table-cref-format : " table {tab_id } (in Section {h1}.{h2 })"
348
- figure-src-format : " Figure {h1}.{h2}:{fig_id }"
358
+ section-cref-format-2 : " 第{num }节"
359
+ table-src-format : " Table {h1}-{h2}-{this_num }"
360
+ table-cref-format : " table {this_num } (in Section {parent_num })"
361
+ figure-src-format : " Figure {parent_num}:{this_num }"
349
362
figure-cref-format : " as shown in Fig. {num}"
350
- equation-src-format : " \\ qquad({h1}-{h2}-{eq_id})"
351
- subfigure-src-format : " [{subfig_sym}({subfig_id})]"
352
- subfigure-symbols : " αβγδεζηθικλμνξοπρστυφχψω"
363
+ equation-src-format : " \\ qquad {num}"
364
+ subfigure-src-format : " [{this_num}({subfig_id})]"
365
+ appendix-src-format-1 : " " # Suppress the top level appendix number
366
+ appendix-ref-format-2 : " {this_num}"
367
+ appendix-src-format-2 : " Appendix {this_num}"
368
+
369
+ # List of Figures and List of Tables Settings
353
370
custom-lot : true
354
371
custom-lof : true
355
372
lot-title : " Table List"
356
373
lof-title : " 图片目录"
357
374
list-leader-type : " hyphen"
358
375
data-export-path : " data.json"
376
+
377
+ # Multiple Reference Settings
359
378
multiple-ref-suppress : false
360
379
multiple-ref-separator : " 、"
361
380
multiple-ref-last-separator : " \\ &\\ "
0 commit comments