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

Feature request - insert image into table #85

Open
pm321 opened this issue Sep 24, 2018 · 9 comments
Open

Feature request - insert image into table #85

pm321 opened this issue Sep 24, 2018 · 9 comments

Comments

@pm321
Copy link

pm321 commented Sep 24, 2018

Is it possible to or could you add the capacity to insert images into a huxtable?
Ideally as a column variable.
There are some questions on SO which address the issue of images in a table using xtable:
https://stackoverflow.com/questions/25106481/add-an-image-to-a-table-like-output-in-r
https://stackoverflow.com/questions/52482682/add-images-to-table-column-and-increase-row-height-in-rmarkdown-pdf-document
huxtable seems to offer a more flexible environment within which to achieve this.

@hughjonesd
Copy link
Owner

hughjonesd commented Sep 24, 2018 via email

@pm321
Copy link
Author

pm321 commented Sep 24, 2018

Only because of the need to produce reports as pdfs rather than html.

@pm321 pm321 closed this as completed Sep 24, 2018
@pm321
Copy link
Author

pm321 commented Sep 24, 2018

Sorry closed in error

@pm321 pm321 reopened this Sep 24, 2018
@hughjonesd
Copy link
Owner

hughjonesd commented Sep 24, 2018 via email

@pm321
Copy link
Author

pm321 commented Sep 24, 2018

I found a Tex example which I could happily adapt:
https://tex.stackexchange.com/questions/53061/insert-image-and-list-inside-a-table#53062.
However, it looks as if I would have to manually input information for each cell; I'm not sure I'm at a stage where I could program this. Also slightly complicated (possibly) as this example is based on minipages.

@hughjonesd
Copy link
Owner

hughjonesd commented Sep 24, 2018 via email

@mohang13
Copy link

mohang13 commented Apr 7, 2020

Is this option available now in Huxtable @pm321 @hughjonesd or is there any other way to insert an image inside the huxtable especially while having a docx output.

@hughjonesd
Copy link
Owner

hughjonesd commented Apr 7, 2020 via email

@hughjonesd
Copy link
Owner

This is now partly fixed with markdown support in cells, including images like ![image text](image.png).

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