View source: R/tex_group_by_char.R
tex_group_by_char | R Documentation |
Opening a brace increases the 'group' in TeX. For example, in a{bc}{d{e}}
a
is in group 0, bc
in group 1 as is d
and e
is in group 2.
tex_group_by_char(tex_lines, optional = FALSE)
tex_lines |
Character vector of a document LaTeX. |
optional |
If |
A list the same length as lines
. Each element an integer vector indicating the
TeX group at that position.
For positions at braces the upcoming group is returned.
So a{b}
should return 0 1 1 0
(in its first element).
tex_group_by_char("a{bc}{d{e}}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.