Git Product home page Git Product logo

Comments (4)

davidcarlisle avatar davidcarlisle commented on May 28, 2024 1

Why not providing this as a by default not enabled feature, that could be enabled just with a single command?

That is not impossible to consider, certainly more changes have been made in recent years than in earlier periods but it would mean adding \if@wibble....\fi in several places in the toc code, and the question is how many of

https://ctan.org/topic/toc-etc

patch at that point and would give errors or fail to work as intended if the patch failed....

That said, there need to be changes in that area to support pdf tagging, so if such a feature is going to be considered , adding it at the same time might be a possibility.

Note this isn't closed as not planned it's labeled as long term enhancement, whether that makes a difference in practice we'll see....

from latex2e.

FrankMittelbach avatar FrankMittelbach commented on May 28, 2024 1

But compatibility is not the only issue here. Just taking the maximum is in my experience seldom a good a idea, e.g. TLC3 would have looked rather bad this way and it had a bunch of such issues as well. For example, 10.10.10 which would have made the whole TOC look really ugly if everything would have been based on this. Or the LOT where we have 10.100 that has 5 digits plus a period while most entries have 2 or maximum of 3 digits. So basing everything on xx.xxx would be rather bad.

So basically what I'm saying is that yes there is something that should be offered but in many cases the simple maximum is not good enough for a quality result and instead you need to handtune the exceptions if they are few.

from latex2e.

davidcarlisle avatar davidcarlisle commented on May 28, 2024

You mean in case you spend 30 years enlarging source2e.tex and accidentally go over a thousand pages:-)

This has long been known as a common issue with larger documents (or documents with unusual page formatting) It wouldn't be particularly difficult to keep track of the width and store the maximum (or less computationally expensive just keep track of the largest page (and section) number and assume the typeset version is monotonically increasing in width) you could then write them to the aux and use the widths on the next run.

The problem (as always) is compatibility: it's not clear this can easily be added to the standard classes without impacting the many packages that modify the table of contents layout.

It's certainly a feature that could be considered for any new classes though.

from latex2e.

dbitouze avatar dbitouze commented on May 28, 2024

You mean in case you spend 30 years enlarging source2e.tex and accidentally go over a thousand pages:-)

You read my mind! 😉

This has long been known as a common issue with larger documents (or documents with unusual page formatting) It wouldn't be particularly difficult to keep track of the width and store the maximum (or less computationally expensive just keep track of the largest page (and section) number and assume the typeset version is monotonically increasing in width) you could then write them to the aux and use the widths on the next run.

👍

The problem (as always) is compatibility: it's not clear this can easily be added to the standard classes without impacting the many packages that modify the table of contents layout.

Sigh...

It's certainly a feature that could be considered for any new classes though.

Why not providing this as a by default not enabled feature, that could be enabled just with a single command?

from latex2e.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.