From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28229 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phillip Dudley Newsgroups: gmane.text.pandoc Subject: Re: Unable to create PPTX from default PPTX Reference Document using Markdown Date: Mon, 26 Apr 2021 16:17:32 -0700 (PDT) Message-ID: <4135bd01-a2b2-42ae-86b4-277cf50994a3n@googlegroups.com> References: <3effdae5-ead2-4c39-8304-49d36e9814a4n@googlegroups.com> <01d195db-5811-4604-b396-a189a41deeffn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_514_1795087767.1619479052501" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10383"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBC24Z5ESU4ARBDMUTWCAMGQEYP6YQGI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Apr 27 01:17:36 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f56.google.com ([209.85.210.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lbATw-0002HJ-3T for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 27 Apr 2021 01:17:36 +0200 Original-Received: by mail-ot1-f56.google.com with SMTP id h26-20020a9d799a0000b02902a50a736b2dsf4424722otm.6 for ; Mon, 26 Apr 2021 16:17:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=7CArM3BbFuPcc38uvCMdEl6bm1q3m6iDUvNs0SeFAV4=; b=h21l24IH2gAzKULEJm/ZBVmR3uNKKA+YsFo0fIIMlYp6Tqtw/eU7yqZvtzg+eSViQr XdkMUkMHfDc6Q+Jzuzvc4R1UfeBTaa09urj9n4rX2hq2W/mLDuqMF8UUjEQMnrFn2hhx 9IsCBxYT/aOR527ZQNT7ZywLXBnWMDF6eXpBudAwfp5ku/n3/35PytgIU1QokGp7JB4Q WVTIQWhD260Ppd+XdMa/NmBLHc5/HRPK1cyJRNA9QAhyeztRf96x1Pz4gIXiPaHp2C/A 57LjycGXkB71cmY4G3c/4fVNUIZls642HgknHEq9QNciKCOAni+1NsH0SDPIHtSOf2b8 OT1w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=7CArM3BbFuPcc38uvCMdEl6bm1q3m6iDUvNs0SeFAV4=; b=op8nFTLCCqzQYR0/ODhPaLWcHs2Jt6nK2Ar+tCYvPQ2Vc4t+5qo2c5RafGunBBMEhh IJTLl6oRfw6hvjKbporHNqsST+agKc98xR1Je6L0LMxBjwrhnDPm/XXkUS6mU5K/e2II oP6iwXpOELNzUqG6BdZBDhvh1RPhvI7znqQHNXj9K/HdJy8uyUjDDoTOkLEKWJ1b0m5S PTGtqTlw1mw4jR7ALl8rjVBMjoChiVqQ4ApFt7lE+L0L0X1VwcCO11tNwd2beZFaXSRA 4tgii2BZGgsFil5c38GWt6TA3ck8PvEQ9ebKFno094D6Z+ySr+sxEFeVReaCt7a1kYlP dnaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=7CArM3BbFuPcc38uvCMdEl6bm1q3m6iDUvNs0SeFAV4=; b=Z0VWQzqwLcF1DFEm6kS8w8WA+WBeeTE9xLEdkbXvBsAo35NQCDE0e2/0ohaNpY2+k2 K8ByMuzpbqgsuBexNKSw3I4a/s1oGCtxtvezt7tmMzOIKPKCnis8m1Uasj1TIgCYTlQd vRI9CR1xiOHo5oQIj/uedE8osRCgh1Br+EEp3QZS/tmUcar2HrADWxo+HXdMyxPhLTgl ub/E9k2zVU7f+0Q2vTZGPyIB8y582XJRdd4OqcpOCP0VFjBOlR2T0ezreZzjYvS1hSa3 KBOChquTchKDgk4y7NkR4iINzxG5V7Rf6Oo0gFECzXtgBRGK2mXbMlpVFnug6St+pDRO JDBw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532nus+8CYfueZfhaWUPNzsH3odDyj0ZxXQqDva6cBjeliOJWbMV zOveDUEF1YC7IUVrXjgnnuE= X-Google-Smtp-Source: ABdhPJx1YzudW9NVZtJ/6balcNYUILYt7kqZMHhApeHgsoG0d42rXh9fS6lFfBPHUCdzjnXLexxP4g== X-Received: by 2002:a9d:4b9d:: with SMTP id k29mr9380475otf.240.1619479055154; Mon, 26 Apr 2021 16:17:35 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:71cf:: with SMTP id z15ls5188402otj.2.gmail; Mon, 26 Apr 2021 16:17:33 -0700 (PDT) X-Received: by 2002:a05:6830:1e17:: with SMTP id s23mr2817315otr.126.1619479053166; Mon, 26 Apr 2021 16:17:33 -0700 (PDT) In-Reply-To: <01d195db-5811-4604-b396-a189a41deeffn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: Predatorian3-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28229 Archived-At: ------=_Part_514_1795087767.1619479052501 Content-Type: multipart/alternative; boundary="----=_Part_515_1796826830.1619479052501" ------=_Part_515_1796826830.1619479052501 Content-Type: text/plain; charset="UTF-8" That blog's formatting is to be desired. I'll give this a read through and see if I can figure out how to edit the Master Slides in LibreOffice Impress. Will report back with findings. On Monday, April 12, 2021 at 9:54:52 PM UTC-5 Matt Jolly wrote: > I did some work on this late last year: from memory you are able to use > any pptx (within reason, as indicated by the manual) and modify styles / > slide templates appropriately. Note that you need to modify Slide Masters, > not the slides themselves (again, from memory...) > > For **table styles**, however, there does not exist an interface within > PowerPoint to modify these at the style level. You need to manually modify > the XML within your template, see > http://www.brandwares.com/bestpractices/2015/07/xml-hacking-custom-table-styles/ > for more information. It *does* work, and table styles are used when tables > are generated within a slide, however even Microsoft's Office XML validator > is unable to tell you if your table styles are correct; you need to try and > open the document in PowerPoint and see if you get any errors. > > On Tuesday, April 13, 2021 at 8:13:45 AM UTC+10 predat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote: > >> I guess I'm not seeing on the documentation where it is called out how to >> modify those styles? Some GitHub issues I saw said to unzip the PPTX and >> then look for some XML file that called out the four styles called out in >> the documentation. However, that didn't make sense to me. >> >> Does anyone have any examples of how to successfully, and clearly >> explained, do this? >> >> On Friday, April 9, 2021 at 11:56:19 AM UTC-5 John MacFarlane wrote: >> >>> >>> Generally speaking, the only modifications that are going to work >>> in a reference.docx or pptx are the changes to the styles >>> as described in the manual. If you add images, notes, etc., >>> you're likely to get a corrupted file. >>> >>> Phillip Dudley writes: >>> >>> > I wanted to try making a PowerPoint using Pandoc and Markdown, but use >>> a >>> > template that had some images already in the template. I saw that you >>> can >>> > generate a reference document by doing: >>> > >>> > - https://pandoc.org/MANUAL.html#options-affecting-specific-writers >>> > >>> > The command: >>> > >>> > pandoc -o custom-reference.pptx --print-default-data-file >>> reference.pptx >>> > >>> > Then I added a background image to the first slide, saved the >>> > custom-reference. I then tried to build the new PPTX using >>> > >>> > #cat Makefile >>> > .PHONY: build >>> > >>> > build: >>> > pandoc \ >>> > --reference-doc custom-pptx-reference.pptx \ >>> > --output slides.pptx \ >>> > content.md >>> > >>> > I then get the following errors: >>> > >>> > filbot@pop-os ~/D/D/L/PPTX> make build >>> > pandoc \ >>> > --reference-doc custom-pptx-refernce.pptx \ >>> > --output slides.pptx \ >>> > content.md >>> > Could not find shape for Powerpoint content >>> > make: *** [Makefile:4: build] Error 63 >>> > >>> > >>> > Am I misinterpreting the documentation on how to use this? >>> > >>> > -- >>> > You received this message because you are subscribed to the Google >>> Groups "pandoc-discuss" group. >>> > To unsubscribe from this group and stop receiving emails from it, send >>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> > To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/3effdae5-ead2-4c39-8304-49d36e9814a4n%40googlegroups.com. >>> >>> >> -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/4135bd01-a2b2-42ae-86b4-277cf50994a3n%40googlegroups.com. ------=_Part_515_1796826830.1619479052501 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That blog's formatting is to be desired. I'll give this a read through and = see if I can figure out how to edit the Master Slides in LibreOffice Impres= s. Will report back with findings.

On Monday, April 12, 2021 at 9:54:52 PM UT= C-5 Matt Jolly wrote:
I did some work on this late last year: from memory you are a= ble to use any pptx (within reason, as indicated by the manual) and modify = styles / slide templates appropriately. Note that you need to modify Slide = Masters, not the slides themselves (again, from memory...)

For **tab= le styles**, however, there does not exist an interface within PowerPoint t= o modify these at the style level. You need to manually modify the XML with= in your template, see http://www.brandwares.com/bestpractices/2015/07/xml-hacking-= custom-table-styles/ for more information. It *does* work, and table st= yles are used when tables are generated within a slide, however even Micros= oft's Office XML validator is unable to tell you if your table styles a= re correct; you need to try and open the document in PowerPoint and see if = you get any errors.

On Tuesday, April 13, 2021 at 8:13:45 AM UTC+10 predat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:
<= /div>
I guess I'm not s= eeing on the documentation where it is called out how to modify those style= s? Some GitHub issues I saw said to unzip the PPTX and then look for some X= ML file that called out the four styles called out in the documentation. Ho= wever, that didn't make sense to me.

Does= anyone have any examples of how to successfully, and clearly explained, do= this?

On Friday, April 9, 2021 at 11:56:19 AM UTC-5 John MacFarlane w= rote:

Generally speaking, the only modifications that are going to work
in a reference.docx or pptx are the changes to the styles
as described in the manual. If you add images, notes, etc.,
you're likely to get a corrupted file.

Phillip Dudley <predat...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writ= es:

> I wanted to try making a PowerPoint using Pandoc and Markdown, but= use a=20
> template that had some images already in the template. I saw that = you can=20
> generate a reference document by doing:
>
> - https://pandoc.org/MA= NUAL.html#options-affecting-specific-writers
>
> The command:
>
> pandoc -o custom-reference.pptx --print-default-data-file refe= rence.pptx
>
> Then I added a background image to the first slide, saved the=20
> custom-reference. I then tried to build the new PPTX using
>
> #cat Makefile
> .PHONY: build
>
> build:
> pandoc \
> --reference-doc custom-pptx-reference.pptx \
> --output slides.pptx \
> content.md
>
> I then get the following errors:
>
> filbot@pop-os ~/D/D/L/PPTX> make build
> pandoc \
> --reference-doc custom-pptx-refernce.pptx \
> --output slides.pptx \
> content.md
> Could not find shape for Powerpoint content
> make: *** [Makefile:4: build] Error 63
>
>
> Am I misinterpreting the documentation on how to use this?
>
> --=20
> You received this message because you are subscribed to the Google= Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, = send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3eff= dae5-ead2-4c39-8304-49d36e9814a4n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/4135bd01-a2b2-42ae-86b4-277cf50994a3n%40googlegroups.= com.
------=_Part_515_1796826830.1619479052501-- ------=_Part_514_1795087767.1619479052501--