Skip to content

specific ordering of packages inserted by Quick Start wizard#3151

Merged
sunderme merged 5 commits intotexstudio-org:masterfrom
octaeder:orderPackages
Jun 9, 2023
Merged

specific ordering of packages inserted by Quick Start wizard#3151
sunderme merged 5 commits intotexstudio-org:masterfrom
octaeder:orderPackages

Conversation

@octaeder
Copy link
Copy Markdown
Contributor

@octaeder octaeder commented Jun 9, 2023

This PR resolves #2901. The order of \usepackage commands is independent of the order of the list on the Packages tab. Package inputenc is removed.

Test

With these settings:

grafik

the wizard generates:

\documentclass[ngerman,10pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[width=15.00cm, height=24.00cm]{geometry}
\usepackage{graphicx}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{xcolor}
\usepackage{nameref}
\usepackage{babel}
\usepackage{hyperref}
\usepackage{tikz}
\begin{document}

\end{document}

Be aware that package nameref had been added to the packages tab as new package (also tikz) for testing, and is now a duplicate. Even so the wizard doesn't generate usepackage{nameref} a second time. This holds for all default (non user added) packages.

Note: Comment of third commit should say ..., fontenc,..., not userenc.

@sunderme sunderme merged commit 69ff3cf into texstudio-org:master Jun 9, 2023
@sunderme
Copy link
Copy Markdown
Member

sunderme commented Jun 9, 2023

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Order of packages with Quick Start wizard

2 participants