Zulip Chat Archive

Stream: mathlib4

Topic: Docs moving the operator


Kenny Lau (Jun 10 2025 at 15:21):

https://leanprover-community.github.io/mathlib4_docs/Mathlib/AlgebraicGeometry/Pullbacks.html#AlgebraicGeometry.pullbackSpecIso

image.png

Spot the !

Kenny Lau (Jun 10 2025 at 15:21):

this might be intended?

Aaron Liu (Jun 10 2025 at 15:29):

It works fine if you have a very wide screen

Peiran Wu (Jun 10 2025 at 15:34):

Besides the gap, it's really hard to tell which tokens are arguments to pullback and which are on the right hand side of , especially with so many brackets

Peiran Wu (Jun 10 2025 at 15:35):

I had to read the source to be sure

Aaron Liu (Jun 10 2025 at 15:40):

Not exactly the most intuitive
image.png

Christian Merten (Jun 10 2025 at 15:41):

Previous discussion: #general > docgen strange position of equals sign. I recommend to not use the documentation pages when working on algebraic geometry in mathlib, the alignment issue combined with the missing notation for CategoryTheory.CategoryStruct.comp, make the doc pages much harder to read than the source code.

Kenny Lau (Jun 10 2025 at 15:42):

Christian Merten said:

I recommend to not use the documentation pages when working on algebraic geometry in mathlib

My intention here is to raise issues about the docs so that they could be potentially fixed in the future

Kyle Miller (Jun 10 2025 at 17:39):

I've looked into trying to fix this before. The issue is that the CSS uses padding and negative text-indent to try to lay things out.

It's an important known issue, but we've been leaving it be for now.

Weiyi Wang (Jun 11 2025 at 03:58):

if the layout is hard to fix, is it possible to make the doc react to cursor, similar to how infoview does? At least, it can change the background when you move the cursor to show which terms are grouped together. Bonus point if it also displays types as a tooltip

Kyle Miller (Jun 11 2025 at 04:30):

It looks like there's some CSS there already for adjusting background colors on hover, but it doesn't seem to do anything.


Last updated: Dec 20 2025 at 21:32 UTC