john-harrold / onbrand

R package for creating templated reporting workflows in Word and PowerPoint
Other
24 stars 0 forks source link

Slide abstraction #15

Open mattfidler opened 1 month ago

mattfidler commented 1 month ago

Sometimes slides duplicate labels within the same slide, see:

image

Which duplicates Content Placeholder 2

image

This means ph_label won't work to access these elements. Can you specify id instead in the yaml file to access these properties?

john-harrold commented 1 month ago

I'll keep this open and think about it. However any changes will be probably take a while.

In the meantime you can rename the placeholders. On Windows go to View -> Slide Master then you can go to Home -> Arrange -> Selection Page and I think you can rename them there. There is something similar on OS X. The development version of officer has this new function called layout_dedupe_ph_labels() which will do this for you.

https://github.com/davidgohel/officer/issues/589

john-harrold commented 1 month ago

This (the link below) is timely. I think if it is implemented it (and the dedupe function) can solve the problem. Both should be in the next CRAN release if markheckmann implements it.

https://github.com/davidgohel/officer/issues/610#issue-2546121881