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

Option to output Word doc with line numbering #94

Open
befriendabacterium opened this issue Oct 25, 2022 · 6 comments
Open

Option to output Word doc with line numbering #94

befriendabacterium opened this issue Oct 25, 2022 · 6 comments

Comments

@befriendabacterium
Copy link

feature request: capacity to add line numbers via officedown so that outputted word doc has line numbers
please explain the value: would be great not to have to do this manually; reviewers of manuscripts need line numbers
describe the situation: i tried adding line numbers to the template file but it does not affect the officedown output
be reasonable: please, if reasonably possible?

Thank you so much for contending with the microsoft word demons so we don't have to and making officedown, it's amazing what you can do with it!

@alapo
Copy link

alapo commented Dec 7, 2022

Have you tried getting this to work by modifying the template (i.e., reference_docx)?

  1. Open the template
  2. Layout > Line Numbers
  3. Save the document
  4. Render your document

This works for me

@davidgohel
Copy link
Owner

thanks @alapo for your help.

@befriendabacterium
Copy link
Author

befriendabacterium commented Jan 10, 2023

Hey, apologies for the slow response. Thanks for your help with this both, but I'm reopening this as the proposed solution does not work for me.

@davidgohel davidgohel reopened this Jan 10, 2023
@alapo
Copy link

alapo commented May 29, 2023

Hello @befriendabacterium

After you render the document you need to go

Layout > Line Numbers > Continuous

From what I can see, the document will not render with the line numbers automatically, but the format is saved within the document. I would suspect this is a pandoc related limitation.

In any case, for my students I created this video which goes through some of the steps I go through when trying to emulate a template. The part regarding line numbers can be found at

IMAGE ALT TEXT HERE

https://youtu.be/_qNx6S9FbH8

@befriendabacterium
Copy link
Author

Hi Andrew - thanks so much for this. I'll give this a go when I get a chance and get back to you with feedback re whether it worked!

@befriendabacterium
Copy link
Author

befriendabacterium commented Dec 12, 2024

Hi Andrew

This does not work for me i'm afraid. Is there anything that needs to be put in the Markdown file itself?

Cheers
Matt

EDIT: Just looking at the end of your Youtube video, it seems although you are able to specify line numbering options in the template document, you are still not able to get officedown to output a Word doc with line numbers already visible...you still have to manually apply them? So this is still a valid feature request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants