how to get ISO date format in .sagews printed pdf

20 views
Skip to first unread message

Hal Snyder

unread,
Aug 18, 2014, 6:06:10 AM8/18/14
to sage-...@googlegroups.com
The Print button in an SMC worksheet produces great-looking pdfs. Suppose I want to customize the format, for example using an ISO 8601 date format in the title page. Is there a config file I can modify, or a hook for a file I can add? I've looked around a bit & didn't see the answer. Thank you.

William A Stein

unread,
Aug 18, 2014, 8:06:48 AM8/18/14
to sage-cloud
It uses the script ~/.sagemathcloud/sagews2pdf.py

If you're comfortable with the command line terminal, you could copy
the above file to somewhere else, e.g.,

cd; cp ~/.sagemathcloud/sagews2pdf.py .

then edit it:

open sagews2pdf.py

and modify the generated latex document to use a different date. Finally, type

./sagews2pdf.py foo.sagews

to create the corresponding file foo.pdf.

If you copy sagews2pdf.py back, it will also just get used by default
when you print worksheets. However, if/when the project server is
restarted, then it might get overwritten (if I happen to have updated
it more recently).

cp sagews2pdf.py ~/.sagemathcloud/

As always, changes/improvements to sagews2pdf.py are encouraged. The
file is BSD licensed and has several contributors already.

William

> --
> You received this message because you are subscribed to the Google Groups
> "sage-cloud" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-cloud+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-cloud/ff0a5eb5-1ed3-4134-88dd-1bdcb33ce4a9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org
wst...@uw.edu

Hal Snyder

unread,
Aug 18, 2014, 9:08:20 AM8/18/14
to sage-...@googlegroups.com
Thank you. I hadn't noticed "open" to start editing a file in SMC.
Reply all
Reply to author
Forward
0 new messages