interplane.Get Omega
Read in your language

omtex

aien-dev/omtex

Brought by drakestapleton

branch main Branches Tags History

omtex / README.md

122 lines · 5818 bytes Raw Blame History Source

omtex: write papers in Omega, publish LaTeX and PDF

Human-Directed Agentic Engineering

Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions.

For the documented method and a systems-software case study, see Gregory M. Kurtzer, [*Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering* (2026)](https://doi.org/10.5281/zenodo.23682548).

omtex is an Omega library (lib/omtex.om). A paper is an Omega program that calls omtex words such as title, section, para, equation, figure, table, bibitem and omlisting. Compiled with the pinned seeded compiler, the program writes the paper's LaTeX to stdout. pdflatex then makes the PDF.

Design and rationale: docs/DESIGN.md. omtex is a library, not a target latex in omc.

Quick start

Needs Linux AArch64 (the pinned omc emits arm64 ELF), git, sh, and TeX Live with cm-super (see DEPENDENCIES.md).

git clone https://github.com/aien-dev/omtex.git && cd omtex
tools/build.sh examples/hello/hello.om build/hello     # fetches the pinned omc on first use
tests/run.sh                                           # TESTS pass=59 fail=0 not_run=0

tools/build.sh checks the omc sha256 against tools/pin.sh and refuses any other compiler. Set OMC to use an existing copy of the pinned seed/out/omc. The build:

  1. concatenates lib/omtex.om with the paper (Omega has no imports yet) and compiles it;
  2. runs the program to produce paper.tex;
  3. runs paper.gen check OMC DIR to compile every Omega listing;
  4. runs pdflatex (and bibtex if the paper uses it) until references settle. An unresolved reference fails the build.

A paper

text o1 "11pt"
text c1 "article"
text fe "fontenc"
text fo "T1"
text t1 "Hello from *Omega*"
text a1 "M. Drake Stapleton"
text s1 "Intro"
text l1 "sec:intro"
text p1 "Costs 5% & more_stuff, see Section[#sec:intro]; \"quoted\" and `a_b{c}` and $x^2 + y_{i}$ and **bold *nested* bold**."
fn main to int
docclass o1 c1
usepkgo fo fe
title t1
author a1
begindoc
maketitle
sectionl s1 l1
para p1
enddoc
ret 0
end

This is examples/hello/hello.om. Each word takes the names of Omega text constants as arguments.

PhaseWords
preambledocclass opts cls, usepkg name, usepkgo opts name, preamble line, omlang, title, author, date
documentbegindoc, maketitle, docabstract, enddoc
structuresection, sectionl t label, sectionn (unnumbered), subsection, subsectn
textpara, paran (no indent), prose (does not end the paragraph), parbreak, rawtex (math-checked)
listsitemize, itemizeo opts, enumerate, item, endlist
mathequation, equationl label m, displaymath, align
floatsfigure path caption label, table caption label spec, cell, row, hline, endtable
referencesbibbegin, bibitem key text, bibtex style file
listingscodelang name, listing, omlisting, omrefuse rc, omfragment (each caption label body)

Examples:

Reproductions

Both papers were reproduced from Omega source. In each case the PDF text matches the published PDF with 0 differing lines, and every page is pixel-identical to the original .tex built with the same pdfTeX. Details, including the remaining source-level differences, are in evidence/REPRODUCTION.md. Run the comparison with tools/compare.sh.

Zenodo

tools/zenodo-draft.sh creates an unpublished draft (new) or a new-version draft of a published record (newversion), uploads the PDF, and checks the md5. show and discard also exist. It never publishes: any URL containing publish is refused, and the run fails unless the deposition is still an unsubmitted draft afterwards. Publishing is done by a person in the Zenodo web UI.

atlas-vault run ZENODO_TOKEN -- sh tools/zenodo-draft.sh new build/listings/paper.pdf examples/listings/zenodo.json
atlas-vault run ZENODO_TOKEN -- sh tools/zenodo-draft.sh newversion 23547811 build/omega-language/paper.pdf

--sandbox uses sandbox.zenodo.org with ZENODO_SANDBOX_TOKEN. Runs against zenodo.org are in evidence/zenodo-*.txt.

License

Apache License 2.0 with LLVM Exceptions; see LICENSE and NOTICE.