number_section yaml-argument:如何检查,是否手动设置为 true

问题描述

markdown_document2 中,yaml 的 number_section 参数认设置为 true。对于 officedown,我正在寻找一种方法来检查这一事实,即用户确实手动设置了该值,并且确实希望获得自动编号的标题!is.null() 不是选项,isTrue() 在任何一种情况下都为真 - 认值或手动设置。

---
title: number_section with rdocx_document
subtitle: how to check,if number_section was set manually
output:
   bookdown::markdown_document2:
     base_format: officedown::rdocx_document
     number_section: FALSE
     fig_caption: TRUE
---

# This is the first Headline − should be auto-numbered

... but only,if the user sets `number_section: TRUE`

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)