Matlab Live Scripts: PDFs over-run margins

64 visualizzazioni (ultimi 30 giorni)
Michael
Michael il 3 Mar 2020
Risposto: Michael il 4 Mar 2020
I have been running into an issue where when I save a live script as a PDF, particularly large matrix outputs will run beyond the edge of the page. These aren't particularly large element-wise, 4x4s and 6x6s are common, but the elements themselves tend to be long. Is there some way I can address this, either by enforcing some kind of 'wrapping' of matrices when they bump into the margins, or by playing with the way/size matrices are rendered? This also sometimes happens with code as well.
I really want to like Live Scripts. They are much easier to work with as you are writting and debugging them than 'plain' scripts. But this is also not the first time I have been frustrated by their export capabilities. Am I just setting things up wrong in the code, or is there some sort of hidden menu for adjusting 'Save As' settings when it comes to Live Scripts?

Risposta accettata

Michael
Michael il 4 Mar 2020
The official response from Matlab to a bug report I filed about Live Script output not fitting within a PDF when exported:
"I see the matrices gets truncated when exporting the attached 'file.mlx' file as 'file.pdf', which you would like to see re-sized to fit within the margins of the generated pdf file.
I apologize for the inconvenience this has caused in your workflow.
In order to achieve this, please follow the steps mentioned below,
1. Export the 'file' as 'file' and open it up in Chrome.
2. Press Ctrl+P to open the print options for the HTML document.
3. Change the "Destination" to "Save as PDF".
4. Click on the drop-down arrow for "More Settings". This will allow to customize the PDF output based on Paper size, Margins, Scale, etc.
Additionally, you can also achieve the same results through MATLAB's Report Generator and Latex document method given at the link mentioned below,
This solved my problem.

Più risposte (0)

Categorie

Scopri di più su MATLAB Report Generator in Help Center e File Exchange

Prodotti


Release

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by