This package provides:
This package consumes:
Made for Pulsar!
This package was written specifically for Pulsar and did not exist in the Atom package repository.
LaTeX tools for Pulsar editor.
latexmk.linter-indie.To install latex-tools search for latex-tools in the Install pane of the Pulsar settings or run ppm install latex-tools. Alternatively, you can run ppm install asiloisad/pulsar-latex-tools to install a package directly from the GitHub repository.
The package supports compiling multiple LaTeX files simultaneously. Each file tracks its own build state independently, allowing you to start a compilation in one file while another is still building. The status bar updates to show the build state of the currently active file.
The package provides a latex-tools.build service (version 1.0.0) that allows other packages to monitor LaTeX build status.
In your package's package.json, add the consumed service:
{
"consumedServices": {
"latex-tools.build": {
"versions": {
"1.0.0": "consumeBuildService"
}
}
}
}
Then in your package's main module:
consumeBuildService(service) {
// Subscribe to build events
this.subscriptions.add(
service.onDidStartBuild(({ file }) => {
console.log(`Build started: ${file}`);
}),
service.onDidFinishBuild(({ file, output }) => {
console.log(`Build finished: ${file}`);
}),
service.onDidFailBuild(({ file, error, output }) => {
console.log(`Build failed: ${file}`, error);
}),
service.onDidChangeBuildStatus(({ status, file, error }) => {
console.log(`Build status changed: ${status}`);
})
);
// Get current status for a specific file
const { status, file } = service.getStatus(filePath);
// Check if a specific file is currently building
const building = service.isBuilding(filePath);
}
| Method | Description |
|---|---|
onDidStartBuild(callback) |
Called when a build starts. Callback receives { file }. |
onDidFinishBuild(callback) |
Called when a build succeeds. Callback receives { file, output }. |
onDidFailBuild(callback) |
Called when a build fails. Callback receives { file, error, output }. |
onDidChangeBuildStatus(callback) |
Called on any status change. Callback receives { status, file, error? }. |
getStatus(filePath?) |
Returns status for a specific file or all builds if no path provided. |
isBuilding(filePath) |
Returns true if the specified file is currently being compiled. |
'idle' - No build in progress'building' - Build is currently running'success' - Last build completed successfully'error' - Last build failedGot ideas to make this package better, found a bug, or want to help add new features? Just drop your thoughts on GitHub — any feedback's welcome!