-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
! LaTeX Error: Too deeply nested (lists more than 6 levels deep) #2922
Comments
You mean the solution of adding a bunch of low-level latex definitions to the default latex template? I'd rather not do that; it adds a lot of length and complexity to the template. Perhaps we could include a conditional in the template to use enumitem if a certain variable ( This solution would mean that in most cases the enumitem package wouldn't be needed. |
Right, that's what I meant.
How about making it completely unattended using IfFileExists or @ifpackageloaded? |
+++ dumblob [May 17 16 10:53 ]:
If we do that, then people who don't have enumitem installed |
That depends on whether the |
Any news on this? |
No, it's not a high priority for me, but maybe someone else wants to code up the solution mentioned? |
Well, the part
seems to be the most difficult one of the whole solution you proposed above. Could you help at least with this keeping track of nesting levels? |
+++ dumblob [Nov 06 17 17:08 ]:
Well, the part
The writer would have to keep track of nesting levels as it rendered
lists, but this could be done.
seems to be the most difficult one of the whole solution you proposed
[1]above. Could you help at least with this keeping track of nesting
levels?
You'd need to add a counter for the nesting level to
LaTeXState. Then you'd use 'modify' to increment this
before parsing the contents of a list, and decrement
it after. And you'd use 'gets' to get the current nesting
level. I suppose you'd need something else in state that
would be set to True if the nesting level ever gets above 5.
|
As a follow up here, while it sounds like fixing this sustainably may not be possible at this time is there a workaround (however hacky)? I noticed an old post on Gmane about this topic where @jgm you seemed to have a temporary solution involving replacing the enumerate package with enumitem. That post is back from 2012 and the template default.latex no longer appears to use the enumerate package. Is a similar workaround still viable and if so what would be the lines now to remove and add? Thanks in advance! |
Create a file deeplists.tex with the following contents:
Then use |
Exactly what I was looking for, thank you so much for the quick reply! |
Is this still valid? I'm continuing to get Too deeply nested errors. |
This is how I fixed it (December 2018). I went nine deep and figured I'd be good to go: \setlist[itemize,1]{label=\textbullet} \renewlist{itemize}{itemize}{9} |
When there are too many indentation levels (lists more than 6 levels deep) pandoc fails to generate a pdf and exit with the above error this is intended to be a fix for that problem, for more details see the issue below: jgm/pandoc#2922
I get |
I'm also running via Docker and I ran into this problem too. I managed to get around it by downloading |
For those of us who care about consistent spacing and use of new bullet symbols at each new nested level, I'd recommend the following:
Though I'm not sure whether using |
This is already a long-living issue (there has been discussions [1] [2] quite a while ago about this), but because it's still not solved (the hack mentioned in [1] obviously doesn't work when not working with markdown or when just converting random documents to PDF) and because I could not find any existing issue here on GitHub, I'm creating one.
I fully understand and even more agree with the rule to make pandoc PDF export work even with the texlive-latex-base debian package and therefore I would recommend trying to use the solution outlined on SO.
The text was updated successfully, but these errors were encountered: