Uwe Stöhr wrote:
> You could indeed imagine a context menu item in the TOC "Insert reference to section", that will > insert a label and a reference at once. Or one can think of a second tab in the cross-reference
> dialog showing all sections too.

We've had this discussion several times the last years. Auto-labeling is not useful.

I'm not sure that this has been agreed. I often find it annoying that, to reference a section, I have to go create the label, then return to the point where I want to insert the reference. The reference is what I care about. The label is just a piece of machinery I don't care about.

When I write a document, why should the list of labels be polluted with labels I don't reference? This way writing a book would be horror. But when the automatic labels don't appear in the list of referable labels, then they are useless, because their only purpose is to reference them.

Automatic labels wouldn't need to appear there unless they had been referenced. The idea would be that you could reference a section (say) directly from the TOC. Things you'd already referenced could then appear in that list, along with any "explicit" labels you'd defined.

Furthermore keep in mind that we need to output clean LaTeX. When you give your document to the publisher and have hundreds of unnecessary labels you'll get troubles or they even reject your manuscript.

The labels can be output only if they're referenced. That might need some kind of double pass, but I'll bet the reference cache could be used for this purpose already.

Richard

Reply via email to