Toggle Diffs
brevzin opened this issue · 1 comments
brevzin commented
I've seen several papers that provide a check-box to just hide <del>
-ed text from the wording. I think this helps read what the wording is intended to be like, for those papers that change/move around things.
bikeshed has a flag for this.
Is this something mpark/wg21 should provide?
RedBeard0531 commented
I handle this by having a style block at the top of my document containing among other things:
<style>
label { font-weight: bold; }
#hide_rm:checked ~ .wording .rm {
display: none;
}
.wording {
margin-left: 40px;
}
.wording .instruction {
font-size: large;
margin-left: -40px;
}
.wording .grammar {
padding-left: 4em;
word-spacing: .25em;
}
</style>
And a then in the Proposed Wording section I have
# Proposed Wording
```{=html}
<label for=hide_rm>Hide removed wording:</label>
<input type="checkbox" id="hide_rm"></input>
```
::: wording
[Modify [location.name]{.sref} as follows:]{.instruction}
[1]{.pnum} Make it [fail]{.rm}[work]{.add}.
:::
You can see the effect here. Feel free to steal this.