A VS Code extension that helps you manage figures in LaTeX documents.
GitHub Repository
Features
- Structure Tree View: Displays figures organized by the document's section hierarchy (
\section, \subsection, etc.).
- Figure Detection: Lists all figures (
\includegraphics) found in the active .tex file.
- Caption Support: Displays the figure caption if available.
- Bi-directional Sync:
- Editor to Tree: Automatically highlights the figure in the panel when you move the cursor to the corresponding line in the editor.
- Tree to Editor: Click on a figure in the list to jump to its location in the code.
- Associated File Management: Manage related files (source code, raw data, config) using structured comments.
- Syntax: Add
%#[Label]{path/to/file} inside figure/table environments.
- UI Action: Click the
+ icon on a figure group to select and add files automatically.
- Example:
%#[Plot Script]{./scripts/plot.py}.
- These files appear in the tree view. Click to open in VS Code.
- Open in OS: Right-click on a figure in the list to open its containing folder in your operating system's file explorer, with the file pre-selected.
Usage
- Open a
.tex or .latex file.
- Look for the "TeX Figures" icon in the Activity Bar (side bar).
- Click to view the list of figures organized by sections.
- Use the refresh button in the view title to manually update the list if needed.
Commands
TeX Figure Viewer: Refresh: Manually refresh the figure list.
TeX Figure Viewer: Open Containing Folder: Open the folder containing the selected figure.
TeX Figure Viewer: Add Associated File: Add related files to a figure/table group.
| |