wg21 icon indicating copy to clipboard operation
wg21 copied to clipboard

Add an "old" attribute to the pnum class to indicate pnum changes

Open ojhunt opened this issue 1 year ago • 3 comments

This does not effect the markup, and allows a purely css highlighting model for the changes. We intentionally use the ::before pseudo element to inject the content so that it does not screw up selection of text (e.g. only the "real" text of the change is eligible for selection).

ojhunt avatar Dec 22 '24 21:12 ojhunt

What are your thoughts on this approach? I couldn't work out a way to get similar semantics in latex, my prior approach has been [1.1->1.2]{.pnum} style notation which is kind of ugly

ojhunt avatar Dec 25 '24 21:12 ojhunt

For what it's worth, I never change numbers. I just insert fake numbers in the middle. I think this makes it easier to look at the old wording, since the numbers are stable. So if I want to add two paragraphs between the existing 2 and 3, instead of inserting 3 and 4 and renumbering 3 to 5, I'll insert 2a and 2b (or 2+1 and 2+2, or some other cheeky thing).

brevzin avatar Jan 01 '25 20:01 brevzin

For what it's worth, I never change numbers. I just insert fake numbers in the middle. I think this makes it easier to look at the old wording, since the numbers are stable. So if I want to add two paragraphs between the existing 2 and 3, instead of inserting 3 and 4 and renumbering 3 to 5, I'll insert 2a and 2b (or 2+1 and 2+2, or some other cheeky thing).

Do you have an example paper? I've been doing [x->y]{.pnum} but I didn't like that either

ojhunt avatar Jan 01 '25 20:01 ojhunt