conig / revise

R package for writing revise and resubmits
Other
3 stars 2 forks source link

get_revision escaping $ leading to formula failure #7

Closed pdparker closed 2 years ago

pdparker commented 3 years ago

When a chunk has a formula, get_revision seems to escape $ signs e.g. from the knited tex file:

`\$\$

\beta = B \times \frac{SD_x}{IQR_y}

\$\$`

conig commented 3 years ago

I can't replicate this one:

From my manuscript:

<span id = "form">

$$beta = B \times \frac{SD_x}{IQR_y}$$

</span>

From my letter:

r get_revision("form")

Output:

image

conig commented 3 years ago

I did note separating the $$ from the formula caused issues in the papaja letter. That may be the issue, can you just do it all on the one line?