fabricatio_typst.models.meta
Lightweight metadata model and Typst code mixins for article components.
Attributes
Classes
Enumeration of different types of references that can be made in an article. |
|
Metadata for an article component. |
|
Base class for article components that can be created from a Typst code snippet. |
|
Base class for article components that can be converted to a Typst code snippet. |
Module Contents
- class fabricatio_typst.models.meta.ReferringType
Bases:
enum.StrEnumEnumeration of different types of references that can be made in an article.
- CHAPTER = 'chapter'
- SECTION = 'section'
- SUBSECTION = 'subsection'
- class fabricatio_typst.models.meta.ArticleMetaData(/, **data: Any)
Bases:
fabricatio_core.models.generic.SketchedAble,fabricatio_core.models.generic.Described,fabricatio_capabilities.models.generic.WordCount,fabricatio_core.models.generic.Titled,fabricatio_core.models.generic.LanguageMetadata for an article component.
- description: str = None
A comprehensive description of this object, including its purpose, scope, and context. This should clearly explain what this object is about, why it exists, and in what situations it applies. The description should be detailed enough to provide full understanding of this object’s intent and application.
- title: str = None
The title of this object, make it professional and concise.No prefixed heading number should be included.
- property typst_metadata_comment: str
Generates a comment for the metadata of the article component.
- update_unstructured_body[S: ArticleMetaData](body: str) S
Update the unstructured body of the article component.
- class fabricatio_typst.models.meta.FromTypstCode(/, **data: Any)
Bases:
ArticleMetaData,abc.ABCBase class for article components that can be created from a Typst code snippet.
- class fabricatio_typst.models.meta.ToTypstCode(/, **data: Any)
Bases:
ArticleMetaData,abc.ABCBase class for article components that can be converted to a Typst code snippet.