Skip to content

Commit 07e1705

Browse files
committed
now we can export to PowerPoint slides :-)
1 parent 074ab4d commit 07e1705

32 files changed

+1451
-971
lines changed

build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ GENERATE_PLUS_VERSION='yes'
5454

5555
BUILD_REVEAL_SLIDES='min'
5656
BUILD_REVEAL_SLIDES_PDF='med'
57+
BUILD_POWER_POINT_SLIDES='max'
5758

5859
BUILD_HTML_BOOK='min'
5960
BUILD_PDF_BOOK='med'

build.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function normalizeImages() {
133133
local TYPE="$2"
134134
local PLUS="$3"
135135

136-
if [ "$2" == "slides" ]; then
136+
if [ "$TYPE" == "slides" ]; then
137137
# close div after .png)
138138
sed -i 's/.png)$/.png){ width=80% class=center }\n/g' "../export/$NAME$TYPE$PLUS.md"
139139
# close div after .jpg)
@@ -332,6 +332,17 @@ function buildRevealSlidesPdf() {
332332
rm -f "../export/$NAME-slides-pdf$PLUS.html"
333333
}
334334

335+
function buildPowerPointSlides() {
336+
337+
local NAME="$1"
338+
local PLUS="$2"
339+
340+
info "Exporting... ../export/$NAME-slides$PLUS.pptx"
341+
342+
pandoc -w pptx \
343+
"$NUMBERS" -o "../export/$NAME-slides$PLUS.pptx" "../export/$NAME-slides$PLUS.md"
344+
}
345+
335346
function buildHtmlBook() {
336347

337348
local NAME="$1"
@@ -409,6 +420,9 @@ function exportMdToSlides() {
409420
if [ "$(build "$BUILD_REVEAL_SLIDES_PDF")" == "yes" ]; then
410421
buildRevealSlidesPdf "$NAME" "$PLUS"
411422
fi
423+
if [ "$(build "$BUILD_POWER_POINT_SLIDES")" == "yes" ]; then
424+
buildPowerPointSlides "$NAME" "$PLUS"
425+
fi
412426

413427
info "- - - - - - - - - - - - - - - -"
414428
}

doc/export/leeme-book-plus.docx

1.03 KB
Binary file not shown.

doc/export/leeme-book-plus.epub

1.56 KB
Binary file not shown.

doc/export/leeme-book-plus.html

Lines changed: 137 additions & 109 deletions
Large diffs are not rendered by default.

doc/export/leeme-book-plus.pdf

22.2 KB
Binary file not shown.

doc/export/leeme-book.docx

1.03 KB
Binary file not shown.

doc/export/leeme-book.epub

1.56 KB
Binary file not shown.

doc/export/leeme-book.html

Lines changed: 137 additions & 109 deletions
Large diffs are not rendered by default.

doc/export/leeme-book.pdf

21.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)