chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
30 stars 4 forks source link

Custom name for standalone PDF output #272

Open prowlett opened 3 weeks ago

prowlett commented 3 weeks ago

When I run chirun on a single document using e.g. chirun -f filename.tex it builds me a HTML version at build/index.html which is fine and the corresponding downloadable PDF which is always called document.pdf. I get that there isn't a config.yml to tell it what the title of the document is, but is it possible for this document.pdf to be named using filename.pdf using filename from filename.tex, or otherwise for a flag to be passed to specify the output filename, like chirun -f filename.tex -o pdffilename?

The use case I'm thinking of is that I have an assignment brief and I'd like this to become a PDF I can send to the moderator which is called assignment1.pdf rather than document.pdf. My workaround is manually renaming the file.