Skip to content
Back to skills

Latex Workshop

ASecurity

Use when compiling or troubleshooting a LaTeX document inside a VS Code project whose build is governed by LaTeX Workshop. Do not use for LaTeX compilation outside a VS Code project.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsgoshellbash

Works with

  • vscode
  • terminal

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add MoeenNehzati/famulus --skill latex-workshop --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Latex Workshop?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Latex Workshop
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/moeennehzati-latex-workshop/badge)](https://www.skillsdirectory.com/skills/moeennehzati-latex-workshop)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: latex-workshop
description: >-
  Use when compiling or troubleshooting a LaTeX document inside a VS Code project whose build is governed by LaTeX Workshop. Do not use for LaTeX compilation outside a VS Code project.
---

<!-- BEGIN BLUEPRINT INTERFACES -->
> Generated from `blueprint.yaml`. Do not edit this block by hand.

Used Interfaces: none
<!-- END BLUEPRINT INTERFACES -->
Skill: latex-workshop

## Goal

Behave the way VS Code LaTeX Workshop is configured to behave for the target
LaTeX document.

Do not assume that outputs belong beside the source file, that `latexmk` is the
intended tool, or that `_build` is the correct outdir unless the effective
LaTeX Workshop configuration implies that.

## Workflow

1. Resolve the effective LaTeX Workshop configuration.
- Check workspace-level config first:
  - `.vscode/settings.json`
  - any `*.code-workspace` file in the repo
- Look for relevant LaTeX Workshop settings, especially:
  - `latex-workshop.latex.outDir`
  - `latex-workshop.latex.recipes`
  - `latex-workshop.latex.tools`
- If no workspace-level override exists, check user-level VS Code settings:
  - Linux: `~/.config/Code/User/settings.json`
  - macOS: `~/Library/Application Support/Code/User/settings.json`
  - Windows: `%APPDATA%\\Code\\User\\settings.json`
- Workspace-level config overrides user-level config.
- If the outdir contains `%DIR%`, resolve it relative to the directory of the
  target `.tex` file.

2. Reconstruct the LaTeX Workshop build behavior.
- Prefer the configured recipe/tool behavior when it is readable from settings.
- If no recipe/tool information is available, use the effective outdir setting
  and a conservative `latexmk` fallback.
- If there is a repo script or Makefile that clearly matches the configured
  LaTeX Workshop workflow, it is fine to use that instead.

3. Compile with the effective behavior.
- Typical fallback when an outdir is configured:
```bash
latexmk -pdf -outdir="<resolved-outdir>" -interaction=nonstopmode -halt-on-error "<file>.tex"
```
- Typical fallback when no outdir is configured:
```bash
latexmk -pdf -interaction=nonstopmode -halt-on-error "<file>.tex"
```

4. Read artifacts from the effective output location.
- Inspect logs, PDFs, and bibliography artifacts in the resolved output
  directory, not next to the source file unless the effective config implies
  that.
- If an earlier compile was run in the wrong location, say so plainly and switch
  to the configured location for later runs.

5. Report the source of truth.
- State whether the effective behavior came from workspace config, user config,
  or a fallback.
- If fallback behavior was used because LaTeX Workshop settings were incomplete,
  say exactly what was missing.

## Retrieval Commands

- Workspace-level search:
```bash
rg -n 'latex-workshop\\.latex\\.(outDir|recipes|tools)' .vscode *.code-workspace
```
- User-level search on Linux:
```bash
rg -n 'latex-workshop\\.latex\\.(outDir|recipes|tools)' ~/.config/Code/User/settings.json
```

## Notes

- There is usually no direct terminal command that means "invoke LaTeX Workshop
  itself." In practice, use the discovered LaTeX Workshop settings to
  reconstruct the intended build behavior.
- Treat user mentions of VS Code or LaTeX Workshop as a signal to inspect these
  settings before compiling.
- Prefer matching LaTeX Workshop behavior over ad hoc shell habits.

Files in this skill

  • SKILL.md3.3 KB
  • blueprint.yaml1.2 KB
  • blueprints/gateway.yaml6.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…