# Messages in English, the fallback for every other language. One message per
# line: the key, blanks, the template. `{field}` is filled in by the code; the
# rest is left alone, LaTeX braces included.
#
# Diagnostic codes are not here: they live in the code, in English, stable, and
# they are what one filters on (see `diagnostics.CATALOGUE`).

# Severities, as displayed
severity.error                                  error
severity.errors                                 errors
severity.warning                                warning
severity.warnings                               warnings
severity.info                                   info
severity.infos                                  infos

# Command line
cli.unreadable                                  {path}: unreadable: {error}
cli.hidden                                      ({count} hidden, see --infos)
cli.stdin-alone                                 `-` reads the standard input: it goes alone, without other paths
cli.stdin-filename-without-stdin                --stdin-filename says what `-` is the content of: give `-` as the path

# Structure: what was never closed
unclosed-brace                                  “{” never closed
unclosed-brace.of                               “{” of “{command}” never closed
unclosed-brace.fix                              close it with “}”
unclosed-bracket                                “[” never closed
unclosed-bracket.of                             “[” of “{command}” never closed
unclosed-bracket.fix                            close it with “]”, or write “{[}” for a bracket in the text
unclosed-math                                   “{opening}” never closed
unclosed-math.fix                               close it with “{closing}”
unclosed-math.fix.blank-line                    close it with “{closing}” before the blank line
unclosed-environment                            “{opening}” never closed
unclosed-environment.fix                        close it with “{closing}”
unclosed-verbatim                               “{opening}” never closed: read to the end of the file
unclosed-verbatim.fix                           close it with “{closing}”
verb-across-lines                               “{opening}” not closed on its line
verb-across-lines.fix                           close it with “{closing}” before the end of the line
verbatim-braces                                 unbalanced braces in “{opening}”: closed at the first “}”

# Structure: what closes badly
extra-brace                                     “}” with no “{” to open
extra-brace.fix                                 remove this “}”, or the “}” that closes the previous group too early
extra-brace.previous                            the previous “{” ({where}) is already closed here
extra-brace.previous.same-line                  line {line}
extra-brace.previous.opened                     opened line {line}
end-without-begin                               “{closing}” without “{opening}”
crossed-environment                             “{opening}” closed by “{closing}”
crossed-environment.fix                         “{end}”, or “{begin}”
crossed-environments                            “{closer}” comes before “{closing}”: crossed environments
crossed-environments.fix                        put “{closing}” before “{closer}”

# Structure: math
dollar-in-math                                  “{dollars}” inside math opened by “{opening}”
dollar-in-math.fix                              close this math with “{closing}”
math-in-math                                    “{control}” inside math already opened by “{opening}”
stray-math-close                                “{control}” without “{opening}” to open it

# Related places
related.math-opened-here                        math opened here
related.opened-here                             opened here
related.opened-here.named                       “{opening}” opened here
related.closed-too-late                         closed here, too late
related.end-before-closing                      “{closing}” comes before it is closed
related.cut-by.environment                      “{closer}” closes the environment around it
related.cut-by.math                             “{closer}” closes the math around it
related.cut-by.group                            “{closer}” closes the group around it
related.blank-line-cuts-group                   the blank line cuts the group
related.blank-line-cuts-math                    the blank line cuts the math
related.brace-in-comment                        a “}” in this comment, line {line}
related.first-blank-line                        first blank line of the group, line {line}: the brace is probably missing before it
related.written-by                              written by “{command}”
related.written-by.inside                       written by “{command}” inside “{outer}”
message.with-origin                             {message}, {origin}

