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
Hi,
I'm using the ggtext package in combination with a faceted plot. There seems to be a problem with spaces in the labels when saving the plots as tex/tikz image. I present a reprex to illustrate the problem and a workaround.
In the following reprex, I generate three different images:
faceted plot without use of ggtext
faceted plot using ggtext in the "normal" way (as I understand), produces only very small spaces between words, every word gets its own node in tex/tikz file
faceted plot using ggtext and replacing spaces by "latex spaces" (~), produces normal spaces between words
I'm using texi2pdf to compile the standalone tikz files and magick package to convert pdf to png. Nevertheless, the problem is already visible in the tex files, I present the corresponding lines as comments. The problem also arises when using pictex device instead of tikzDevice::tikz.
I also tried element_textbox() instead of element_markdown(), but got the same results.
Hi,
I'm using the
ggtext
package in combination with a faceted plot. There seems to be a problem with spaces in the labels when saving the plots as tex/tikz image. I present a reprex to illustrate the problem and a workaround.In the following reprex, I generate three different images:
ggtext
ggtext
in the "normal" way (as I understand), produces only very small spaces between words, every word gets its own node in tex/tikz fileggtext
and replacing spaces by "latex spaces" (~
), produces normal spaces between wordsI'm using
texi2pdf
to compile the standalone tikz files andmagick
package to convert pdf to png. Nevertheless, the problem is already visible in the tex files, I present the corresponding lines as comments. The problem also arises when usingpictex
device instead oftikzDevice::tikz
.I also tried
element_textbox()
instead ofelement_markdown()
, but got the same results.Created on 2021-03-10 by the reprex package (v1.0.0)
The text was updated successfully, but these errors were encountered: