- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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: long option name overflows in Index #9981
Comments
Sphinx's In the case at hand, take any LaTeX document and add
to the tex file and compile to pdf. You will end up with a line extending and disappearing into the margin. Turns out TeX will not even hyphenate the word However in the Sphinx case you can look at the files in the latex build repertory and contributing to the latex runs. You will see in the file with extension As LaTeX is a macro language you can redefine
and there will linebreaks (inside the column of the per default 2-columns layout for the index) after the You may wish to combine this (or replace this) with one or both of these additional LaTeX snippets inside the
It is also possible to try to do something with the macro |
Thanks for the suggestions. To be honest, the issue is related to #9965, where I would ideally do something like: .. option:: -Wauggest-attribute=:samp:`={style}`
:samp:`{style}` can any of `[pure|const|noreturn|format|cold|malloc]`
Suggest it. Note it's important style is in italic as it symbols that |
How about changing the |
Good idea, I've just made a pull request. |
Fix #9981: std domain: Strip value part of the option directive from genindex
Describe the bug
Let's consider something like:
Leads to the following with
xelatex
.@jfbu
How to Reproduce
Build snippet.
Expected behavior
No response
Your project
Build the snippet
Screenshots
No response
OS
Linux
Python version
3.8
Sphinx version
4.3.0
Sphinx extensions
No response
Extra tools
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: