Change sectsty to titlesec in iacrtrans.cls #42
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this version a few lines have been changed to replace sectsty by titlesec.
The package titlesec [3] functions equivalently to sectsty, although it is a bit more complex and powerful (it is referenced a few times in the sectsty documentation [1], likewise titlesec mentions sectsty [2]).
The biggest reason for this change is that it gets rid of these annoying warnings when using sectsty (i have not found a way to suppress them when still keeping sectsty):
This is quite a pedantic reason for a change, I know. These warnings could be ignored with no consequence.
On the technical side: a few lines in iacrtrans.cls were changed, There is no direct
\allsectionsfontequivalent in titlesec, but \section, \subsection, \subsubsection, \paragraph and \subparagraph are all of the sectional headings in thearticledocument class (which iacrtrans herits from), so individually specifying each\titleformatis equivalent.[1] https://distrib-coffee.ipsl.jussieu.fr/pub/mirrors/ctan/macros/latex/contrib/sectsty/sectsty.pdf
[2] https://ctan.ceremade.dauphine.fr/macros/latex/contrib/titlesec/titlesec.pdf
[3] https://ctan.org/pkg/titlesec