Bibtex
Uncontrolled node
Overview
The Bibtex node provides syntax highlighting and editing capabilities for Bibtex citation format. It uses Handlebars templating to dynamically insert workflow variables into Bibtex entries, making it ideal for generating citation files for LaTeX documents.
The node parses the Bibtex template for Handlebars variables (e.g., {{author}}, {{title}}, {{year}}) and automatically creates corresponding inputs for each variable found. When the node runs, it substitutes these variables with values from the workflow and outputs the compiled Bibtex text.
Inputs
| Input | Type | Description | Default |
|---|---|---|---|
| Bibtex | Text | The Bibtex template content with optional Handlebars variables (e.g., @article{{{id}}, ...}). Supports syntax highlighting for Bibtex format. | - |
| Dynamic | Data | Additional inputs are automatically generated based on Handlebars variables found in the Bibtex template (e.g., if the template contains {{author}}, an "author" input will appear). | - |
Outputs
| Output | Type | Description |
|---|---|---|
| Output | Text | The compiled Bibtex string with all Handlebars variables substituted with their corresponding input values. |
Runtime Behavior
The Bibtex node is an uncontrolled node, meaning it executes automatically when its output is requested by downstream nodes. It does not require an event trigger to run.
When executed, the node:
- Retrieves the Bibtex template from the node's data property
- Compiles the template using Handlebars with the current workflow variables and any connected input values
- Outputs the resulting Bibtex text
If the template contains Handlebars variables (wrapped in double curly braces like {{variableName}}), the node will dynamically create input sockets for each variable, allowing you to connect data sources to populate the citation fields.
Example
Basic Usage
Create a simple Bibtex entry for a journal article:
Bibtex Template:
@article{{{id}},
author = {{{author}}},
title = {{{title}}},
journal = {{{journal}}},
year = {{{year}}},
volume = {{{volume}}},
pages = {{{pages}}}
}
Connected Inputs:
id: "smith2024"author: "Smith, John and Doe, Jane"title: "Advances in Workflow Automation"journal: "Journal of AI Research"year: "2024"volume: "15"pages: "123--145"
Output:
@article{smith2024,
author = {Smith, John and Doe, Jane},
title = {Advances in Workflow Automation},
journal = {Journal of AI Research},
year = {2024},
volume = {15},
pages = {123--145}
}
Using with LaTeX
Connect the Bibtex node output to a Latex node to include citations in your document:
- Create a Bibtex node with your citation template
- Connect workflow variables (like database query results or form inputs) to the dynamic inputs
- Connect the Bibtex output to a Latex node's input
- Reference the citation in your Latex content using
\cite{...}
Bibtex uses curly braces {} for field delimiters. When using Handlebars variables, ensure you have the correct number of braces:
{{{variable}}}(triple braces) prevents HTML escaping and preserves the raw value{{variable}}(double braces) may escape special characters
The node automatically detects new Handlebars variables when you edit the Bibtex template in the properties panel. Save the workflow to see newly detected variables appear as inputs.