Skip to content
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

Matrix sources on same line in PDF #5

Open
petsuter opened this issue Sep 25, 2014 · 4 comments
Open

Matrix sources on same line in PDF #5

petsuter opened this issue Sep 25, 2014 · 4 comments

Comments

@petsuter
Copy link
Contributor

When using the item-matrix to produce HTML, and one target item has multiple source items, each source is on its own line.

But when generating latex / a PDF, these source items are all one the same line, and can create ugly wide tables that overflow the page borders.

@ociu
Copy link
Owner

ociu commented Sep 26, 2014

Can't reproduce in Sphinx 1.2.2. One source item per line in PDFs also.
Please, could you indicate which Sphinx version was used and provide a sample document?

@petsuter
Copy link
Contributor Author

Thanks for checking. You are right, it works in simple cases.
It breaks once \begin{longtable} gets used instead of \begin{tabulary}, which seems to happen with 30 target items or more.

Example: https://gist.github.com/petsuter/55dcb1fb7b7ccf55ac5c

I used Sphinx 1.2.3 now, but I think I got the same with Sphinx 1.2.2 before.

@petsuter
Copy link
Contributor Author

Might be that this is a general Sphinx issue: https://bitbucket.org/birkenfeld/sphinx/issue/1580/paragraphs-in-longtable-dont-work-in-latex

@petsuter
Copy link
Contributor Author

petsuter commented Oct 8, 2014

As a workaround I can apparently add
.. tabularcolumns:: |p{0.45\linewidth}|p{0.45\linewidth}|
before the .. item-matrix::. Maybe this could somehow be added automatically in traceability.py? (But I'm not sure what the relation to the left_colspec and right_colspec is that is already added.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants