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

Add ability to customize tables in powerpoint output #5706

Closed
Neurrone opened this issue Aug 24, 2019 · 6 comments
Closed

Add ability to customize tables in powerpoint output #5706

Neurrone opened this issue Aug 24, 2019 · 6 comments

Comments

@Neurrone
Copy link

Using Pandoc 2.7.3

  1. Save the following as tables.md:
% test slides for table rendering

## Sprint backlog - Done!

story | status
----------|-:
Evaluate third-party integration | done
this is a very very very very very very very very very long story | Done
  1. Generate the presentation with pandoc "tables.md" -o "tables.pptx"

I expect to be able to customize the font used by the table, by using a reference template, but this seems to be impossible.

The number of dashes under the column headers should cause the first column to take most of the space, but each column is currently taking up equal width.

@mb21
Copy link
Collaborator

mb21 commented Aug 24, 2019

So you're using pipe tables, then the column widths only go into effect when the line is long enough. Try:

story | status
----------|-:
Evaluate third-party integration | done
this is a very very very very very very very very very long stor asdf asdf asdf asf asdf y | Done

But I don't know about the powerpoint writer's ability to customize tables...

@Neurrone
Copy link
Author

@mb21 in case I don't have text that would be long enough to force it, which tables would be better for what I want to do? The intent is basically for the second column to only take up as much space as needed (in this case just for 4 characters), with the rest of the space allocated for the left column. In my actual use of this, right now the table is a bit too long to fit into one slide, but would fit if it allocated more space to the left column.

@mb21
Copy link
Collaborator

mb21 commented Aug 24, 2019

I think both multiline_tables and grid_tables always compute widths, see https://pandoc.org/MANUAL.html#tables

@Neurrone
Copy link
Author

I can't get widths to work at all, even when using multiline tables which are supposed to compute widths. This sounds like a bug.

@Neurrone
Copy link
Author

CC: @jkr

@P-N-L
Copy link

P-N-L commented Dec 20, 2022

I ran into this as well. I am using pipe tables in Markdown, and the columns (including the - separators under the headers) are different sizes, but the widths in the PowerPoint output are the same size.

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

3 participants