Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Setting and extracting document features #14

Open
noamross opened this issue Dec 4, 2018 · 0 comments
Open

Setting and extracting document features #14

noamross opened this issue Dec 4, 2018 · 0 comments
Labels
compatibility Addressing in this issue will require coordination and maybe changes in other packages enhancement New feature or request officer Addressing in this issue will probably involve new functionality in the officer package

Comments

@noamross
Copy link
Owner

noamross commented Dec 4, 2018

I'd like to be able to set some major features in the YAML header: margins, line numbering, spacing, font family and size. Note that the last three aren't document-level features but in common use hold across the document. They should be able to set by modifying the main style.

Similarly, it would be great to extract this information from the document and then insert it into the YAML header (possibly as a tracked change). This can be challenging as these aren't always set where you want them. We can extract margins and line numbering from the body-level section characteristics. For font/spacing features, most people don't set styles, but just select all the document text and make changes, resulting in lots of small style changes. To get these, we'll have to guess by calculating the dominant style, as a fraction of paragraphs/text runs in the document.

@noamross noamross added the enhancement New feature or request label Dec 4, 2018
@noamross noamross added officer Addressing in this issue will probably involve new functionality in the officer package compatibility Addressing in this issue will require coordination and maybe changes in other packages labels Dec 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compatibility Addressing in this issue will require coordination and maybe changes in other packages enhancement New feature or request officer Addressing in this issue will probably involve new functionality in the officer package
Projects
None yet
Development

No branches or pull requests

1 participant