Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make rendering of substeps as separate page optional #174

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

make rendering of substeps as separate page optional #174

wants to merge 2 commits into from

Conversation

rbedemann
Copy link

Sometimes you want to have all the substeps immediately visible in pdf files and not as separate pages for every substep. With these changes, there will be a --substeps=false option to disable generation of pages for each substep.

Copy link
Owner

@astefanutti astefanutti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would basically covers #24 so it'd be great to have it implemented as well for the Reveal plugin at least.

};

if(options.enableSubsteps===false){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is specific to Impress so that should better be added to the configure method of the Impress plugin.

The options object can be passed to the Impress plugin constructor.

@@ -51,6 +51,13 @@ parser.script('decktape').options({
default : 0,
help : 'Duration in milliseconds between the page has loaded and starting to export slides',
},
enableSubsteps: {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would basically cover #24. I wonder what could be the best terminology across all the HTML presentation frameworks. Reveal calls it fragments, other refer to incremental display of slide content...

@@ -22,9 +22,15 @@ class Impress {
});
}

slideCount() {
slideCount(enableSubsteps) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be preferable to have the options object passed to the Impress plugin constructor and remove the extra argument.

@@ -365,6 +365,7 @@ async function exportSlide(plugin, page, printer, context) {
printBackground : true,
pageRanges : '1',
displayHeaderFooter : false,
scale: 1.5
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's related to #107 and specific to Impress. I would suggest we add an option and change the default value for Impress instead of hard-coding the value for all presentation frameworks.

@astefanutti astefanutti force-pushed the master branch 4 times, most recently from a570d12 to 46b23e5 Compare March 11, 2019 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants