I use Quarto (and previously just pandoc) at work to write docs that often include LaTeX math blocks. Unfortunately for me, to get anyone to read them, I have to convert them to Google Docs.

That often works fine by rendering as .docx, uploading the doc, and converting it to a Google Doc. However, I usually have issues with display math blocks not rendering correctly when converting from docx to Google Docs.

I'm thinking about a potential workaround where I could tell Quarto to render those display math blocks as images, so they'd display correctly in Google Docs. Is that already possible? I'd also think a feature like this might be useful in other scenarios outside of just my use case.

My current workflow is to render the doc in a different format, screenshot the correctly-rendered math blocks, and paste them into the Google Doc manually. But it would be really nice to be able to automate that step. :)

# Example of the rendering issue

```
---
title: "Quarto to Google Docs math example"
self-contained: true
format:
  html:
    toc: true
  pdf:
    toc: true
  docx:
    toc: false
---


Inline math often renders OK: $1 = \sum_{i=1}^n \pi_i$.

Math blocks are also sometimes OK:

$$
1 = \sum_{i=1}^n \pi_i.
$$


But more complicated ones usually have issues like:

$$
\begin{array}{ll}
\mbox{minimize}    & f(x)     \\
\mbox{subject to}  & x \in C
\end{array}
$$

or like this:

$$
\begin{aligned}
x \in A \\
y \in B
\end{aligned}
$$
```

## Google Docs
![Screen Shot 2022-05-06 at 11 24 47 AM](https://user-images.githubusercontent.com/984039/167197776-0b712586-9eea-4682-bffe-45b8b8e9f227.png)

## MS Word on Mac
<img width="640" alt="Screen Shot 2022-05-06 at 11 24 18 AM" src="https://user-images.githubusercontent.com/984039/167197823-9f8b2d70-4f92-4234-831a-c8f903108098.png">

## PDF
![Screen Shot 2022-05-06 at 11 24 06 AM](https://user-images.githubusercontent.com/984039/167197866-55a76aec-efbf-4b0e-bec0-03795eec3d70.png)

## HTML
![Screen Shot 2022-05-06 at 11 23 58 AM](https://user-images.githubusercontent.com/984039/167197890-e8a59575-a390-460b-b415-82645b679fe3.png)


2022-05-06T18:36:27Z
ajfriend
Future
open
Option to render display math blocks as images?
https://github.com/quarto-dev/quarto-cli/issues/818