# Meaning: what is matched, but has no business being there
item-outside-list                               “\item” outside any list
item-outside-list.fix                           open a list: “\begin{itemize}” … “\end{itemize}”
item-outside-list.related                       inside “{opening}”, which is not a list
ampersand-outside-alignment                     “&” outside a table or an alignment
ampersand-outside-alignment.fix.math            an alignment (“aligned”, “cases”…)
ampersand-outside-alignment.fix.text            “\&” for the character
ampersand-outside-alignment.related             inside “{opening}”, which aligns nothing
script-outside-math                             “{character}” outside math
script-outside-math.fix                         math (“$x{character}2$”), or “{written}” for the character
double-subscript                                two subscripts in a row on the same symbol
double-subscript.related                        its first subscript
double-subscript.fix                            “x_{a,b}”, “x_{a_b}” or “{x_a}_b”
double-superscript                              two superscripts in a row on the same symbol
double-superscript.related                      its first superscript
double-superscript.fix                          “x^{ab}”, “x^{a^b}” or “{x^a}^b”
double-superscript.fix.prime                    the prime first, being a superscript itself: “f'^2”
script-without-argument                         “{script}” with nothing to take
script-without-argument.fix                     “x{script}2”, or “x{script}{}” for an empty one
missing-delimiter                               “\{command}” followed by “{written}”, which is no delimiter
missing-delimiter.fix                           a delimiter — “(”, “[”, “\{”, “|”… — or “\{command}.” for none
missing-delimiter.fix.brace                     “\{command}\{written}”: a brace is written “\{” or “\}” there
middle-without-left                             “\middle” without “\left” in the same group
middle-without-left.fix                         “\left. … \middle| … \right.”, or “\mid” for a bar of fixed size
limits-without-operator                         “\{command}” after “{atom}”, which is no operator
limits-without-operator.start                   “\{command}” with nothing before it
limits-without-operator.fix                     “\mathop{…}\{command}”, or no “\{command}”
ambiguous-fraction                              a second “\{command}” in the same group as “\{first}”
ambiguous-fraction.related                      the first one
ambiguous-fraction.fix                          “\frac{…}{…}”, or braces around one of them: “{a \over b} \over c”
too-many-columns                                “&” beyond the {count} columns of “{name}”
too-many-columns.related                        “{name}” sets its columns here
too-many-columns.fix                            a column more in the specification, or “\\” to end the row first
too-many-columns.fix.matrix                     “\setcounter{MaxMatrixCols}{{needed}}” for more columns
display-in-math                                 “\begin{{name}}” inside math: it opens a display of its own
display-in-math.related                         the math opened by “{opening}”
display-in-math.fix                             “aligned”, “gathered” or “split” inside the display, or the math closed before
blank-line-in-math                              a blank line inside “{name}”, where TeX ends the math
blank-line-in-math.related                      “{name}” opens the math here
blank-line-in-math.fix                          remove it, or put a “%” on it
multiple-labels                                 a second “\label” on the same equation
multiple-labels.related                         its first label
multiple-labels.fix                             one label per equation; “\\” starts another one
multiple-tags                                   a second “\tag” on the same equation
multiple-tags.related                           its first tag
multiple-tags.fix                               one tag per equation
tag-not-allowed                                 “\tag” inside “{place}”, which numbers nothing
tag-not-allowed.fix                             a numbered display (“equation”, “align”), the tag at the level of its rows
invalid-length                                  “{text}” is not a length
invalid-length.fix                              a number and its unit: “2pt”, “1.5em”, “0.5\linewidth”
invalid-length.fix.row                          after “\\”, “[” opens its spacing: “\\{}[0,1]” for a bracket that starts the next row
misplaced-rule                                  “\{command}” in the middle of a row: it can only start one
misplaced-rule.fix                              “\\” before it, to end the row
misplaced-multicolumn                           “\{command}” after the start of its cell
misplaced-multicolumn.fix                       first in the cell, the rest inside its last argument
unknown-column                                  “{letter}” is no column type
unknown-column.fix                              “l”, “c”, “r” or “p{width}”; another type comes from a package (“array”, “tabularx”) or “\newcolumntype”
text-before-item                                text before the first “\item” of “{name}”
text-before-item.fix                            an “\item” before it, or the text before “\begin{{name}}”
too-deeply-nested                               “{name}” nested {depth} deep: LaTeX stops at {limit}
too-deeply-nested.fix                           fewer levels, or enumitem’s “\setlistdepth” and “\renewlist”
preamble-only                                   “\{command}” after “\begin{document}”: LaTeX only takes it in the preamble
preamble-only.fix                               move it before “\begin{document}”
text-in-preamble                                text before “\begin{document}”
text-in-preamble.fix                            after “\begin{document}”, or behind a “%”
illegal-parameter                               “#{digit}” in “\{command}”, whose definition takes {count}
illegal-parameter.count.none                    no argument
illegal-parameter.count.one                     one argument
illegal-parameter.count.many                    {count} arguments
illegal-parameter.fix                           “[{digit}]” after the name, or “##{digit}” for a definition inside this one
already-defined                                 “{name}” is already defined
already-defined.related                         defined here first
already-defined.fix                             “\renewcommand”, or another name
already-defined.fix.environment                 “\renewenvironment”, or another name
not-a-command-name                              “{text}” is not a command name
not-a-command-name.fix                          “\{text}”
verb-in-argument                                “\verb” inside the argument of “\{command}”
verb-in-argument.related                        “\{command}” reads it
verb-in-argument.fix                            “\texttt{…}”, with “\textbackslash” or “\{” for the special characters
float-in-box                                    “\begin{{name}}” inside “{box}”, where a float cannot open
float-in-box.related                            “{box}” opened here
float-in-box.fix                                the float outside it, or “\captionof” inside it (packages caption, capt-of)
caption-outside-float                           “\caption” outside a float
caption-outside-float.fix                       a “figure” or “table” around it, or “\captionof{figure}{…}” (packages caption, capt-of)
blank-line-in-argument                          a blank line in the argument of “\{command}”, which cannot hold one
blank-line-in-argument.related                  “\{command}” reads it
blank-line-in-argument.fix                      remove it, or put a “%” on it
math-command-in-text                            “{command}” outside math
math-command-in-text.fix                        “{math}”
invalid-in-math                                 “{command}” inside math, where LaTeX refuses it
invalid-in-math.related                         the math opened by “{opening}” is still open here
invalid-in-math.fix                             close the math before it, or remove the “$” that opened it too early
missing-argument                                “{command}”: {count} missing out of {mandatory}
missing-argument.count.one                      {count} mandatory argument
missing-argument.count.many                     {count} mandatory arguments
missing-argument.fix                            signature “{spec}”
missing-argument.related.blank-line             the blank line stops the reading of arguments
missing-argument.related.environment            an environment cannot be an argument
missing-argument.related.instead                read in place of the argument
missing-argument.related.closing                “{closing}” comes before the argument
left-without-right                              “\left” without “\right” in the same group
left-without-right.fix                          close it with “\right”, or “\right.” with no delimiter
left-without-right.related                      “{closing}” closes the group first
left-without-right.related.end-of-group         the end of the group
right-without-left                              “\right” without “\left” in the same group
right-without-left.fix                          open it with “\left”, or “\left.” with no delimiter
left-across-cells                               “\left” opened before “{separator}”: every cell of an alignment is a group
left-across-cells.fix                           close with “\right.” before it, and open again with “\left.” after
left-across-cells.related                       “\left” opened here
line-break-without-line                         “\\” with no line to end
line-break-without-line.fix                     remove “\\”, or space it out with “\medskip” or “\vspace{…}”
line-break-without-line.related.blank-line      after the blank line, no paragraph has begun
line-break-without-line.related.environment     “{closing}” ends between two paragraphs
line-break-without-line.related.none            no paragraph has begun
file-not-found                                  “{command}”: file not found
file-not-found.fix                              looked for in the document's folder, then through kpsewhich
file-not-found.fix.include                      LaTeX only warns (“No file”), and the chapter is missing from the document
unknown-command                                 “{command}” unknown: “{match}”?
unknown-environment                             environment “{name}” unknown: “{match}”?
