Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several not needed packages and other not recommended code #4

Open
cabohah opened this issue Jul 5, 2023 · 0 comments
Open

Several not needed packages and other not recommended code #4

cabohah opened this issue Jul 5, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@cabohah
Copy link

cabohah commented Jul 5, 2023

scrbook option BCOR1.0cm is deprecated. You should use BCOR=1.0cm.

scrbook option DIV11 is deprecated. You should use DIV=11.

It does not make any sense to load package color, when package xcolor is used.

It does not make any sense to load package pgf, when package tikz is also used.

The KOMA-Script author recommends to use option headheight instead of manually changing \headheight after calculation of the margins and typing area.

Command \pagestyle{scrheadings} is not needed, because it is automatically used by loading package scrlayer-scrpage.

Command \setheadwidth is deprecated. You should use option headwidth instead.

Command \setheadsepline is deprecated. You should use option headsepline instead.

Package hyperref does not need option pdftex and its usage is not really recommended, e.g., because of XeLaTeX, LaTeX → dvips/dvipdfm, etc.

For older versions of hyperref it would be recommended to not use string options of hyperref like pdftitle with \usepackage, because of encoding issues. It would be better to setup such options using \hypersetup. If your template is for newer versions only, it would not make sense to use \usepackage[utf8]{inputenc}, because this is the default for more than 5 years.

It is recommended to load hyperref as late as possible, e.g., after titlesec. However, there is a known issue with combination of titlesec and hyperref. See section 11.1.37 of the hyperref manual.

It is not recommended to combine titlesec with KOMA-Script classes. Instead it is recommended to use \RedeclareSectionCommand, redefine \chapterlinesformat etc. This would also avoid the issue mentioned above and you won't need option standardsections of package scrhack.

Instead of loading colortbl you could simply add option table to \usepackage[…]{xcolor}.

For URLs in author, I would recommend to use \url or better \urldef, because it is an URL in the argument of another command.

@timkpaine timkpaine added enhancement New feature or request help wanted Extra attention is needed labels Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants