-
Notifications
You must be signed in to change notification settings - Fork 185
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
Page number, line number, double spacing #244
Comments
Regarding line spacing in the PDF, this is possible. See this tweet thread / zach-hensel/low-noise-manuscript@a99ae5f. @vincerubinetti what's the best way currently to get double spacing just for the PDF? Line numbering in the PDF would be great. Not sure if this is feasible. @vincerubinetti? Regarding page numbering, it seemed that there may be okay CSS solutions. It's possible we could number pages after exporting to PDF with a solution like this or these. If we get a nice implementation of page numbering or line numbering, we should consider adding them to rooststock. |
In Adjust to your desired height. Unfortunately just setting it to
If you mean line numbering for code blocks, then it's probably possible. If you mean line numbering for just regular paragraphs, whose wrapping is dynamic and can change, that's almost surely not possible, even with javascript. |
Ah okay so: rootstock/build/themes/default.html Line 502 in ed4158c
This previous should work once I move this issue to the |
Yes, it would be like in this pdf. I guess the idea would be that the numbers get added after the dynamic line wrapping has occurred. |
A straightforward way of page numbering:
But this method breaks all links :/ Useless. |
Ah too bad. I like the approach. pspdftool appears to be stagnant (no updates since 2015), so perhaps right approach but wrong tool? |
Another workaround with three dependencies:
The page-numbered output file will be It is kind of ugly that page numbers are in the header. I am sure this can be improved. |
@lubianat no one has been actively working on this, so the pdftk + ps2pdf + enscript approach is still the best I'm aware of. We welcome improved suggestions if you or anyone else have ideas. |
Thanks, @agitter . I ended up compiling the docx via Manubot and adding line and page numbers in LibreOffice (here is the docx, by the way). It is not perfect, but also not a big trouble. Way better than writing it all in Word or dueling with latex compilation. I wonder if it is possible to do LibreOffice macros. Maybe that would be a semi-automatic option. |
Most journals have some requirements like page number, continuous line number and double spacing. Is it possible to add these features for pdf export?
The text was updated successfully, but these errors were encountered: