Tag Info

{catcodes} is about "category codes" — an integer number from 0–15 associated to each of the 256 character codes. The category codes indicate the role of a character.

is about "category codes" — an integer number from 0–15 associated to each of the 256 character codes. The category codes indicate the role of a character.

The following is a list of the sixteen category codes and the Plain TeX settings:

• 0 = Escape character; this signals the start of a control sequence. IniTeX makes the backslash `\` (code 92) an escape character.

• 1 = Beginning of group; such a character causes TeX to enter a new level of grouping. The plain format makes the open brace `{` a beginning-of-group character.

• 2 = End of group; TeX closes the current level of grouping. Plain TeX has the closing brace `}`as end-of-group character.

• 3 = Math shift; this is the opening and closing delimiter for math formulas. Plain TeX uses the dollar sign `\$` for this.

• 4 = Alignment tab; the column (row) separator in tables made with `\halign` (`\valign`). In Plain TeX this is the ampersand `&`.

• 5 = End of line; a character that TeX considers to signal the end of an input line. IniTeX assigns this code to the return, that is, code 13. Not coincidentally, 13 is also the value that IniTeX assigns to the `\endlinechar` parameter.

• 6 = Parameter character; this indicates parameters for macros. In plain TeX this is the hash sign `#`.

• 7 = Superscript; this precedes superscript expressions in math mode. It is also used to denote character codes that cannot be entered in an input file; see below. In Plain TeX this is the circumflex `^`.

• 8 = Subscript; this precedes subscript expressions in math mode. In plain TeX the underscore `_` is used for this.

• 9 = Ignored; characters of this category are removed from the input, and have therefore no influence on further TeX processing. In Plain TeX this is the null character, that is, code 0.

• 10 = Space; space characters receive special treatment. IniTeX assigns this category to the ASCII space character, code 32.

• 11 = Letter; in IniTeX only the characters `a..z`, `A..Z` are in this category. Often, macro packages make some ‘secret’ character (for instance `@`) into a letter.

• 12 = Other; IniTeX puts everything that is not in the other categories into this category. Thus it includes, for instance, digits and punctuation.

• 13 = Active; active characters function as a TeX command, without being preceded by an escape character. In Plain TeX this is only the tie character `~`, which is defined to produce an unbreakable space.

• 14 = Comment character; from a comment character onwards, TeX considers the rest of an input line to be comment and ignores it. In IniTeX the percent sign `%` is made a comment character.

• 15 = Invalid character; this category is for characters that should not appear in the input. IniTeX assigns the ASCII delete character, code 127, to this category.

The user can change the mapping of character codes to category codes with the `\catcode` command.
{"extraction_info": {"found_math": false, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9954121112823486, "perplexity": 3365.7812620208365}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2021-04/segments/1610703564029.59/warc/CC-MAIN-20210125030118-20210125060118-00255.warc.gz"}