-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: add long and short captions to Styler.to_latex
#41659
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
Changes from 1 commit
a6e5302
cac0262
27ce408
89a2bff
78c7737
9bdb8ce
8178bda
ab83ef1
7362df6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -438,3 +438,8 @@ def test_parse_latex_table_wrapping(styler): | |
overwrite=False, | ||
) | ||
assert _parse_latex_table_wrapping(styler.table_styles, None) is True | ||
|
||
|
||
def test_long_captions(styler): | ||
result = styler.to_latex(caption=("short cap", "long cap")) | ||
assert "\\caption[short cap]{long cap}" in result | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you replicate the existing behavior as here https://github.com/pandas-dev/pandas/pull/35668/files? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good catch. easy fix. should be ok now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would emphasize here and below tht this is (full caption, short caption)