schnorr / infufrgs

Latex templates for documents of INF/UFRGS
http://www.inf.ufrgs.br/utug/
GNU General Public License v2.0
153 stars 92 forks source link

tocstyle deprecated, update for using tocbasic #63

Open bernardohenz opened 3 years ago

bernardohenz commented 3 years ago

tocstyle has been withdrawn from the koma-script bundle in july 2020, and is being considered as obsolete. I believe that tocbasic should be used instead.

fcicc commented 3 years ago

I suggest to include tocstyle.sty in inputs folder while this issue is not addressed. I shall open a PR for that.

schnorr commented 3 years ago

Hi @bernardohenz , thanks for that comment. Do you think we can replace tocstyle by tocbasic straightway?

bernardohenz commented 3 years ago

I was able to replace tocstyleby tocbasic, but then all the following commands (\settocfeature) stopped to work.

By removing such commands, I was able to compile, but the layout was changed a bit (take a look at the picture) image

If the new layout is acceptable, I can open a PR for this.

fcicc commented 3 years ago

I think that these differences are not acceptable according to ABNT rules. But I think that these differences can be worked to fit the ABNT style. If this is actually possible, your solution is more adequate than mine :)

schnorr commented 3 years ago

While we keep looking for an alternative to tocstyle (it seems tocbasic is not fully okay yet), I've merged PR #65 to include a version of the tocstyle.sty locally. I'll keep this issue open to keep on discussing on how could we replace tocstyle.sty and still keep following the established rules for the TOC.

FranciscoKnebel commented 2 years ago

Tex Live 2021 (default in Overleaf, even if cloning old documents) removed the deprecated tocstyle package.

For Overleaf users, setting to version 2020 fixes the import error. image

yusefmhg commented 2 years ago

Using tocbasic is possible to define the entries style:

image

The only issue is you can't use \MakeUppercase (which is itself a bad practice). I used Small Caps (\scshape) in the example. I think this is a better option than \MakeUppercase, but I don't know if it is acceptable by ABNT (frankly infuriating) standartd.

If this example is acceptable, I'll submit a push request. Otherwise, I'll find an alternative for \MakeUppercase.