Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Showcase
  4. YAWYSIWYGEE - Yet another what-you-see-is-what-you-get equation editor (widget)

YAWYSIWYGEE - Yet another what-you-see-is-what-you-get equation editor (widget)

Scheduled Pinned Locked Moved Showcase
2 Posts 2 Posters 1.2k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JohnDTill
    wrote on last edited by
    #1

    YAWYSIWYGEE (https://github.com/JohnDTill/YAWYSIWYGEE) is a Qt widget for inline editing of typeset equations.

    YAWYSIWYGEE

    The target is a code editor style rather than a document editor style (think Notepad++ with equations versus MS Word or LyX). Such an equation code editor could be used for:

    • Computer algebra systems
    • Symbolic math
    • Scientific computing languages
    • Mathematical scratchpads
    • Online forums by compiling to WebAssembly

    The name is perhaps overly self-deprecating; although there are many inline equation editors, there is not an abundance of open source options, and a Qt widget should be useful.

    This is the first large project I've built to completion, and it took ~5 iterations! Math constructs (roots, matrices, etc.) may be nested arbitrarily deep, so documents have a tree structure. The different mathematical constructs are drawn in a QGraphicsScene.

    I floundered around figuring out how to interact with the document, until I realized that the Qt team is never wrong, so I made TypesetDocument and TypesetCursor classes similar to QTextDocument and QTextCursor. I never realized there were so many ways to interact with text editors until I had to implement them all for a tree doc!

    1 Reply Last reply
    10
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Thanks for sharing ! It looks great :-)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved