Skip to content
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

Simpler <title> string and default PDF filename #2703

Closed
mgkuhn opened this issue Nov 6, 2023 · 3 comments
Closed

Simpler <title> string and default PDF filename #2703

mgkuhn opened this issue Nov 6, 2023 · 3 comments
Labels
enhancement New feature or request frontend Concerning the HTML editor publishing Notebooks as static documents on the web

Comments

@mgkuhn
Copy link
Contributor

mgkuhn commented Nov 6, 2023

Reproduce:

  • Pluto.run(notebook="assignment1.jl")
  • export as PDF

Expected behaviour: default PDF filename assignment1.pdf
Actual behaviour: default PDF filename 🎈 assignment1.jl β€” Pluto.jl.pdf

If my notebook is simply called assignment1.jl, then Pluto currently sets in the DOM header <title>🎈 assignment1.jl β€” Pluto.jl</title> and as a result, if I export the notebook into a PDF, then the default filename that I'm offered by the browser (e.g. in Firefox on Ubuntu 20.04) is the rather awkward β€œπŸŽˆ assignment1.jl β€” Pluto.jl.pdf” taken from the <title>.

Suggestion: if instead the DOM had just <title>assignment1</title>, i.e. the notebook filename without the .jl suffix, then the default PDF export filename offered by the browser would simply be the assignment1.pdf that I would have naturally expected for the PDF version of assignment1.jl.

(I know balloons are very important, but arguably so are filenames that are easy to use on the command line, e.g. by students when they submit their homework as a Pluto-exported PDF.)

@fonsp fonsp added enhancement New feature or request frontend Concerning the HTML editor publishing Notebooks as static documents on the web labels Nov 14, 2023
@fonsp fonsp closed this as completed in 417b905 Nov 14, 2023
@fonsp
Copy link
Owner

fonsp commented Nov 14, 2023

Thanks for the suggestion! Implemented in the upcoming release

@fonsp
Copy link
Owner

fonsp commented Nov 14, 2023

Do you have more suggestions for Pluto?

@mgkuhn
Copy link
Contributor Author

mgkuhn commented Nov 14, 2023

Do you have more suggestions for Pluto?

Well ... since you asked: #2713

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Concerning the HTML editor publishing Notebooks as static documents on the web
Projects
None yet
Development

No branches or pull requests

2 participants