No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
forgeadmin cf7bf58986 Add report.tex: numbering that restarts with each chapter
A report restarts its section, subsection and equation counters at every
chapter. This document says so and then demonstrates it, so a rendering that
gets it wrong is visible rather than subtle: chapter 2 opens at 2.1, not 2.3,
and its first equation is (2.1), not (2.2).

It was held back until go-tex/engine v0.204.0, which defines \@addtoreset — the
command report.cls uses to tie the equation counter to the chapter — and makes a
counter reset cascade the way the LaTeX kernel's \@stpelt does.
2026-08-30 15:10:23 +02:00
article.tex Add a tour, a maths sheet and a package; drop a stray token from example.tex 2026-08-26 16:56:43 +02:00
example.tex Add a tour, a maths sheet and a package; drop a stray token from example.tex 2026-08-26 16:56:43 +02:00
gotex-demo.sty Add a tour, a maths sheet and a package; drop a stray token from example.tex 2026-08-26 16:56:43 +02:00
math.tex Add a tour, a maths sheet and a package; drop a stray token from example.tex 2026-08-26 16:56:43 +02:00
README.md Add a tour, a maths sheet and a package; drop a stray token from example.tex 2026-08-26 16:56:43 +02:00
report.tex Add report.tex: numbering that restarts with each chapter 2026-08-30 15:10:23 +02:00

go-tex examples

Sample documents for the go-tex playground.

The playground opens this repository in its workspace, so these are the files you see when it starts. They are ordinary LaTeX — edit them, and the pane on the right re-typesets as you type.

file what it shows
example.tex the document the playground opens with: title block, table of contents, numbered headings, a list, an inline equation
article.tex the tour: sections, mathematics, lists, tables, footnotes, and a package of its own
gotex-demo.sty a small package the article loads, so .sty files are covered too
math.tex a sheet of mathematics: fractions, roots, sums, integrals, Greek

Everything here is typeset by go-tex/engine, a pure-Go (CGO=0) TeX engine, compiled to WebAssembly and running in the browser. No TeXLive, no server.