* [PATCH] docs: Instruct LaTeX to cope with deeper nesting
@ 2024-02-19 16:05 Jonathan Corbet
2024-02-20 15:28 ` Akira Yokosawa
0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Corbet @ 2024-02-19 16:05 UTC (permalink / raw)
To: linux-doc; +Cc: Akira Yokosawa, Mauro Carvalho Chehab, Vegard Nossum
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.
Suggested-by: Akira Yokosawa <akiyks@gmail.com>
Link: https://lore.kernel.org/linux-doc/67f6ac60-7957-4b92-9d72-a08fbad0e028@gmail.com/
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
---
Documentation/conf.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/conf.py b/Documentation/conf.py
index 5830b01c5642..da64c9fb7e07 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -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}',
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] docs: Instruct LaTeX to cope with deeper nesting
2024-02-19 16:05 [PATCH] docs: Instruct LaTeX to cope with deeper nesting Jonathan Corbet
@ 2024-02-20 15:28 ` Akira Yokosawa
2024-02-20 21:55 ` Jonathan Corbet
0 siblings, 1 reply; 5+ messages in thread
From: Akira Yokosawa @ 2024-02-20 15:28 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc
Cc: Mauro Carvalho Chehab, Vegard Nossum, Akira Yokosawa
On Mon, 19 Feb 2024 09:05:38 -0700, Jonathan Corbet wrote:
> 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.
>
> Suggested-by: Akira Yokosawa <akiyks@gmail.com>
> Link: https://lore.kernel.org/linux-doc/67f6ac60-7957-4b92-9d72-a08fbad0e028@gmail.com/
> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Tested-by: Akira Yokosawa <akiyks@gmail.com>
And it seems this one might deserve
Cc: stable@vger.kernel.org # v6.4
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.
> ---
> Documentation/conf.py | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/Documentation/conf.py b/Documentation/conf.py
> index 5830b01c5642..da64c9fb7e07 100644
> --- a/Documentation/conf.py
> +++ b/Documentation/conf.py
> @@ -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
> + #
> + 'maxlistdepth': '10',
> +
> # For CJK One-half spacing, need to be in front of hyperref
> 'extrapackages': r'\usepackage{setspace}',
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] docs: Instruct LaTeX to cope with deeper nesting
2024-02-20 15:28 ` Akira Yokosawa
@ 2024-02-20 21:55 ` Jonathan Corbet
2024-02-21 1:44 ` Akira Yokosawa
0 siblings, 1 reply; 5+ messages in thread
From: Jonathan Corbet @ 2024-02-20 21:55 UTC (permalink / raw)
To: Akira Yokosawa, linux-doc
Cc: Mauro Carvalho Chehab, Vegard Nossum, Akira Yokosawa
Akira Yokosawa <akiyks@gmail.com> writes:
> On Mon, 19 Feb 2024 09:05:38 -0700, Jonathan Corbet wrote:
>> 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.
>>
>> Suggested-by: Akira Yokosawa <akiyks@gmail.com>
>> Link: https://lore.kernel.org/linux-doc/67f6ac60-7957-4b92-9d72-a08fbad0e028@gmail.com/
>> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
>
> Tested-by: Akira Yokosawa <akiyks@gmail.com>
Thanks
> And it seems this one might deserve
>
> Cc: stable@vger.kernel.org # v6.4
>
> too, in case someone tries "make pdfdocs" against 6.6.x LTS
> and 6.7.x stable branches.
Agreed, that was in my plans.
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] docs: Instruct LaTeX to cope with deeper nesting
2024-02-20 21:55 ` Jonathan Corbet
@ 2024-02-21 1:44 ` Akira Yokosawa
2024-02-21 20:31 ` Jonathan Corbet
0 siblings, 1 reply; 5+ messages in thread
From: Akira Yokosawa @ 2024-02-21 1:44 UTC (permalink / raw)
To: Jonathan Corbet, linux-doc
Cc: Mauro Carvalho Chehab, Vegard Nossum, Akira Yokosawa
On Tue, 20 Feb 2024 14:55:03 -0700, Jonathan Corbet wrote:
> Akira Yokosawa <akiyks@gmail.com> writes:
>
>> On Mon, 19 Feb 2024 09:05:38 -0700, Jonathan Corbet wrote:
>>> 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.
>>>
>>> Suggested-by: Akira Yokosawa <akiyks@gmail.com>
>>> Link: https://lore.kernel.org/linux-doc/67f6ac60-7957-4b92-9d72-a08fbad0e028@gmail.com/
>>> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
>>
>> Tested-by: Akira Yokosawa <akiyks@gmail.com>
>
> Thanks
>
>> And it seems this one might deserve
>>
>> Cc: stable@vger.kernel.org # v6.4
>>
>> too, in case someone tries "make pdfdocs" against 6.6.x LTS
>> and 6.7.x stable branches.
>
> Agreed, that was in my plans.
>
>> 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
>
> Thanks,
>
> jon
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] docs: Instruct LaTeX to cope with deeper nesting
2024-02-21 1:44 ` Akira Yokosawa
@ 2024-02-21 20:31 ` Jonathan Corbet
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Corbet @ 2024-02-21 20:31 UTC (permalink / raw)
To: Akira Yokosawa, linux-doc
Cc: Mauro Carvalho Chehab, Vegard Nossum, Akira Yokosawa
Akira Yokosawa <akiyks@gmail.com> writes:
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-02-21 20:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-19 16:05 [PATCH] docs: Instruct LaTeX to cope with deeper nesting Jonathan Corbet
2024-02-20 15:28 ` Akira Yokosawa
2024-02-20 21:55 ` Jonathan Corbet
2024-02-21 1:44 ` Akira Yokosawa
2024-02-21 20:31 ` Jonathan Corbet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).