ctex.Rd 966 B

1234567891011121314151617181920212223242526272829303132333435
  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/ctex.R
  3. \name{ctex}
  4. \alias{ctex}
  5. \alias{ctex_template}
  6. \title{A PDF format for documents based on the LaTeX package \pkg{ctex}}
  7. \usage{
  8. ctex(..., template = ctex_template(), latex_engine = "xelatex")
  9. ctex_template()
  10. }
  11. \arguments{
  12. \item{..., template, latex_engine}{Passed to
  13. \code{markdown::\link[rmarkdown]{pdf_document}()}}
  14. }
  15. \value{
  16. \code{ctex()} returns a format that can be passed to
  17. \code{rmarkdown::render()}; \code{ctex_template()} returns the path to a
  18. LaTeX template in \pkg{rticles} for Chinese documents using the \pkg{ctex}
  19. package.
  20. }
  21. \description{
  22. \code{ctex()} is a wrapper function for \code{rmarkdown::pdf_document()} and
  23. changed the default values of two arguments \code{template} and
  24. \code{latex_engine} so it works better with the \pkg{ctex} package.
  25. }
  26. \examples{
  27. \dontrun{
  28. library(rmarkdown)
  29. draft("MyArticle.Rmd", template = "ctex", package = "rticles")
  30. }
  31. }