[Tikzdevice-bugs] new metapost: few problems

Cameron Bracken cameron.bracken at gmail.com
Wed Apr 20 15:26:47 CEST 2011


On Wed, Apr 20, 2011 at 7:16 AM, Matthieu Stigler
<matthieu.stigler at gmail.com> wrote:
> Hi
>
> trying metapost() on various plots, saw problem when some character contain
> %. Interestingly, when character is in ylab, gets totally crazy!!

I would expect the % character to cause particularly weird behavior
since it is the comment character. Try manually replacing % with
{\\%}, using the `sanitizeTexString()` function or the `sanitize`
option.

> See:
>
>
>
> ## fine
> metapost("okay.tex")
> plot(runif(100), main="65")
> dev.off()
>
> ## problem!
> metapost("firstPrb.tex")
> plot(runif(100), main="65%")
> dev.off()
>
> ## otehr problem:
> metapost("Crazy.tex")
> plot(runif(100), main="65", ylab="65%")
> dev.off()
>
> Thanks!!
>
> Mat
> _______________________________________________
> Tikzdevice-bugs mailing list
> Tikzdevice-bugs at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/tikzdevice-bugs
>

-Cameron


More information about the Tikzdevice-bugs mailing list