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

FR: tex_document() format #626

Closed
krlmlr opened this issue Feb 23, 2016 · 7 comments · Fixed by #1173
Closed

FR: tex_document() format #626

krlmlr opened this issue Feb 23, 2016 · 7 comments · Fixed by #1173
Milestone

Comments

@krlmlr
Copy link
Contributor

krlmlr commented Feb 23, 2016

  • Should write a .tex file suitable for inclusion with \input{}
  • Should use --natbib by default

Alternatively, the keep_tex arg to pdf_document() could accept three values: c("yes", "no", "only")

I could take a look if you're interested in supporting this.

@yihui
Copy link
Member

yihui commented Feb 23, 2016

You can assign a .tex filename to the output_file argument in render() so that it will not be converted to PDF, but that still produces a standalone LaTeX document, and it seems you want a LaTeX fragment, which is probably not possible at the moment in this package.

@krlmlr
Copy link
Contributor Author

krlmlr commented Feb 23, 2016

Oh, I have a hack that works for me, using a template that consists only of

$body$

and some further tweaks. Would you support a "proper" solution in the scope of the rmarkdown package?

@yihui
Copy link
Member

yihui commented Feb 23, 2016

Given that we have html_fragment(), I think it makes sense to have tex_fragment() as well.

@yihui
Copy link
Member

yihui commented Oct 25, 2017

Implemented in #1173:

devtools::install_github('rstudio/rmarkdown#1173')

@krlmlr
Copy link
Contributor Author

krlmlr commented Oct 25, 2017

Thanks! The PR looks good, but I currently don't have a use case and can't really test it.

@yihui
Copy link
Member

yihui commented Oct 26, 2017

No worries. You are not the only person who wanted these output formats :)

@github-actions
Copy link

github-actions bot commented Nov 3, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants