Skip to content

Commit 8a89a5a

Browse files
committed
Add prepare_table() call
1 parent 4940344 commit 8a89a5a

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

README.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ cat(latex)
5151
parsed <- parseLatex(latex)
5252
# This is a blank followed by a table; drop the blank
5353
table <- parsed[[find_env(parsed, "tabular")]]
54+
# Break up the table into individual cells
55+
table <- prepare_table(table)
5456
# Get the alignment options from the content
5557
brace_options(get_contents(table))
5658
tableCell(table, 2,2) # The title counts!

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ cat(latex)
5353
parsed <- parseLatex(latex)
5454
# This is a blank followed by a table; drop the blank
5555
table <- parsed[[find_env(parsed, "tabular")]]
56+
# Break up the table into individual cells
57+
table <- prepare_table(table)
5658
# Get the alignment options from the content
5759
brace_options(get_contents(table))
5860
#> {l|r|r}
5961
tableCell(table, 2,2) # The title counts!
60-
#> 21
62+
#> 21
6163
tableCell(table, 2,2) <- "Changed!"
6264
table
6365
#> ENVIRONMENT: \begin{tabular}[t]{l|r|r}

0 commit comments

Comments
 (0)