Class option belongs to another key
classoption passes options straight to the document class, and the list is
open — KOMA targets accept their own DIV=12, BCOR=10mm, headings=small. A
few values are rejected anyway. A size arriving this way takes effect while
skipping the checks its own key runs, so a mistake in it goes unreported;
landscape is honored or ignored depending on how the page was composed. The
build stops rather than let either through.
What it looks like
classoption: [a5paper, 12pt]
ERROR: classoption 'a5paper' sets the page size
Use papersize: a5 instead.
See https://keystone.knight-owl.dev/errors/misrouted-classoption/
Only the first offender is reported. A base size alone reads:
ERROR: classoption '12pt' sets the base font size
Use fontsize: 12pt instead.
See https://keystone.knight-owl.dev/errors/misrouted-classoption/
KOMA's paper=a5 spelling is rejected the same way as a5paper. Landscape
reports separately:
ERROR: classoption 'landscape' applies only with geometry: auto
This document lays out its own page.
Put landscape among its geometry options: geometry:
inner=30mm,outer=20mm,landscape
See https://keystone.knight-owl.dev/errors/misrouted-classoption/
What it means
It sets a size that has its own key
A page size belongs to papersize, a base font size to fontsize.
Move the value to the key that owns it
Everything else in the list stays where it is.
papersize: a5
fontsize: 12pt
classoption: [twocolumn]
It sets landscape, which has a key only some of the time
Under geometry: auto the engine composes the page and classoption: landscape
turns it, which is the supported spelling. Give geometry options of your own
and the page is yours, so landscape belongs among them. LaTeX honors it in one
of those places and ignores it in the other, so Keystone asks for the one that
always works.
Move landscape into your geometry options
It belongs beside them. Reverting to geometry: auto also works, and hands
the page back to Keystone.
geometry: inner=30mm, outer=20mm, landscape
Related
- Unknown page size — the check
papersizeruns. - Unsupported font size — the check
fontsizeruns.