Skip to content

Commit

Permalink
fix rstudio/bookdown#591: add the \passthrough{} command for Pandoc 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jun 14, 2018
1 parent 297ff13 commit bc2a49e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,7 +1,7 @@
Package: rmarkdown
Type: Package
Title: Dynamic Documents for R
Version: 1.10
Version: 1.10.1
Authors@R: c(
person("JJ", "Allaire", role = "aut", email = "jj@rstudio.com"),
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
Expand Down
5 changes: 5 additions & 0 deletions inst/NEWS
@@ -1,3 +1,8 @@
rmarkdown 1.11 (unreleased)
--------------------------------------------------------------------------------

* Added the LaTeX command `\passthrough` in the default LaTeX template for the `--listings` flag of Pandoc (rstudio/bookdown#591).

rmarkdown 1.10
--------------------------------------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions inst/rmd/latex/default-1.17.0.2.tex
Expand Up @@ -105,6 +105,7 @@
$endif$
$if(listings)$
\usepackage{listings}
\newcommand{\passthrough}[1]{#1}
$endif$
$if(lhs)$
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
Expand Down

0 comments on commit bc2a49e

Please sign in to comment.