frontiers-quarto-extension
Enhanced Quarto extension for Frontiers journal manuscripts with Harvard citation style, featuring clickable DOI links and CSL-compatible bibliography formatting
Science Score: 57.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 1 DOI reference(s) in README -
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.0%) to scientific vocabulary
Keywords
Repository
Enhanced Quarto extension for Frontiers journal manuscripts with Harvard citation style, featuring clickable DOI links and CSL-compatible bibliography formatting
Basic Info
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
Frontiers Harvard Format for Quarto
This is a Quarto extension that provides a template for creating manuscripts formatted according to Frontiers journal requirements using the Harvard (Author-Date) citation style.
Installation
From GitHub (Recommended)
To use this template in a new project:
bash
quarto use template Theurrien/frontiers_quarto_extension
To add this format to an existing project:
bash
quarto add Theurrien/frontiers_quarto_extension
From Local Files
If you've cloned or downloaded this repository to your local machine:
- Clone or download this repository to your computer
- Navigate to your Quarto project directory in the terminal
- Install the extension from the local path:
bash
quarto add /path/to/frontiers_quarto_extension
For example, if you downloaded the extension to your Downloads folder:
bash
quarto add ~/Downloads/frontiers_quarto_extension
Or if you cloned it to a specific directory:
bash
quarto add /Users/yourusername/GitHub_Repos/frontiers_quarto_extension
Alternative local installation:
You can also copy the entire extension folder to your project's _extensions directory:
- Create an
_extensionsfolder in your Quarto project (if it doesn't exist) - Copy the entire
frontiers_quarto_extensionfolder into_extensions/ - Rename it to
frontiers-harvardfor consistency:your-project/ ├── _extensions/ │ └── frontiers-harvard/ │ ├── _extension.yml │ ├── Frontiers-Harvard.bst │ └── ... (all other files) ├── your-document.qmd └── references.bib
Usage
After installation, you can use the format by specifying it in your document's YAML header:
yaml
format:
frontiers-harvard-pdf:
keep-tex: true
Features
- Full support for Frontiers journal formatting requirements
- Harvard (Author-Date) citation style with improved bibliography formatting
- Clickable DOI links in PDF output that open DOI URLs when clicked
- CSL-compatible formatting with volume and pages properly separated
- Automatic handling of author affiliations and corresponding author information
- Support for all required Frontiers sections (Conflict of Interest, Author Contributions, etc.)
- Line numbering for review process
- Proper logo placement and formatting
- Clean bibliography output without citation keys or annotations
Requirements
- Quarto version 1.6.0 or higher
- LaTeX distribution with required packages (including hyperref for clickable links)
- The
logo1.epsorlogo1.pdffile must be present for proper header rendering
Bibliography Format
The bibliography now follows the Frontiers CSL style with: - Authors in "Last, F." format - Year in parentheses after authors - Journal names italicized - Volume and pages separated by comma (e.g., "Volume 10, e3360") - Clickable DOI links formatted as "doi: 10.1002/example" that link to https://doi.org/...
Development and Contribution
This extension includes custom enhancements to improve bibliography formatting and add clickable DOI functionality. For developers interested in contributing or understanding the technical implementation:
- CLAUDE.md: Contains detailed technical documentation for AI-assisted development
- Custom BST file: The
Frontiers-Harvard.bstfile has been modified with enhanced functions for DOI linking and CSL-compatible formatting - Testing: Use the included
frontiers-template.qmdandreferences.bibfor testing changes
When making modifications, always clear bibliography cache files (.aux, .bbl, .blg) before testing to ensure changes take effect.
Changelog
- v1.0.0: Basic Frontiers formatting
- v1.1.0: Enhanced with clickable DOIs and CSL-compatible formatting
- v1.2.0: Complete note field suppression for Zotero compatibility and misc entry improvements
- v1.3.0: Fixed subfigure captions to generate proper (A), (B), (C) labels instead of descriptive text
- v1.4.0: Added native DOCX format support with Frontiers styling and proper image embedding
- v1.5.0: Added automatic citation sorting filter for proper alphabetical ordering of multiple citations
- v1.5.1: Fixed level 4 heading (paragraph) spacing to use run-in style without extra line breaks
Owner
- Name: Urs Chalupny
- Login: Theurrien
- Kind: user
- Repositories: 1
- Profile: https://github.com/Theurrien
Citation (citation-sort.lua)
-- Citation Sort Filter for Frontiers Harvard Extension
-- Sorts multiple citations alphabetically within citation groups
-- Author: Claude Code Assistant
-- Version: 1.0
local function compare_citations(a, b)
-- Extract citation keys for comparison
local key_a = a.id or ""
local key_b = b.id or ""
-- Convert to lowercase for case-insensitive comparison
return key_a:lower() < key_b:lower()
end
local function sort_citation_group(citations)
-- Sort the citations array alphabetically by citation key
table.sort(citations, compare_citations)
return citations
end
function Cite(cite)
-- Only process if there are multiple citations
if #cite.citations > 1 then
-- Sort the citations alphabetically
cite.citations = sort_citation_group(cite.citations)
end
return cite
end
-- Return the filter
return {
{
Cite = Cite
}
}
GitHub Events
Total
- Push event: 3
Last Year
- Push event: 3