pandoc/test/pptx
Emily Bourke 72823ad947 pptx: Select layouts from reference doc by name
Until now, users had to make sure that their reference doc contains
layouts in a specific order: the first four layouts in the file had to
have a specific structure, or else pandoc would error (or sometimes
successfully produce a pptx file, which PowerPoint would then fail to
open).

This commit changes the layout selection to use the layout names rather
than order: users must make sure their reference doc contains four
layouts with specific names, and if a layout with the right name isn’t
found pandoc will output a warning and use the corresponding layout from
the default reference doc as a fallback.

I believe the use of names rather than order will be clearer to users,
and the clearer errors will help them troubleshoot when things go wrong.

- Add tests for moved layouts
- Add tests for deleted layouts
- Add newly included layouts to slideMaster1.xml to fix tests
2021-08-17 09:35:25 -07:00
..
code-custom.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
code-custom_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
code-custom_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
code-custom_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
code.native Powerpoint code formatting is now context dependent (#5573) 2019-06-14 08:42:06 -07:00
code.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
code_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
code_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
code_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
document-properties-short-desc.native Improve writing metadata for docx, pptx and odt (#5252) 2019-01-26 16:14:35 -08:00
document-properties-short-desc.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
document-properties-short-desc_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
document-properties-short-desc_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
document-properties-short-desc_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
document-properties.native Improve writing metadata for docx, pptx and odt (#5252) 2019-01-26 16:14:35 -08:00
document-properties.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
document-properties_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
document-properties_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
document-properties_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
endnotes.native
endnotes.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
endnotes_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
endnotes_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
endnotes_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
endnotes_toc.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
endnotes_toc_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
endnotes_toc_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
endnotes_toc_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
images.native Powerpoint writer tests: add tests for two-column layout and images 2018-01-22 14:06:47 -05:00
images.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
images_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
images_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
images_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
inline_formatting.native Powerpoint writer: add tests for underline. 2019-02-27 09:30:50 -05:00
inline_formatting.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
inline_formatting_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
inline_formatting_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
inline_formatting_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
lists.native More spellcheck 2018-07-02 19:07:28 +03:00
lists.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
lists_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
lists_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
lists_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
raw_ooxml.native Powerpoint writer: allow arbitrary OOXML in raw inline elements 2020-12-27 23:18:54 +01:00
raw_ooxml.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
raw_ooxml_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
raw_ooxml_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
raw_ooxml_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
reference_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
reference_depth.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
reference_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
remove_empty_slides.native Powerpoint writer: Remove empty slides 2018-02-27 09:12:17 -05:00
remove_empty_slides.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
remove_empty_slides_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
remove_empty_slides_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
remove_empty_slides_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
slide_breaks.native
slide_breaks.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
slide_breaks_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
slide_breaks_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
slide_breaks_slide_level_1.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
slide_breaks_slide_level_1_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
slide_breaks_slide_level_1_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
slide_breaks_slide_level_1_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
slide_breaks_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
slide_breaks_toc.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
slide_breaks_toc_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
slide_breaks_toc_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
slide_breaks_toc_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
speaker_notes.native Powerpoint writer: Add tests for speaker notes. 2018-02-18 16:31:32 -05:00
speaker_notes.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
speaker_notes_after_metadata.native PowerPoint writer: add test for speaker notes after metadata. 2019-03-31 17:09:00 -04:00
speaker_notes_after_metadata.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
speaker_notes_after_metadata_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
speaker_notes_after_metadata_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
speaker_notes_after_metadata_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
speaker_notes_afterheader.native Pptx writer: test for speaker notes after breaking header. 2019-03-30 22:52:31 -04:00
speaker_notes_afterheader.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
speaker_notes_afterheader_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
speaker_notes_afterheader_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
speaker_notes_afterheader_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
speaker_notes_afterseps.native Adapt to the removal of the RowSpan, ColSpan, RowHeadColumns accessors 2020-04-15 23:03:22 -04:00
speaker_notes_afterseps.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
speaker_notes_afterseps_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
speaker_notes_afterseps_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
speaker_notes_afterseps_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
speaker_notes_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
speaker_notes_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
speaker_notes_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
start_numbering_at.native PowerPoint writer: Start numbering at appopriate numbers. 2019-08-27 01:24:41 -04:00
start_numbering_at.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
start_numbering_at_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
start_numbering_at_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
start_numbering_at_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
tables.native Adapt to the removal of the RowSpan, ColSpan, RowHeadColumns accessors 2020-04-15 23:03:22 -04:00
tables.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
tables_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
tables_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
tables_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00
two_column.native Powerpoint writer tests: add tests for two-column layout and images 2018-01-22 14:06:47 -05:00
two_column.pptx Rename Text.Pandoc.XMLParser -> Text.Pandoc.XML.Light... 2021-02-16 16:55:20 -08:00
two_column_deleted_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
two_column_moved_layouts.pptx pptx: Select layouts from reference doc by name 2021-08-17 09:35:25 -07:00
two_column_templated.pptx Modify pptx tests to take a whole lot less space. 2021-05-29 10:59:14 -07:00