[Tex/LaTex] Changing default paper size for TeX Live

paper-sizetexlive

I installed TeX Live. It had originally asked what I wanted the default paper size to be. I forgot to change it from A4 to Letter. Now the default paper size is A4.

How can I change the default size to Letter now that it is installed? The installation took several hours so I do not want to go through it again.

When setting a default paper size during set up what exactly happens during install?

I realize that I can specify a paper size in the header of the document but am trying to set the default to what it should have been.

Best Answer

From the command line, you can call tlmgr with the paper option to see what the default setting is, and change it if you supply an argument. So use

tlmgr paper letter

From the tlmgr documentation on paper:

paper

paper [a4|letter]
[xdvi|pdftex|dvips|dvipdfmx|context|psutils] paper [papersize|--list]
paper --json

With no arguments (tlmgr paper), shows the default paper size setting for all known programs.

With one argument (e.g., tlmgr paper a4), sets the default for all known programs to that paper size.

With a program given as the first argument and no paper size specified (e.g., tlmgr dvips paper), shows the default paper size for that program.

With a program given as the first argument and a paper size as the last argument (e.g., tlmgr dvips paper a4), set the default for that program to that paper size.

With a program given as the first argument and --list given as the last argument (e.g., tlmgr dvips paper --list), shows all valid paper sizes for that program. The first size shown is the default.

If --json is specified without other options, the paper setup is dumped in JSON format. For the format of JSON output see tlpkg/doc/JSON-formats.txt, format definition TLPAPER.

Incidentally, this syntax of having a specific program name before the paper keyword is unusual. It is inherited from the longstanding texconfig script, which supports other configuration settings for some programs, notably dvips. tlmgr does not support those extra settings.