You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the current MyJSSArticle.Rmd template, I run into an issue when nesting a code chunk with a list. The following markdown renders to tex as I'd expect:
1. My first entry.
1. My second entry.
gives
\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item
My first entry.
\item
My second entry.
\end{enumerate}
However, when I try adding a code chunk (with 4 space indentation), the list is split:
1. My first entry.
```{r}
x <- 1:10
x
```
1. My second entry.
now gives
\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist\item
My first entry.
\end{enumerate}
\begin{CodeChunk}
\begin{CodeInput}
R> x <- 1:10
R> x
\end{CodeInput}
\begin{CodeOutput}
[1] 1 2 3 4 5 6 7 8 9 10
\end{CodeOutput}
\end{CodeChunk}
\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\tightlist\item
My second entry.
\end{enumerate}
This is not specific to JSS, but when trying out the rjournal template, the same behavior can be observed. Is this intentional or a bug?
When using vanilla pdf_document, this of course behaves differently, the tex that is produced is
\begin{enumerate}
\def\labelenumi{\arabic{enumi}.}
\item
My first entry.
\begin{Shaded}
\begin{Highlighting}[]
\NormalTok{x }\OtherTok{\textless{}{-}} \DecValTok{1}\SpecialCharTok{:}\DecValTok{10}
\NormalTok{x}
\end{Highlighting}
\end{Shaded}
\begin{verbatim}
## [1] 1 2 3 4 5 6 7 8 9 10\end{verbatim}
\item
My second entry.
\end{enumerate}
I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('rticles'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/rticles').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
Using the current
MyJSSArticle.Rmdtemplate, I run into an issue when nesting a code chunk with a list. The following markdown renders to tex as I'd expect:gives
However, when I try adding a code chunk (with 4 space indentation), the list is split:
now gives
This is not specific to JSS, but when trying out the
rjournaltemplate, the same behavior can be observed. Is this intentional or a bug?When using vanilla
pdf_document, this of course behaves differently, the tex that is produced isBy filing an issue to this repo, I promise that
xfun::session_info('rticles'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/rticles').I understand that my issue may be closed if I don't fulfill my promises.