Skip to content

Support Rendering and Visual Editing of TikZ Diagrams #9

Description

@InMDev

Feature Request

Add support within the Modern LaTeX Editor to:

  • Render TikZ diagrams directly in the document preview area.
  • Provide an interactive visual editor for TikZ diagrams, allowing users to modify diagrams using a GUI (drag, resize, add/remove elements) with real-time updates to the underlying LaTeX source.

Motivation

TikZ is widely used for creating high-quality diagrams in LaTeX documents. Making TikZ content both viewable and visually editable will improve user productivity and lower the barrier for editing complex graphics, especially for users less comfortable with coding TikZ directly.

Acceptance Criteria

  • TikZ graphics are rendered accurately in the preview pane.
  • Users can switch between code and visual editing modes for TikZ diagrams.
  • Edits made visually are reflected in the LaTeX source, and vice versa.
  • Common TikZ primitives (nodes, axes, edges, shapes) are supported in the visual editor.
  • Updates should be performant for real-time editing.

Additional Notes

  • Consider using or integrating with libraries like JsTikz or related open-source projects as a foundation.
  • Ensure fallback or error message if TikZ content cannot be rendered or parsed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions