dbitouze · GitHub

Describe the feature and the current behavior/state

The order in which packages are inserted with the Quick Start wizard doesn't follow usual advises. AFAIK:

  • inputenc and fontenc should preferably be the first ones,
  • babel should be the last one, except exceptions,
  • hyperref is such an exception and should be the last one, except exceptions (cleveref is a notable one).

Currently, if all the packages are asked, they are inserted in the following order.:

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{mathtools}
\usepackage{amsthm}
\usepackage{nameref}
\usepackage{thmtools}
\usepackage{xcolor}

A better one would be:

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{xcolor}
\usepackage{nameref}
\usepackage{babel}
\usepackage{hyperref}

Who will benefit with this feature?

Everybody who is relying on the Quick Start wizard.

Read the original on github.com ↗