-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Styler.to_latex
conversion from CSS
#40731
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
Merged
Merged
Changes from 143 commits
Commits
Show all changes
150 commits
Select commit
Hold shift + click to select a range
bb501d3
MVP for Styler.to_latex
attack68 6066449
MVP for Styler.to_latex
attack68 6e2b788
rules
attack68 2f74690
hidden columns and index
attack68 9c9405e
basic cell colors and background colors parsing.
attack68 a6772e7
basic cell colors and background colors parsing.
attack68 6505564
basic cell colors and background colors parsing.
attack68 b25644f
column_format arg input
attack68 2ba7e02
add file buffer
attack68 79b978b
optional table wrapping
attack68 ed8b405
refactor
attack68 f7d52f4
more flexible table_styles
attack68 f35c7e1
docs to parse_latex
attack68 521aee2
auto column_format for numerics
attack68 849656f
to_latex unit tests
attack68 cce7285
more unit tests and code bugs removed
attack68 26edba4
deal with multi col headers
attack68 3d7c614
deal with sparsification with multirow and multicol
attack68 e2f0f0c
tests for multirow and multicol
attack68 3243ed7
comprehensive test
attack68 0decf2d
refactor
attack68 c8dc5e5
change -wrap- to --wrap
attack68 8c58538
remove redundant comments
attack68 5c9d50a
docs
attack68 563aef6
docs
attack68 99abe1c
doc edits
attack68 5185f27
mypy fix
attack68 a824f13
docs
attack68 f6211e8
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 b46a9af
docs
attack68 7e3c5e1
docs
attack68 80d3cac
docs
attack68 9388dec
docs
attack68 ccac263
check fix
attack68 de69c21
col format for basic render
attack68 05f5b34
dependency fix
attack68 4d98615
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 f036d25
test for multicols and hidden cols combined
attack68 a9e0ce4
test for hidden columns in a multiindex
attack68 989278f
better test
attack68 3a79966
better test
attack68 9051bfe
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 938a0e8
fix latex for " "
attack68 0aed431
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 0c0e2bc
latex CSS conversion
attack68 e82b566
colors as HTML and proper RGB parsing
attack68 095af35
add extended wrapping flags, for potential future dev
attack68 8af3c81
enhance the wrapping arguments
attack68 2e0aee6
remove render(latex=True) option
attack68 5067ffc
remove render(latex=True) option tests
attack68 ff4954e
remove render latex
attack68 d9836aa
remove render latex
attack68 5bdcb4e
put column headers in braces if not multicol
attack68 6f4a44b
add siunitx option, and expand docs
attack68 c211480
add sparsify as input argument and tests
attack68 2d32556
multirow and multicol alignment options
attack68 816e62f
test hidden index
attack68 9c577ce
change 'float' to 'position_float' to avoid shadow name
attack68 74721a8
doc internals
attack68 a6bc485
merge with latex mvp
attack68 7c7f0de
change default wrap
attack68 527724d
Merge branch 'latex_styler_mvp' into latex_css_conversion
attack68 4cdefb8
change default wrap
attack68 ee7397f
change test
attack68 f381011
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 eb21587
Merge branch 'latex_styler_mvp' into latex_css_conversion
attack68 b9ff43d
documentation
attack68 2f5cdec
documentation
attack68 a6e4e47
compress code
attack68 e385fb0
clarify code
attack68 4eacb12
clarify code
attack68 b71d9eb
Merge branch 'latex_styler_mvp' into latex_css_conversion
attack68 fd95e34
simplify code
attack68 7126bda
simplify code
attack68 25bcba9
simplify code
attack68 34f0b91
Merge branch 'latex_styler_mvp' into latex_css_conversion
attack68 e35eea7
user guide docs
attack68 5ec08d8
basic subclassing
attack68 b74057b
basic subclassing
attack68 a49deeb
non_reducing_slice deprivatized
attack68 228f146
move io methods
attack68 44ead2d
import typing aliases
attack68 0ae8c39
rename renderer
attack68 70067c7
move to_excel and _repr_html_ back
attack68 3772cc8
move to_excel and _repr_html_ back
attack68 19828c3
Merge remote-tracking branch 'upstream/master' into basic_subclassing…
attack68 79ad3a6
Merge remote-tracking branch 'upstream/master' into basic_subclassing…
attack68 03415e5
fix typing to new standard
attack68 5697ff9
Merge remote-tracking branch 'upstream/master' into basic_subclassing…
attack68 41760e0
merge upstream master
attack68 92c11d1
Merge remote-tracking branch 'upstream/master' into basic_subclassing…
attack68 6547c6d
Merge branch 'basic_subclassing_styler' into latex_styler_mvp
attack68 3910fcf
Merge branch 'basic_subclassing_styler' into latex_styler_mvp
attack68 0164d90
documentation
attack68 463a54b
isort fix
attack68 4b7298f
doc improvements
attack68 47a31a9
doc improvements
attack68 c373bb6
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 8b00376
doc improvements
attack68 b1e230d
remove column_format branch
attack68 fd19d97
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 e31dba0
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 bdab13d
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 1074b62
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 9e5ca75
merge
attack68 133c1a0
merge
attack68 394bc3a
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 034960f
doc fix
attack68 8b62f8d
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 a0f1e79
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 2e714e9
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 38c62eb
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 f95c21e
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 c925958
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 2cc8ad2
mutate d, so return None instead
attack68 7d962df
review the main to_latex docs (rhshadrach requests)
attack68 a6f6af2
validate position_float (rhshadrach request)
attack68 dce66d6
grammar fix
attack68 8fc9f0b
_parse_latex_table_wrapping doc and bool return (rhshadrach request)
attack68 bb4479b
_parse_latex_table_styles doc
attack68 e2ea5ae
_parse_latex_cell_styles doc chg and break (rhshadrach request)
attack68 518485d
fix boolean
attack68 d99245c
_parse_latex_header_span docs (rhshadrach request)
attack68 766ad49
_translate_latex docs and return (rhshadrach request)
attack68 10c4682
Merge branch 'latex_styler_mvp' into latex_css_conversion
attack68 ee92f37
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 c7844d5
Merge remote-tracking branch 'origin/latex_styler_mvp' into latex_css…
attack68 b8e3418
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 2aca649
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 cf2f1e1
Merge remote-tracking branch 'upstream/master' into latex_styler_mvp
attack68 8f8da7d
Merge branch 'latex_styler_mvp' into latex_css_conversion
attack68 0ea3127
merge upstream master
attack68 a224cdd
add conversion docs
attack68 d91f7c3
update docs
attack68 f9f6622
remove updates to user_guide
attack68 002eb90
remove updates to user_guide
attack68 372a71a
mypy fix
attack68 11985a5
Merge remote-tracking branch 'upstream/master' into latex_css_conversion
attack68 aa8e051
Merge remote-tracking branch 'upstream/master' into latex_css_conversion
attack68 1c2280d
Merge remote-tracking branch 'upstream/master' into latex_css_conversion
attack68 17f649c
Merge remote-tracking branch 'upstream/master' into latex_css_conversion
attack68 1bb35c1
Merge remote-tracking branch 'upstream/master' into latex_css_conversion
attack68 a55cc5b
Merge remote-tracking branch 'upstream/master' into latex_css_conversion
attack68 dbb76ee
Merge remote-tracking branch 'upstream/master' into latex_css_conversion
attack68 c569245
Merge remote-tracking branch 'upstream/master' into latex_css_conversion
attack68 0ac614b
whats new addition.
attack68 3dd649a
Merge remote-tracking branch 'upstream/master' into latex_css_conversion
attack68 18728c1
Merge remote-tracking branch 'upstream/master' into latex_css_conversion
attack68 23281b1
Merge remote-tracking branch 'upstream/master' into latex_css_conversion
attack68 689afc6
Merge branch 'rls1.3.0' into latex_css_conversion
attack68 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
do we need an option for this? why wouldn't we always do this?
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.
We wouldn't want to convert if different settings for html and latex are wanted or if more control over the latex formatting is needed. But in that case, a new styler instance could easily be used, right?
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.
right this is by-definition on
.to_latex
so i think its clear.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.
Styler now allows styling to be coded in LaTeX or HTML-CSS format. In each separate case, which are completely flexible in each format, you don't want to convert.
But, if you have created an HTML-CSS Styler and it contains the limited attr-values that can now be converted to LaTeX then you should use the convert option. Shouldn't be set to default though.