add bib entry support #34
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for extracting figure metadata from BibTeX entries, allowing users to specify a
:bib:option in figure directives. When a BibTeX key is provided, metadata such as author, date, license, and source are automatically extracted from corresponding.bibfiles, unless explicitly overridden. The documentation and configuration options are updated accordingly, and example usage is added to the manual.BibTeX metadata extraction support:
.bibfiles and extract metadata fields (author, title, date, license, copyright, source) using a new_parse_bib_entryfunction and related helpers. This enables figure directives to pull metadata from BibTeX entries when the:bib:option is used. [1] [2]MetadataFiguredirective to prioritize explicit metadata options, then BibTeX-extracted values, then defaults for all supported fields (author, date, license, copyright, source). [1] [2] [3] [4] [5]bibsection to the default settings and configuration schema, with anextract_metadataoption (default: true). [1] [2] [3]Documentation and examples:
:bib:option, configuration settings, and provide a worked example of BibTeX metadata extraction for figures. [1] [2] [3]Other improvements: