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

Conversion to LaTeX issues #25

Open
rmcd1024 opened this issue Sep 4, 2020 · 6 comments
Open

Conversion to LaTeX issues #25

rmcd1024 opened this issue Sep 4, 2020 · 6 comments

Comments

@rmcd1024
Copy link
Contributor

rmcd1024 commented Sep 4, 2020

First, thank you so much for this package. I realize it's a work in progress, but it's already a big help. Very impressive. I want to mention a few Beamer/LaTeX conversion issues. (I would think Beamer conversion would be a popular use once the package is released.) The first two seem like things that might be addressed in the package. The third might be more a user issue, I'm not sure.

  • convert_pptx generates --- preceding every slide heading. Is this necessary? When producing LaTeX output, this generates YAML warnings and for some reason it interferes with graphics generation: I get an "unknown graphics extension: pdf" error until I delete all the three dashes (except for the YAML header of course).

  • There are always compilation errors generated by unicode in the files I'm dealing with. It appears that a workaround is to include the following in the YAML header:

output:
  beamer_presentation: 
    latex_engine: xelatex
header-includes:
  - \usepackage{fontspec}
  • The variety of graphics formats is an issue for LaTeX. For LaTeX output I use unoconv to convert everything either to pdf or png and then use sed to convert all graphic references in the Rmd file to that format.
@datalorax
Copy link
Owner

Thanks for your interest. The dashes are because it is really meant to work with xaringan, and the dashes are how you separate slides.

Unfortunately I have very little time to devote to R development and what time I do have is currently going to equatiomtic. I am actually strongly considering trying to get someone else to take over this package. So that's a long way of saying there are unlikely to be any fixes soon, but I would welcome a PR if you are interested.

@rmcd1024
Copy link
Contributor Author

rmcd1024 commented Sep 4, 2020 via email

@datalorax
Copy link
Owner

Thanks!

@rmcd1024
Copy link
Contributor Author

rmcd1024 commented Nov 3, 2020

Hi, this is just an FYI. No action on your part required. I'm not planning to submit a PR anytime soon but I wanted to let you know that in the latex branch of my slidex fork I've added conversion of emf and wmf to png (using libreoffice) and an output_format option that includes xaringan (the default) and latex. By default, output should be identical to your package; if not, it's a bug. The output_format="latex" option provides Beamer-like formatting (slide demarcations and knitting options) and omits the xaringan enhancements. My fork can be installed with remotes::install_github("rmcd1024/slidex", ref="latex").

Thanks for this package, really awesome job.

@datalorax
Copy link
Owner

That is great! Sounds like a really good enhancement. Would be happy to merge that in when you feel ready. And I'd be happy to talk about maybe adding you in as an author at that point, if you'd like. I never have submitted this to CRAN, but we could talk about that too, if you're interested.

@rmcd1024
Copy link
Contributor Author

rmcd1024 commented Nov 3, 2020

Great! I'll live with it for a bit and if you have time you can see what you think. I think CRAN at some point would be a natural step.

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

No branches or pull requests

2 participants