Draft editable LaTeX for Gitea equation scans with CometAPI

Give textbook editors a LaTeX draft of one scanned equation on their review branch, linked to the exact source revision.

25 stepsProductivity

Free to start, no card required.

How it works

  1. When this happens

    An editor opens a textbook issue

    Gitea

  2. Step 1 · Code

    Identify the textbook review request

  3. Step 2

    Check the textbook editor

    Follows the first path that matches

    • Textbook editor opened the issue

      1. Step 3 · Gitea

        Verify the public textbook repository

      2. Step 4 · Gitea

        Check the existing draft branch

      3. Step 5 · Gitea

        Read the editor’s original request

      4. Step 6 · Code

        Locate the approved equation crop

      5. Step 7

        Check the equation request

        Follows the first path that matches

        • Editor chose a cleared crop

          1. Step 8 · Gitea

            Read the PNG at the pinned commit

          2. Step 9 · Code

            Verify the cropped equation image

          3. Step 10 · Gitea

            Look for this equation draft

          4. Step 11 · Code

            Check for an existing revision

          5. Step 12

            Check if a draft is needed

            Follows the first path that matches

            • No existing draft

              1. Step 13 · Gitea

                Reserve the equation review file

              2. Step 14 · Gitea

                Read the equation reservation

              3. Step 15 · Code

                Verify the reserved file revision

              4. Step 16

                Check who reserved the draft

                Follows the first path that matches

                • This run holds the file

                  1. Step 17 · CometAPI

                    Transcribe the formula with vision

                  2. Step 18 · Code

                    Check the editable math fragment

                  3. Step 19

                    Select a readable math fragment

                    Follows the first path that matches

                    • Recognized math notation

                      1. Step 20 · Gitea

                        Recheck the open editorial request

                      2. Step 21 · Code

                        Check the editor’s authorization

                      3. Step 22

                        Check for a current request

                        Follows the first path that matches

                        • Editor still requests the draft

                          1. Step 23 · Gitea

                            Fill the reserved equation draft

                          2. Step 24 · Code

                            Verify the new review file

                        • Otherwise

                          Nothing happens

                    • Otherwise

                      Nothing happens

                • Otherwise

                  Nothing happens

            • Otherwise

              Nothing happens

        • Otherwise

          Nothing happens

    • Otherwise

      Nothing happens

Before you start

Choose the public Gitea textbook repository, its editor’s username, the folder of cleared PNG equation crops and an existing review branch. Connect a CometAPI vision model available on your account for the first draft. The editor opens an issue with a single line in the form “equation COMMIT PATH”, using the full commit hash and PNG path, and an empty transcription leaves a marked file for manual review.

Accounts to connect

Your first automationstarts with one sentence.

Start free with 1,000 credits, no card needed. Rather have it done for you? Our team builds it.

Use template