Get layout names that exist into the template used when pptx has been created.
# S3 method for pptx slide.layouts(doc, layout, ...)
doc | Object of class |
---|---|
layout | optional single string value, one of the layout names |
... | further arguments, not used. |
Available names are layout names of the template document (e.g. Title and Content , Two Content, etc.). If layout is specified, the layout representation will be produced in a plot. This can be useful to check available shapes.
pptx
, addSlide.pptx
, slide.layouts
doc.filename = "addFlexTable_example.pptx" doc = pptx( title = "title" ) layouts = slide.layouts(doc) layouts#> [1] "Blank" "Title Only" #> [3] "Title and Content" "Section Header" #> [5] "Title and Vertical Text" "Comparison" #> [7] "Content with Caption" "Title Slide" #> [9] "Two Content" "Vertical Title and Text"# loop over layout names to plot each slide style for(i in layouts ){ slide.layouts(doc, i ) title(sub = i ) }