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

Format text as a superscript in a table cell #120

Closed
aranard opened this issue Jul 26, 2017 · 3 comments
Closed

Format text as a superscript in a table cell #120

aranard opened this issue Jul 26, 2017 · 3 comments
Assignees
Milestone

Comments

@aranard
Copy link

aranard commented Jul 26, 2017

I'm looking for a way to create text with a superscript within a table cell in my PowerPoint file. This would look something like Text^Superscript (where the text Superscript should appear above the baseline of Text).

Is there currently a way to do this, and if not, is this something that might be added as an enhancement in the future?

Other than this small need, I've had great success with the configuration options available for generating a table. Thanks for the library!

@gitbrent gitbrent self-assigned this Jul 27, 2017
@gitbrent gitbrent added this to the 1.7.0 milestone Aug 1, 2017
gitbrent pushed a commit that referenced this issue Aug 1, 2017
@gitbrent
Copy link
Owner

gitbrent commented Aug 1, 2017

Hi @aranard ,

Thanks for the feature request. I've added subscript and superscript support in the lastest version. Try it out and let me know what you think.

slide.addText(
  [
    { text:'Sub'},
    { text:'Subscript', options:{ subscript:true } },
    { text:' // Super'},
    { text:'Superscript', options:{ superscript:true } }
  ],
  { x:1, y:10 }
);

screen shot 2017-07-31 at 20 53 58

@aranard
Copy link
Author

aranard commented Aug 1, 2017

@gitbrent, this looks great! Thanks for the quick resolution. When do you expect this latest version will be published to npm?

@gitbrent
Copy link
Owner

gitbrent commented Aug 4, 2017

Hi @aranard

I'm just trying to close out Issue #122, then i'll push a new version.

@gitbrent gitbrent closed this as completed Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants