para_md()
when equations are inline in a paragraph is fixed.kind =
allows for selecting the table engine to use.Now, equation.default()
swaps variables labels like tabularise()
does.
equation.default()
now allows for super- or subscripts in labels using ^ or _, and the change affects next character, or if it is a integer (possibly with leading minus sign), the whole integer.
If a there is a beta_1 term, but no beta_0 or beta_2 term i, equation.default()
, then, the term is just renamed beta.
An error was thrown when tabularise$headtail()
is applied to a data.table with a Date column (and probably other "exotic" objects). Solved.
equation()
, equation.default()
and equation_character()
added to extract equations from several objects.
eq_()
and eq__()
added to ease the inclusion of R-computed equations into R Markdown and Quarto documents. eq_()
also allows to preview the equation in the RStudio viewer pane, or in a web browser.
print.paragraph()
nicely displays a preview of the Markdown paragraph (in the Viewer panel if in RStudio).
A bug in para_md()
allowed to interpret sometimes the content of LaTeX equations as Markdown text, which led to strange results. Now, LaTeX equations between $...$
are protected by quadruple back ticks and triple dollars on each side, and thus, viewed as code chunks by the Markdown interpreter, and consequently, left intact.
Code is added in tabularise()
to prevent Quarto to generate an error about missing caption in a labeled chunk if we do not want one, that is, if the chunk label does not start with "tbl-".
The trick to use tab-cap chunk parameter both in R Markdown and in Quarto that was tested in tabularise_default.data.frame()
is now moved up to tabularise()
; meaning it works for all tables created by tabularise()
.
A tabularise_default.matrix()
method is added.
A tabularise_default.Correlation()
method is added.
Tables generated by tabularise()
now "autofit" columns by default.
Reasonable defaults are set up on package loading for {flextable} (non-breaking space for big.mark, and Arial 12 for the font)
Caption is set from tab-cap chunk options (both for Quarto and R Markdown documents).