I know that I can use :sectnums: all after the title to enable section and subsection numbering. But is it possible to define this in the theme yml? I have a lot documents which use the same theme file, and it would be nice to have it defined only once.
Asciidoctor: Is it possible to activate section numbering in themes yml
50 Views Asked by Namal At
1
There are 1 best solutions below
Related Questions in ASCIIDOC
- Is there a way to combine curly quotes and em dash in AsciiDoc?
- How do I include visible spaces in code listing in table
- Is there a way to render the document attributes of an asciidoc file and output to an adoc file?
- Ascii doc syntaxes not provide consistent output & not working as expected
- How do I add a "copy to clipboard" button block extension?
- Table in pdf, generated from Asciidoctor have word wrapping but the word becomes unsearchable
- Is there a (good) 3-way merge driver for ASCII-DOC files?
- How can I publish asciidoc containing plantUML digram to GitHub's Wiki
- How do I enable tabs in Asciidoc and Maven with asciidoctor-tabs and asciidoctor-maven-plugin?
- Render a PlantUML diagram in an asciidoc readme in GitLab
- How to modify the html template used by Jekyll AsciiDoc HTML generator
- Asciidoctor tables in docx no style
- I am getting `Error creating DOCX from AsciiDoc file` in IntelliJ Idea, How can this be resolved?
- What's the correct way to render Asciidoc HTML in Gatsby?
- How to include partial with different attributes and without empty lines
Related Questions in ASCIIDOCTOR
- Is there a way to combine curly quotes and em dash in AsciiDoc?
- How do I include visible spaces in code listing in table
- Doctoolchain Docker Container fails to pull in dependencies
- Is there a way to render the document attributes of an asciidoc file and output to an adoc file?
- How can I render mermaid diagrams of type C4 in asciidoctor?
- batch script returns unexpectedly after first asciidoctor command completion
- How to get Asciidoctor to render source tags with color
- Table in pdf, generated from Asciidoctor have word wrapping but the word becomes unsearchable
- Specify version of dependency of Gradle AsciidoctorJ Plugin
- How do I enable tabs in Asciidoc and Maven with asciidoctor-tabs and asciidoctor-maven-plugin?
- auto-generating list of figures and list of tables in asciidoctor
- Asciidoctor tables in docx no style
- Get list of includes in a parsed document
- How to add RGB or CMYK output intent profile to a PDF
- - In plugin 'org.asciidoctor.convert' type 'org.asciidoctor.gradle.AsciidoctorTask' property 'logDocuments' is annotated with @Optional
Related Questions in ASCIIDOCTOR-PDF
- Table in pdf, generated from Asciidoctor have word wrapping but the word becomes unsearchable
- How to add RGB or CMYK output intent profile to a PDF
- Gradle plugin AsciidoctorPdf: Extend font search path
- How to add borders to headings in AsciiDoctor-pdf PDF output
- Terminating due to java.lang.OutOfMemoryError: Metaspace (AsciiDoctorj-pdf)
- Asciidoctor: Is it possible to activate section numbering in themes yml
- Text with background color and rounded borders in asciidoctor-pdf
- asciidoc: Return to Section after Subsection
- How to include a horizontal line in the header?
- Using a custom icon font with asciidoctor-pdf
- Asciidoctor-pdf no parsing
- How to map level 1 to H1 in asciidoc
- Asciidoctor Font
- asciidoctor-pdf cannot load such file -- matrix (LoadError)
- Best way to generate Mastering the Lightning Network PDF from ASCIIDOC
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The PDF
theme.ymldoes not support setting AsciiDoc attributes, so that approach won't work.However, you can specify attributes on the command-line:
It might be better to create an AsciiDoc file that only defines attributes, say
attributes.adoc. You would specify any attributes that you want to use globally:Then, in every document that needs to use those attributes:
Once you've done that for all documents, adjusting the attributes requires editing only the
attributes.adocfile.