Skip to contentSkip to conversation

docs: Instruct LaTeX to cope with deeper nesting

PATCH In review Jonathan Corbet 2 participants 5 messages Feb 19, 2024 – Feb 21, 2024 Documentation

lore
Share & tools
lore

Jonathan Corbet

author maintainer
#0 lore raw

PATCH 1/1 docs: Instruct LaTeX to cope with deeper nesting

The addition of the XFS online fsck documentation starting with commit a8f6c2e54ddc ("xfs: document the motivation for online fsck design") added a deeper level of nesting than LaTeX is prepared to deal with. That caused a pdfdocs build failure with the helpful "Too deeply nested" error message buried deeply in Documentation/output/filesystems.log.

Increase the "maxlistdepth" parameter to instruct LaTeX that it needs to deal with the deeper nesting whether it wants to or not.

---
 Documentation/conf.py | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/conf.py +6 -0
index 5830b01c5642..da64c9fb7e07 100644
@@ -388,6 +388,12 @@ latex_elements = {
         verbatimhintsturnover=false,
     ''',
 
+    #
+    # Some of our authors are fond of deep nesting; tell latex to
+    # cope.
+    #
+    'maxlistdepth': '10',
+
     # For CJK One-half spacing, need to be in front of hyperref
     'extrapackages': r'\usepackage{setspace}',
 
Signature · 1 line
2.43.0
Tested-by on v1 1/1
#1 lore raw
Quoted 6 lines · Jonathan Corbet

The addition of the XFS online fsck documentation starting with commit a8f6c2e54ddc ("xfs: document the motivation for online fsck design") added a deeper level of nesting than LaTeX is prepared to deal with. That caused a pdfdocs build failure with the helpful "Too deeply nested" error message buried deeply in Documentation/output/filesystems.log.

Quoted 6 lines

Increase the "maxlistdepth" parameter to instruct LaTeX that it needs to deal with the deeper nesting whether it wants to or not.

And it seems this one might deserve

too, in case someone tries "make pdfdocs" against 6.6.x LTS and 6.7.x stable branches.

Commit a8f6c2e54ddc did nothing wrong on its own, so a Fixes: tag is inappropriate here.

Quoted 9 lines
---
 Documentation/conf.py | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/conf.py +0 -0
index 5830b01c5642..da64c9fb7e07 100644

Documentation/conf.py latex_elements = { · line 393

Quoted 6 lines
Documentation/conf.py +3 -0
@@ -388,6 +388,12 @@ latex_elements = {
         verbatimhintsturnover=false,
     ''',
 
+    #
+    # Some of our authors are fond of deep nesting; tell latex to
+    # cope.

I like this wording! :-)

Thanks, Akira

Quoted 6 lines
Documentation/conf.py +3 -0
+    #
+    'maxlistdepth': '10',
+
     # For CJK One-half spacing, need to be in front of hyperref
     'extrapackages': r'\usepackage{setspace}',
 
author maintainer
#2 lore raw
Quoted 7 lines · Akira Yokosawa
Quoted 6 lines · Jonathan Corbet

The addition of the XFS online fsck documentation starting with commit a8f6c2e54ddc ("xfs: document the motivation for online fsck design") added a deeper level of nesting than LaTeX is prepared to deal with. That caused a pdfdocs build failure with the helpful "Too deeply nested" error message buried deeply in Documentation/output/filesystems.log.

Quoted 8 lines
Quoted 6 lines

Increase the "maxlistdepth" parameter to instruct LaTeX that it needs to deal with the deeper nesting whether it wants to or not.

Thanks

Quoted 6 lines

And it seems this one might deserve

too, in case someone tries "make pdfdocs" against 6.6.x LTS and 6.7.x stable branches.

Agreed, that was in my plans.

Quoted 2 lines

Commit a8f6c2e54ddc did nothing wrong on its own, so a Fixes: tag is inappropriate here.

And a Fixes tag was definitely *not* in the plan.

Thanks,

jon

#3 lore raw
Quoted 27 lines · Jonathan Corbet
Quoted 7 lines · Akira Yokosawa
Quoted 6 lines · Jonathan Corbet

The addition of the XFS online fsck documentation starting with commit a8f6c2e54ddc ("xfs: document the motivation for online fsck design") added a deeper level of nesting than LaTeX is prepared to deal with. That caused a pdfdocs build failure with the helpful "Too deeply nested" error message buried deeply in Documentation/output/filesystems.log.

Quoted 8 lines
Quoted 6 lines

Increase the "maxlistdepth" parameter to instruct LaTeX that it needs to deal with the deeper nesting whether it wants to or not.

Thanks

Quoted 6 lines

And it seems this one might deserve

too, in case someone tries "make pdfdocs" against 6.6.x LTS and 6.7.x stable branches.

Quoted 6 lines

Agreed, that was in my plans.

Quoted 2 lines

Commit a8f6c2e54ddc did nothing wrong on its own, so a Fixes: tag is inappropriate here.

And a Fixes tag was definitely *not* in the plan.

Now I see this in docs-fixes.

BTW, I expected Vergard's fix to the translations extension would also be in the -fixes branch, but it is now in the -mw branch as commit 2bd6f4d99e12.

Can you please have a look at it?

Thanks, Akira

Quoted 4 lines

Thanks,

jon

author maintainer
#4 lore raw
Quoted 3 lines · Akira Yokosawa

BTW, I expected Vergard's fix to the translations extension would also be in the -fixes branch, but it is now in the -mw branch as commit 2bd6f4d99e12.

Yeah, I'd meant to do that, got caught up in the PDF nightmare. I'll put it there; that will force a rebase onto docs-next, but so it goes.

Thanks,

jon