davidgohel / ReporteRs

Note that ReporteRs has been removed from CRAN the 16th of July 2018 and is not maintained anymore. please migrate to officer.
245 stars 44 forks source link

plotmath expressions for pptx() #184

Closed Lukas-1 closed 6 years ago

Lukas-1 commented 7 years ago

I saw some issues when using plotmath expressions in powerpoint files. Specifically, if an expression() is composed of multiple elements joined using "*" or "~", separate textboxes are created in PowerPoint, which leads faulty vertical alignment. It would be better if the whole expression were contained in one textbox.

For example, the following code displays buggy vertical alignment of the text:

plot(1:10) title(expression("foo" "-" "oo"))

Also, using an en dash in plotmath expressions causes a bug where each element of the expression is individually centered and overlaps.

P.S. thank you for developing this great package!

davidgohel commented 7 years ago

Hi

Sorry, it's a known issue but I don't know exactly what is wrong.

I'll have a coding session probably next month and will invest on this case.

David

davidgohel commented 6 years ago

Issue moved to davidgohel/rvg #19 via ZenHub