wjschne / apaquarto

A quarto extension for creating APA7 documents in .docx, .html, and .pdf formats
https://wjschne.github.io/apaquarto/
Creative Commons Zero v1.0 Universal
170 stars 15 forks source link

Numbered lines #25

Closed DominiqueMakowski closed 11 months ago

DominiqueMakowski commented 11 months ago

Thanks for this very useful package. I was wondering if it was possible to add the option to have numbered lines?

Thanks!

wjschne commented 11 months ago

If you only need line numbers in the pdf form, you can do so by adding this to the apaquarto-pdf yaml:

include-in-header: 
      text: '\usepackage{lineno}\linenumbers'

If you need line numbers in the docx form, it is easy to add them:

https://support.microsoft.com/en-us/office/add-or-remove-line-numbers-b67cd35e-422c-42eb-adc9-256ca9802e22

wjschne commented 11 months ago

I added the numbered-lines option to the pdf yaml.

apaquarto-pdf:
  numbered-lines: true
DominiqueMakowski commented 11 months ago

Very cool, thanks a lot!