TeXcore

by Jovi Koikkara
5
4
3
2
1
Score: 51/100

Description

For all your TeX needs.

Reviews

No reviews yet.

Stats

2
stars
1,067
downloads
0
forks
171
days
47
days
171
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
0
total issues
0
open issues
0
closed issues
104
commits

Latest Version

6 months ago

Changelog

What’s New in v0.0.2

  • Interactive TikZ Editor (Visual Diagram Builder)

    • Graphical Editing Interface: Design TikZ diagrams visually using an integrated canvas instead of writing raw code from scratch.
    • Shape Tooling: Create and manipulate common elements like lines, arrows, circles, rectangles, and triangles with ease.
    • Live TikZ Code Generation: Automatically generates clean TikZ code in real-time as you edit diagrams.
    • Keyboard Shortcut Tooltips: Every tool includes discoverable shortcuts for faster workflows.
    • Thickness Control Slider: Easily adjust stroke widths and element thickness directly from the UI.
  • Precision Editing & Multi-Selection

    • Lasso Selection: Select multiple vertices or elements at once using intuitive drag selection.
    • Batch Editing: Apply shared style updates (color, thickness, etc.) across multiple selected elements simultaneously.
    • Improved Selection Model: Refactored editor internals to support multi-element operations and cleaner state updates.
  • Advanced Snapping System

    • Multiple Snapping Modes:
      • Grid snapping for structured layouts
      • Half-step snapping for finer control
      • Free mode for unrestricted positioning
    • Improved Alignment: Ensures consistent spacing and cleaner diagram geometry.
  • Major TikZ Rendering Improvements

    • Accurate Symbol Rendering: Fixes incorrect glyph mappings (e.g. Γ, Ω, ⊗) caused by DVI parsing issues.
    • Font Handling Overhaul: Uses corrected character offset mappings from TikZJax for consistent output.
    • Robust Package Loading: Automatically resolves dependencies for advanced libraries like:
      • tikz-cd
      • tikz-feynhand
      • pgfcalendar
    • Improved Error Handling: More resilient rendering pipeline for malformed or complex diagrams.
  • Enhanced Layout & Responsiveness

    • Dynamic Column Sizing: Automatically adjusts diagram widths for better alignment in multi-diagram layouts.
    • Improved Row Layout System: More consistent spacing and responsive structure across different screen sizes.
    • Compact Rendering Mode: Reduced margins and padding for tighter, cleaner document layouts.
    • SVG Clipping Fix: Prevents diagrams from being cut off at the top by adjusting overflow and positioning behavior.
  • UI & Performance Refinements

    • Cleaner Component Architecture: Refactored core editor components (CanvasGrid, Sidebar, Modal) for maintainability and performance.
    • Consistent Styling System: Replaced scattered inline styles with centralized style helpers.
    • Improved Accessibility: Better tooltips, clearer button labels, and more consistent interaction feedback.
    • Optimized Asset Handling: Improved compatibility and reliability using safer async loading patterns.

Full Changelog: https://github.com/YouFoundJK/TeXcore/compare/0.0.1...0.0.3


Usage

  1. Update the plugin via Obsidian Community Plugins or manually replace:

    • main.js
    • manifest.json
    • styles.css
  2. Reload Obsidian to initialize the updated TikZ rendering engine and editor components.

  3. Open the TikZ Editor:

    • Use the command palette or UI entry point.
    • Start building diagrams visually using the canvas tools.
  4. Customize your editing workflow:

    • Toggle snapping modes (grid / half / free).
    • Adjust thickness and styles from the right sidebar.
    • Use multi-selection for faster bulk edits.
  5. Continue writing TikZ manually if preferred — rendering is now more accurate, faster, and supports more packages out-of-the-box.

README file from

Github

TeXcore for Obsidian

A minimalistic, high-performance LaTeX assistant for automatic equation numbering, referencing, and TikZ rendering with basic GUI editing in Obsidian.md to transforms your vault into a rich ecosystem for scientific drafting and study.

📚 Full Documentation & Guides


Key Features

  • Equation Numbering & referencing: Auto-numbers equations with custom IDs and provides search-based fuzzy autocomplete suggestion dropdowns via \eqref.
  • On-Demand TikZ Diagrams: Compiles TikZ code blocks asynchronously in a Web Worker, lazy-downloading and caching assets to remain lightweight and bloat-free.
  • Advanced PDF Export: Highly configurable single-note or batch folder PDF exports featuring customizable headers, footers, page sizes, and style overrides.

Behind the Scenes: The WebAssembly Engine

To render TikZ diagrams without forcing you to install a full local LaTeX distribution, TeXcore runs the compiler directly inside Obsidian using WebAssembly:

  1. TeX in Wasm: The core Pascal source code of TeX is compiled into a WebAssembly binary (tex.wasm) via the web2js compiler.
  2. Background Compilation: Because TeX compilation is CPU-bound, the plugin spawns a background Web Worker to run the Wasm engine. This keeps Obsidian's UI completely smooth and responsive.
  3. On-Demand CDN Fetching: When you first run a TikZ diagram, the plugin downloads the pre-compiled format engine (core.dump.gz) and the font stylesheet (tikzjax.css), caching them locally on your disk.
  4. Lazy Caching: If your diagram includes specific packages (e.g. \usepackage{circuitikz}), the loader resolves the files, downloads them from a CDN, and saves them locally. Subsequent renders of the same packages work fully offline.

License

This plugin is licensed under the MIT License.


Credits & Sourcing

The TikZJax engine and assets are derived from and built upon the incredible work of the following open-source projects:

  1. kisonecat/tikzjax by Jim Fowler — The original browser-based TeX-in-Wasm compiler.
  2. drgrice1/tikzjax by Glenn Rice — Added Web Worker support, along with additional TeX library and package compilations.
  3. artisticat1/obsidian-tikzjax by artisticat1 — Inspiration for Obsidian integration wrapper that packaged these components.

Note: The underlying TeX engine binaries, format dumps, and LaTeX style packages are distributed under their respective open-source licenses (GPL-3.0+ / LPPL v1.3c).