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

Slide Format: Picture with Caption #14

Open
burtlo opened this issue Mar 4, 2013 · 1 comment
Open

Slide Format: Picture with Caption #14

burtlo opened this issue Mar 4, 2013 · 1 comment
Labels
Milestone

Comments

@burtlo
Copy link
Owner

burtlo commented Mar 4, 2013

Implement a slide class for the Picture with Caption

  • NOTE this functionality is probably present but some subtly of the format of the slide is locking the caption size to the width of the picture.

Title Slide

How the user defines the title slide in their presentation

!SLIDE picture-with-caption

![image](path/to/image)

Implementation

Register the particular renderer in the slide_post_renderers.rb

SlidePostRenderers.register Renderers::PictureWithCaption.new(css_class: 'picture-with-caption')

Implement a solution that is similar to columns_renderer.rb.

@burtlo
Copy link
Owner Author

burtlo commented Mar 10, 2013

To make this work it's going to need to generate some html so a renderer will be necessary so that it can find the width of the image and then place that width around the div of the image and text.

<div class='figure' style="width: 200px">
  <img src="images/octocat.png" />
  <div class='caption'>Captioned content under the image because</div>
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant