Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPDF Compilation
Some organizations require you to submit your article as PDF. For this, there are several options.
Manual
With ScholarMarkdown, you can serve your article in a browser, and print your article to PDF using your browser's built-in print-mode. This works best in Google Chrome.
Automatic
If you want automatic compilation to PDF, you can use chrome-headless-render-pdf to create PDFs from webpages via a convenient command-line script.
The following command will create an article.pdf
file with A4 paper size assuming you are serving your article locally on port 3000 (default).
chrome-headless-render-pdf --url http://localhost:3000/ --pdf article.pdf --paper-width 8.27 --paper-height 11.69 --no-margins
Press h to open a hovercard with more details.