Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle Diffs #42

Open
brevzin opened this issue Jun 23, 2019 · 1 comment
Open

Toggle Diffs #42

brevzin opened this issue Jun 23, 2019 · 1 comment

Comments

@brevzin
Copy link
Contributor

brevzin commented Jun 23, 2019

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants