OrderedList: Ordered List

Description Usage Arguments Examples

View source: R/pandocfilters.R

Description

A constructor of a block object of type "OrderedList".

Usage

1
OrderedList(lattr, llblocks)

Arguments

lattr

a list of attributes

llblocks

a list of lists of blocks

Examples

1
2
3
4
5
ordered_1 <- Plain("A")
ordered_2 <- list(Plain(Str("B")))
ordered_3 <- list(Plain(list(Str("C"))))
OrderedList(ListAttributes(), ordered_1)
OrderedList(ListAttributes(), list(ordered_1, ordered_2, ordered_3))

Example output

Attaching package: 'pandocfilters'

The following object is masked from 'package:stats':

    filter

The following object is masked from 'package:methods':

    Math

Warning message:
running command ''pandoc' --version 2>&1' had status 126 
$t
[1] "OrderedList"

$c
$c[[1]]
[[1]]
[1] 1

[[2]]
[[2]]$t
[1] "DefaultStyle"

[[2]]$c
list()


[[3]]
[[3]]$t
[1] "DefaultDelim"

[[3]]$c
list()



$c[[2]]
[[1]]
[[1]]
$t
[1] "Plain"

$c
[[1]]
$t
[1] "Str"

$c
[1] "A"




attr(,"class")
[1] "lobo" "list"

attr(,"class")
[1] "lolobo" "lobo"   "list"  


$t
[1] "OrderedList"

$c
$c[[1]]
[[1]]
[1] 1

[[2]]
[[2]]$t
[1] "DefaultStyle"

[[2]]$c
list()


[[3]]
[[3]]$t
[1] "DefaultDelim"

[[3]]$c
list()



$c[[2]]
[[1]]
[[1]]
$t
[1] "Plain"

$c
[[1]]
$t
[1] "Str"

$c
[1] "A"




attr(,"class")
[1] "lobo" "list"

[[2]]
[[1]]
$t
[1] "Plain"

$c
[[1]]
$t
[1] "Str"

$c
[1] "B"




attr(,"class")
[1] "lobo" "list"

[[3]]
[[1]]
$t
[1] "Plain"

$c
[[1]]
$t
[1] "Str"

$c
[1] "C"




attr(,"class")
[1] "lobo" "list"

attr(,"class")
[1] "lolobo" "lobo"   "list"  

pandocfilters documentation built on May 30, 2017, 4:14 a.m.