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

Slides? #192

Open
ChrisRackauckas opened this issue Mar 5, 2019 · 5 comments
Open

Slides? #192

ChrisRackauckas opened this issue Mar 5, 2019 · 5 comments

Comments

@ChrisRackauckas
Copy link
Member

It would be really interesting to have the possibility to output to a TeX form for Beamer slides. Then one can take the output TeX, slap their favorite theme on it, and build it. However, this would likely require some extra control flow pieces.

@mpastell
Copy link
Collaborator

mpastell commented Mar 5, 2019

Do you mean output beamer slides from Markdown? You could use comments to delimit slides and add the feature to current writer pretty easily.

You can also write the whole document in LaTeX and use tex or texminted output format. That is what I would use for slides as using LaTeX directly gives you more control over the formatting anyway.

@ChrisRackauckas
Copy link
Member Author

Do you mean output beamer slides from Markdown? You could use comments to delimit slides and add the feature to current writer pretty easily.

Yes, this is what I meant. A lot of what I've done before (and a lot of JuliaCon presenters), have used Jupyter notebooks, but these have issues rendering large presentations. I was thinking that if Weave could output to this format it could be quite useful.

@mpastell
Copy link
Collaborator

mpastell commented Mar 5, 2019

Ok, I’ll keep this in mind. You can use also output to markdown and use pandoc to convert to beamer:
https://pandoc.org/MANUAL.html#producing-slide-shows-with-pandoc

@mpastell
Copy link
Collaborator

@ChrisRackauckas I have added new syntax for running inline code, which can also be used to output beamer from Markdown with some extra command. The new syntax works by executing lines starting with ! and replacing them with the output. See: http://weavejl.mpastell.com/dev/usage/#Inline-code-1 .

I made a sample document that uses this feature to output beamer slides here: https://github.com/mpastell/Weave.jl/blob/master/examples/markdown_beamer.jmd . The advantage of this method is that no changes in Weave are needed so you can use your own syntax and get exactly the output that you want (e.g. reveal.js output from the same source).

I think it needs some more testing before a release, let me know how it works for you if you try it.

@storopoli
Copy link

This is great. How would someone add citations with —bibliography=file.bib and —csl=APA.csl ?

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

3 participants