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
No wrapping for cpp:enumerator #7241
Comments
I figured sphinx/texinputs/sphinx.sty has this trick: |
@jfbu, is there a way we can get reasonable line wrapping in this case? Except for links and formatting I would typeset the offending line as something like Test::longval = aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa |
\phantom{Test::longval = }bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb |
\phantom{Test::longval = }cccccccccccccccccccccccccccccccccc (This is the alignment I referred to in #1514 (comment). How does one do the equivalent in HTML + CSS?) |
@senyai Sphinx 1.0 had Using your rst source (thanks), with
(I took this opportunity to replace usage of LaTeX internal scratch register As you see TeX will never do any linewrap in the midst of To achieve one would require some mark-up separating the "prefix indentation" from body. For example if the LaTeX mark-up ended using a two argument
in place of
then we could arrange things so that the But this method (of hanging indentation), with shorter strings would lead to this kind of output What is expectation ? |
sorry I should have used |
I'd vote for last variant of wrapping, but really don't mind either option. And |
perhaps rather
@senyai If all your use cases are with an |
@jfbu thanks a lot for your support, the preamble you posted (+[t]) already solves my problem. I'd better wait for less hacky solution. There's |
This serves only to control some LaTeX paragraph parameters but the actual rendering goes via the pair
Can you try it? It should give same output as the preamble (+[t]) originally posted. The |
Yes, it does. |
Partially fixed at 2934aac. Nicer typeset result should have some hanging indentation. |
Describe the bug
make latexpdf
renders to:To Reproduce
Render this rst:
Expected behavior
Word wrapping must occur
Additional context
The text was updated successfully, but these errors were encountered: