-
-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: handle wide table and Rsyntax printing (#5248)
* Bugfix: fix export width table of PDF This will unify the width of the tables in the PDF, not a perfect solution, but for now it can handle with wide tables of about <30 columns. * adjust syntax display and print style * Reference A4 paper size
- Loading branch information
Showing
2 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
@media only print | ||
{ | ||
#results { display: block; } | ||
#results { display: block; } | ||
|
||
.jasp-toolbar h1, .jasp-toolbar h2, .jasp-toolbar h3, .jasp-toolbar h4, .jasp-toolbar h5, .jasp-toolbar h6, .jasp-toolbar div , .jasp-toolbar span | ||
{ display: block !important; } | ||
.toolbar-button { display: none !important; visibility: hidden; } | ||
.jasp-menu { display: none !important; visibility: hidden; } | ||
.jasp-menu-selected { display: none !important; visibility: hidden; } | ||
.jaspReportTop { display: none !important; visibility: hidden; } | ||
body { float: none !important; } | ||
{ display: block !important; } | ||
.toolbar-button { display: none !important; visibility: hidden; } | ||
.jasp-menu { display: none !important; visibility: hidden; } | ||
.jasp-menu-selected { display: none !important; visibility: hidden; } | ||
.jaspReportTop { display: none !important; visibility: hidden; } | ||
body { float: none !important; } | ||
|
||
.jasp-toolbar { page-break-after: avoid; } | ||
.jasp-analysis { page-break-after: always; } | ||
.jasp-collection { page-break-inside: avoid; } | ||
.hidden-collection { page-break-inside: auto; } | ||
.object-body { page-break-inside: auto; } | ||
.object-body .hidden-collection { page-break-inside: auto; } | ||
.jasp-image { page-break-inside: avoid; } | ||
.jasp-notes { page-break-inside: avoid; } | ||
|
||
.jasp-table-primitive { page-break-inside: avoid; } | ||
.jasp-table table { table-layout:fixed !important; width: 20cm !important; } | ||
.jasp-table table td { white-space: pre-wrap !important; word-wrap: break-all !important; } | ||
|
||
.jasp-rsyntax-container { max-width: 20cm !important; } | ||
|
||
.jasp-toolbar { page-break-after: avoid; } | ||
.jasp-analysis { page-break-after: always; } | ||
.jasp-collection { page-break-inside: avoid; } | ||
.hidden-collection { page-break-inside: auto; } | ||
.object-body { page-break-inside: auto; } | ||
.object-body .hidden-collection { page-break-inside: auto; } | ||
.jasp-image { page-break-inside: avoid; } | ||
.jasp-notes { page-break-inside: avoid; } | ||
.jasp-table-primitive { page-break-inside: avoid; } | ||
} | ||
|
||
@page { margin: 1cm; } |