【发布时间】:2019-03-13 22:36:16
【问题描述】:
在数学文档中,您经常会看到历史上重要的或命名的定理与文档中的其他定理不同。
现在我已经实现了编号定理:
body {
counter-reset: theorem;
}
p.theorem {
display: block;
}
p.theorem::before {
counter-increment: theorem;
content: "Theorem " counter(theorem) " \2014 ";
}
所以上面的内容几乎可以通过以下方式创建:
<p class="theorem">
This is your typical theorem, probably proved by the author of
the current paper, and doesn't need any special decoration.
</p>
<p class="theorem">
This theorem is important enough to warrant attribution to its author and a
reference to the entry in the bibliography where the author proves this theorem.
</p>
但是如何在网页上实现定理的命名/归属呢?天真地必须将一些参数 name 传递给您用于定理的标签,但我认为仅使用 HTML/CSS 是不可能的。如果这是可能的,如果name 也可以是一个超链接,以链接到引用的作品,那就太好了。
另请参阅有关 referencing theorems like you can do with LaTeX 的相关问题。
【问题讨论】: