| parse_tex | R Documentation | 
Parse LaTeX lines
parse_tex(tex_lines)
| tex_lines | Character vector (as read from a  | 
A data.table where each row identifies a unique character in tex_lines.
line_noMatches the index of tex_lines.
char_noThe character within line_no.
charThe character. A single character.
tex_groupThe TeX group by default. Any delimiters can be used.
optional_tex_group(If any present), the optional TeX group.
tgiThe number of braces opened at the i-th current TeX group level.
GROUP_IDiAn integer identifying the unique contiguous block at the TeX group at or above the current group level.
GROUP_IDiThe analog for optional groups.
If tex_lines is zero-length, a null data.table.
parse_tex(c("A{}", "B[a]{b{c}{d}}z"))
# The version transposed:
#
#>          char : A{}B[a]{b{c}{d}}z
#>           tg1 : 011111122......22
#>           tg2 : 00000000011122222
#>           og1 : 00001111111111111
#>     GROUP_ID1 : .11....222222222.
#>     GROUP_ID2 : .........111222..
#> OPT_GROUP_ID1 : ....111..........
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.