How to include header information when printing code from the editor

29 vues (au cours des 30 derniers jours)
Hal Caswell
Hal Caswell le 10 Nov 2025 à 21:35
Réponse apportée : Leepakshi le 13 Nov 2025 à 9:08
When I try to print an .m file from the Editor, it no longer allows me to include header information: the date and time, the path and the filename, and page numbers. The pdf files that are produced include no information. That's a disaster. Am I not looking in the right place?
Using Matlab 2025 update 1, on an intel Mac, OS Tahoe 26.0.1
Thanks.

Réponses (1)

Leepakshi
Leepakshi le 13 Nov 2025 à 9:08
Hi Hal,
In MATLAB R2025a, this feature was discontinued as similar capabilities are now provided by the PDF viewer application after printing to PDF, making the original feature redundant. If you still wish to add timestamp information to your printed output, here are a few alternative methods you can try:
1) Include the timestamp in the PDF file name when saving the script, for example: 'yourfilename_June24_2025_3.16pm.pdf'
2) Create a custom print function that prepends a timestamp header to the script content before printing. You can then use this function instead of printing directly from the Editor.

Catégories

En savoir plus sur Software Development Tools dans Help Center et File Exchange

Produits


Version

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by