IEEE Update graphicx handling in template for images in figures from code chunk
Nobody has claimed this yet.
- Dominant language
- TeX
- Stars
- 1.5k
- Forks
- 517
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 5
Description
OK I think I've dotted all my i's and crossed my t's here but here it goes. I am trying to use the IEEE template. I want to have a figure that has the following characteristics:
- Two columns wide
- 4 sub-figures in 2x2 layout
- Two images, two R-generated plots
What is the proper way to do this? Because there are R-generated graphics, the figure needs to be generated from a code chunk, so I cannot simply hard-code the LaTeX.
One of the basic problems with this, which seems to me to be a bug (or just lack of functionality?) is that I can't seem to use a code chunk to give me two images in a single figure. As instructed I posted this problem on a Stack Overflow post, that gives a minimum reproducible example (MRE) for the basic issue with images in a code chunk. This post has received nothing but "crickets" so I'm bringing it here.
I'm not including session_info at the moment because I'm honestly not sure if this is a bug or if this just doesn't work yet "as designed." If requested I can provide whatever information required but I imagine the phenomena described in the StackOverflow post is easily reproducible.
By filing an issue to this repo, I promise that
- I have fully read the issue guide at https://yihui.name/issue/.
- I have provided the necessary information about my issue.
- If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
- If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included
xfun::session_info('rticles'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rticles'). - If I have posted the same issue elsewhere, I have also mentioned it in this issue.
- I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Stack Overflow minimum reproducible example and the IEEE template's handling of figures generated from code chunks. Reproduce the two-column, four-subfigure case with two images and two R-generated plots, then determine whether the expected LaTeX output is supported; done means documenting the proper approach or identifying a reproducible fix for the graphicx handling.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- latex, r
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100