-
Notifications
You must be signed in to change notification settings - Fork 238
Description
I really like the roxygen2 build markdown support with option Roxygen: list(markdown = TRUE) or @md, but when I wrote some documentation within the if{latex}{} condition, the markdown language did not work within the latex condition, even if I set the markdown support option.
Details
For example, I have to write multiple items as:
#' \if{latex}{
#' Example:
#' \itemize{
#' \item 1st item
#' \item 2nd item
#' \item 3rd item }}
rather than
#' \if{latex}{
#' Example:
#' * 1st item
#' * 2nd item
#' * 3rd item }
Similarly, for inserting a table, seemingly I am only allowed to write:
#' \if{latex}{
#' \tabular{ll}{
#' a \tab b \cr
#' c \tab d
#' }}
but not allowed to use markdown, like:
#' \if{latex}{
#' | a | b |
#' |----|----|
#' | c | d |
#' }
Can the markdown support also be implemented within LaTeX condition?