pptx 字幕中的第二行文字
Second line of text in pptx subtitle
我已将标题幻灯片添加到 pptx object,并想在字幕位置添加第二行。
我试过使用 ph_add_fpar 函数但没有成功。我还是新手,所以可能没有使用正确的功能!
mypowerpoint <- read_pptx() %>%
add_slide("Title Slide","Office Theme") %>%
ph_with("Flashy Title",ph_location_type("ctrTitle",position_right = TRUE)) %>%
ph_with("Catchy Subtitle 1",ph_location_type("subTitle")) %>%
ph_with("Catchy Subtitle 2",ph_location_type("subTitle"))
运行 上面给出了两个相互重叠的字幕,而不是第二个字幕文本作为与第一个 object 相同的新行。任何人都可以告诉我我缺少什么,或者更好的功能吗?
ph_with
长度 > 1 的支持向量
library(magrittr)
library(officer)
mypowerpoint <- read_pptx() %>%
add_slide("Title Slide","Office Theme") %>%
ph_with("Flashy Title",ph_location_type("ctrTitle",position_right = TRUE)) %>%
ph_with(c("Catchy Subtitle 1", "Catchy Subtitle 2"),ph_location_type("subTitle"))
我已将标题幻灯片添加到 pptx object,并想在字幕位置添加第二行。
我试过使用 ph_add_fpar 函数但没有成功。我还是新手,所以可能没有使用正确的功能!
mypowerpoint <- read_pptx() %>%
add_slide("Title Slide","Office Theme") %>%
ph_with("Flashy Title",ph_location_type("ctrTitle",position_right = TRUE)) %>%
ph_with("Catchy Subtitle 1",ph_location_type("subTitle")) %>%
ph_with("Catchy Subtitle 2",ph_location_type("subTitle"))
运行 上面给出了两个相互重叠的字幕,而不是第二个字幕文本作为与第一个 object 相同的新行。任何人都可以告诉我我缺少什么,或者更好的功能吗?
ph_with
长度 > 1 的支持向量
library(magrittr)
library(officer)
mypowerpoint <- read_pptx() %>%
add_slide("Title Slide","Office Theme") %>%
ph_with("Flashy Title",ph_location_type("ctrTitle",position_right = TRUE)) %>%
ph_with(c("Catchy Subtitle 1", "Catchy Subtitle 2"),ph_location_type("subTitle"))