在 PowerPoint 中合并表格和文本
Combine tables and text in powerpoint
我想在幻灯片上以相同的形状组合文本和 tables。例如,我想在 table 上方添加文本,在 table 上方添加文本,然后在下方添加文本。我想做的是让下面的 ph_with_text
和 ph_with_table
函数将它们的 str 和值附加到主体形状:
library("officer")
d = read_pptx()
d = add_slide(d, layout="Title and Content", master="Office Theme")
d = ph_with_text(x=d, type = "body", str = 'Text Above')
d = ph_with_table(x=d, type = "body", value = mt)
d = ph_with_text(x=d, type = "body", str = 'Text Below')
print(d, target="test_officer.pptx")
恐怕这不是一个选择。您不能在 PowerPoint 占位符内组合文本和表格,这是 MS PowerPoint 的限制,而不是官员的限制。
我想在幻灯片上以相同的形状组合文本和 tables。例如,我想在 table 上方添加文本,在 table 上方添加文本,然后在下方添加文本。我想做的是让下面的 ph_with_text
和 ph_with_table
函数将它们的 str 和值附加到主体形状:
library("officer")
d = read_pptx()
d = add_slide(d, layout="Title and Content", master="Office Theme")
d = ph_with_text(x=d, type = "body", str = 'Text Above')
d = ph_with_table(x=d, type = "body", value = mt)
d = ph_with_text(x=d, type = "body", str = 'Text Below')
print(d, target="test_officer.pptx")
恐怕这不是一个选择。您不能在 PowerPoint 占位符内组合文本和表格,这是 MS PowerPoint 的限制,而不是官员的限制。