youfoundjk_TeXcore/docs/configuration/settings.md
Jovi Koikkara eea4d67e3e
feat(tikz): major rendering, layout, and editor enhancements (#1)
Fixes
- WebAssembly & initialization
  - Fix TikZJax WebAssembly initialization issues.

- Fonts & symbol rendering
  - Override DVI parser `machine.putText` to use split character code offsets from `tikzjax.js`.
  - Map codes 0–9 starting at 161 to fix incorrect Γ rendering (was showing as Θ).
  - Map codes 10–19 starting at 173 to resolve Ω and ⊗ collisions with soft hyphen.

- Layout & rendering
  - Fix SVG clipping by switching to `position: relative` with `overflow: visible`.
  - Adjust inline SVG behavior to prevent top-of-page clipping.

- Type compatibility
  - Cast types to `unknown` in `TikzJaxLoader` and worker functions for compatibility.

- Error handling & cleanup
  - Improve error handling across TikZ components.
  - Remove unused dependencies and unnecessary console logs.

Features
- Package loading system
  - Add robust dependency resolution in `loader.ts` for:
    - `tikz-cd`
    - `tikz-feynhand`
    - `pgfcalendar`
  - Ensure required libraries and keys load dynamically on demand.

- Rendering & layout improvements
  - Enhance SVG bounding box calculation.
  - Implement dynamic column width calculation.
  - Improve row and column layout alignment and responsiveness.

- TikZ editor enhancements
  - Add keyboard shortcut tooltips to sidebar buttons.
  - Introduce thickness control slider for elements.
  - Improve snapping system with modes:
    - grid
    - half
    - none
  - Add support for new shapes:
    - circles
    - rectangles
    - triangles
  - Improve TikZ code generation error handling.

Improvements
- Selection & editing UX
  - Add lasso selection for multiple vertices in `CanvasGrid`.
  - Support multi-element editing in `RightSidebar`.
  - Refactor `TikzEditorModal` to handle multiple selected vertices.
  - Enable batch updates for selected elements.

- Layout & styling
  - Compact `.block-language-tikz` layout:
    - margin: `1.5em 0` → `0.3em 0`
    - padding: `1rem 0` → `0`
  - Improve canvas controls and interaction styles.

- Component refactoring
  - Refactor `CanvasGrid` to use template literals.
  - Replace inline styles with `setCssStyles`.
  - Improve `TikzCodec` node naming clarity.
  - Improve `history manager` type safety with `EditorElement`.
  - Use `window.setTimeout` in asset manager for better compatibility.

- Accessibility & UI polish
  - Improve sidebar button titles and tooltips.
  - Standardize live preview overlay button titles.
  - Clean up modal styling and text consistency.

Documentation
- Revamp TeXcore plugin documentation:
  - Clarify PDF export features and settings.
  - Improve quick preview architecture explanation.
  - Enhance equation search and autocomplete docs.
  - Streamline snippets usage and transformations.
  - Expand TikZ diagrams section with graphical editor guide.
  - Improve getting started guide with clearer steps.
  - Add navigation and configuration updates.

- Update plugin manifest descriptions for clarity.
2026-06-06 12:08:11 +02:00

5.1 KiB
Raw Blame History

Settings Reference

Configure TeXcore to adapt to your academic writing workflow. This page outlines all settings grouped by feature categories.


Equation Numbering & Referencing

Adjust how equations are counted, tagged, and linked inside Obsidian. For details on how math indexing operates, see the Equation Numbering Guide.

Setting Name Type & Default Description
Number only referenced equations Toggle (On) Only add number tags to equations that have at least one active reference in the note. Unreferenced equations remain unnumbered.
Equation number prefix Text (empty) Appends custom characters before the equation number. Example: § renders as (§1).
Equation number suffix Text (empty) Appends custom characters after the equation number. Example: . renders as (1.).
Equation number initial count Number (1) The starting integer for equation counting. Set to 0 to begin from zero.
Equation number style Dropdown (arabic) The numeric formatting system used. Options: arabic (1, 2, 3), alph (a, b, c), Alph (A, B, C), roman (i, ii, iii), Roman (I, II, III).
Reference link prefix Text (empty) Character string injected before references. Example: Eq. renders as Eq.(1).
Reference link suffix Text (empty) Character string injected after references.
Show note title in equation link Toggle (On) Format for display links. On resolves to Note Title > (1); Off resolves to (1).

Customize the autocompletion popup and fuzzy search indexing behaviors. For search behavior explanations, consult the Search and Autocomplete Guide.

Setting Name Type & Default Description
Enable autocompletion Toggle (On) Enables the popup suggestion list while editing.
Trigger for autocompletion Text (\eqref) The character trigger sequence that opens the autocomplete suggestions dropdown.
Render math in suggestions Toggle (On) Render LaTeX formulas dynamically inside suggestion listings. Disabling shows raw code.
Search method Dropdown (Fuzzy) Matches query to equations. Options: Fuzzy (allows typos/partial matching) or Simple (exact substring matching).
Modifier to jump Key Selection (Mod) (1) Keyboard modifier key held down when selecting a suggestion to jump to the equation instead of inserting it.
Show modifier instruction Toggle (On) Shows hint key instructions inside the autocomplete popup window.
Open location Dropdown (Current tab) Select editor layout focus when jumping. Options: Current tab, Split right, Split down, New tab, New window.
  1. Mod defaults to ++ctrl++ on Windows/Linux and ++cmd++ on macOS.

PDF Export

Configure default options for the compiled PDF output. Learn about layout customization on the PDF Export Page.

Setting Name Type & Default Description
Add file name as title Toggle (On) Prepends the markdown file name as an <h1> element at the start of the compiled PDF.
Display headers Toggle (On) Renders headers on each page. Custom templates can be set under Advanced settings.
Display footer Toggle (On) Renders footers on each page.
Print background Toggle (Off) Includes editor background colors and styling assets in PDF print output.
Generate tagged PDF Toggle (Off) Generates accessible PDF document structures containing layout tags (experimental).
Max headings level of outline Dropdown (6) Maximum outline depth (h1h6) parsed to build PDF bookmark trees.
PDF metadata Toggle (Off) Extracts yaml frontmatter parameters to populate PDF document metadata fields.

Advanced PDF Settings

Customize HTML layout templates and manage style overrides during compilation.

Setting Name Type & Default Description
Header Template Textarea (standard layout) Custom HTML template for page headers. Supports class variable tags (e.g. date, title).
Footer Template Textarea (standard layout) Custom HTML template for page footers. Supports class variable tags (e.g. pageNumber, totalPages).
Add timestamp to filename Toggle (Off) Appends the export compile timestamp to the output .pdf filename.
Select CSS snippets Toggle (Off) Allows choosing disabled CSS snippets to compile and apply to PDF layout only.
Limit concurrent renders Text (5) Limit concurrent parallel rendering tasks during folder/batch exports.

Snippets & Debugging

Setting Name Type & Default Description
Manage Snippets Modal Dialog Add, edit, or remove custom LaTeX command snippets triggered via the Command Palette.
Debug mode Toggle (Off) Enables the Debug button in the PDF export dialog to open Electron DevTools for inspecting the render webview.