Skip to main content
Source Link
Heiko Oberdiek
  • 4.1k
  • 1
  • 19
  • 28

e-TeX, 21 bytes

\the\numexpr`*`j\bye

It contains an invisible control character with code 19 (0x13) before the asterisk. A version with printable ASCII characters needs two more bytes:

\the\numexpr`^^S*`j\bye 

In TeX ` takes the character code of the next token:

  • [0x13] (^^S): 19
  • j: 106

\numexpr calculates: 19 * 106 = 2014

The result is a DVI file with "2014" on the first page.

Variant with 2014 as page number:

\pageno\numexpr`^^S*`j~\bye 

(25 bytes, if ^^S is replaced by the byte with character code 19).

Post Made Community Wiki by Heiko Oberdiek