You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[My env: R version 4.4.1, RStudio 2023.06.1, pkgdown 2.1.0]
This issue is similar to #2739 in that it uses bookdown::html_document2
I'm writing a vignette for the matlib package on our new facilities for creating LaTeX matrices & matrix equations in R. It creates more complex LaTeX than usual cases, but these should be handled by pkgdown.
The vignette in question has this YAML header
(trying to use mathjax rather than mathml.
---
title: "LaTeX Equations with latexMatrix, Eqn and matrix2latex"
author: Phil Chalmers, John Fox, Michael Friendly
date: "`r Sys.Date()`"
output:
bookdown::html_document2:
base_format: rmarkdown::html_vignette
number_sections: false
toc: true
pdf_document:
toc: true
keep_tex: true
template:
math-rendering: mathjax
bibliography: "references.bib"
vignette: >
%\VignetteIndexEntry{LaTeX Equations with latexMatrix, Eqn and matrix2latex}
%\VignetteEncoding{UTF-8}
%\VignetteEngine{knitr::rmarkdown}
---
There are two problems with what pkgdown produces compared to what I get when I just use knitr on the vignette .Rmd file:
(1) Equation numbers don't appear and cannot be referenced
One example uses our functions as so to produce two equations with \label{}s
[My env: R version 4.4.1, RStudio 2023.06.1, pkgdown 2.1.0]
This issue is similar to #2739 in that it uses
bookdown::html_document2
I'm writing a vignette for the
matlib
package on our new facilities for creating LaTeX matrices & matrix equations in R. It creates more complex LaTeX than usual cases, but these should be handled bypkgdown
.The vignette in question has this YAML header
(trying to use
mathjax
rather thanmathml
.There are two problems with what
pkgdown
produces compared to what I get when I just useknitr
on the vignette.Rmd
file:(1) Equation numbers don't appear and cannot be referenced
One example uses our functions as so to produce two equations with
\label{}
sThis produces the LaTeX code:
From
knitr
, this appears correctly as below, and the equations can be referenced with@ref(eq:svd)
From
pkgdown
, I get:(2) We introduce methods for partitioned matrices:
This generates the LaTeX code that uses a
\begin{array} ... \end{array}
environment with vertical & horizontal rules.In
knitr
, this works fine:But from
pkgdown
all I get is this:Are there any
pkgdown
settings I could try to change that might make these work?The text was updated successfully, but these errors were encountered: