← Documentation index

ORGDOC-CHECK

NAME
SYNOPSIS
DESCRIPTION
RULES
OPTIONS
OUTPUT
EXIT STATUS
EXAMPLES
SEE ALSO
AUTHOR
COPYRIGHT

NAME

orgdoc-check - check the Org-mode documents of sapupra against the markup rules of the development standard

SYNOPSIS

orgdoc-check [-q|--quiet] [-d|--debug] [FILE.org...]
orgdoc-check -h
|--help
orgdoc-check -V
|--version

DESCRIPTION

orgdoc-check reads Org-mode documents and reports the markup errors that an export to PDF or HTML does not catch: Org exports them without complaint, and they show only on reading the output. With no FILE, it checks every *.org file of the directory where it is installed, the project directory, except Constitution.org (the author’s own document) and the generated version.org.

Source, example and comment blocks, and lines starting with #, are not prose and are not checked.

make check runs it on the project’s documents.

RULES

tag

A description-list tag, the text before :: , must be on the first line of its item. Split over lines, the item silently becomes a plain item, and a list of description items is rendered with some items in one style and the others in another.

slash

Two code or verbatim spans joined by a bare slash, such as ˜a˜/˜b˜, do not parse as two spans; the markers leak into the output. Write ˜a˜ or ˜b˜ instead.

space

A code or verbatim span cannot end with a space, as in ˜$ ˜; the span is not recognized and its markers leak into the output.

break

A code span, between tildes, must open and close on the same line. A line holding an odd number of tildes, once the verbatim spans (between equals signs) are set aside, has a span cut by a line break; Org may still parse it, but a long span that cannot be broken is what makes LaTeX overfill a line, and the rule of the standard is one line.

author

Only the research journal and the future research list name the author; the other documents name him only in their title block (the line #+AUTHOR, which is not prose). The name looked for is the first word of the first line of AUTHORS.

caption

A #+CAPTION: needs a #+NAME: of the form tab:, fig: or lst: with it, and such a name needs a caption; a name is defined once in a document. Without them the list of listings or tables, and the references, silently lose the element.

label

A reference [[tab:x]], [[fig:x]] or [[lst:x]] names a caption of the same document.

link

A link to another document, [[file:X.org::TARGET]], lands: the document exists and holds the section (the text of its headline, without keyword and tags), the table or the listing (lst:, tab:, fig: name), or the glossary entry (<<gl-NAME>>). A link [[*Heading]] lands in its own document. Spans between tildes or equals signs are not links.

glossary

In Design.org, Manual.org and Index.org: the first use, in prose, of a term of the glossary of Concept.org (an entry with a target <<gl-NAME>>) is a link to its entry. A word in a code span, a verbatim span, a heading, a table, a block or a keyword line is not a use, and a plural counts as the word. Six terms are ordinary words and are held by review: item, location, scan, status, input and edition. The documents checked and the terms left out are two variables at the head of the script.

list

In FutureResearch.org: every open item (a headline with TODO, STARTED, WAIT or RESTARTED) is in the ordered list of the Current Status with the same keyword, every entry of the list has its item, the numbers run from 1 without a gap, every item starts with a Ranking: line, no DONE or DISMISSED item stays, and the Reviewed line names the version of the tree (the second line of VERSION).

decisions

In FutureResearch.org: the section Decisions holds items or, when none waits, the sentence Nothing waits and no history, no version number and no link: a decision taken is in the research journal.

OPTIONS

-q, --quiet

Print only the findings, not the closing summary.

-d, --debug

Print the name of each file as it is checked, on standard error.

-h, --help

Print the usage and the rules, and exit.

-V, --version

Print the version of sapupra, read from its VERSION file, and exit.

OUTPUT

Each finding is a line FILE:LINE: RULE: explanation: text, in the form that editors such as Emacs read as a list of errors.

EXIT STATUS

0

Nothing found.

1

At least one finding.

2

Usage error, or a file that cannot be read.

EXAMPLES

Check every document of the project:

./orgdoc-check

Check one document, printing only the findings:

./orgdoc-check -q Concept.org

SEE ALSO

emacs(1), DevelopmentStandard.org, section "LaTeX export conventions".

AUTHOR

Péter Felecan, assisted by Claude Opus 5.5 (Anthropic).

COPYRIGHT

Copyright (C) 2026 Péter Felecan. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.