-
Hi,
I was wondering if it there is any way to use LaTeX command only when enclosed by Dollar sign i.e., $$.
Here is my situation, I often enough have descriptive columns with underscore in them. I don’t want DataGraph to treat them as equation and replace underscore with subscript. See the screenshot for example, I want the legend to read “w_air” and “wo_air”.
Thanks,
KouroshYou can use the escape “\” (backslash) to force DG to render the underscore instead of interpreting it as a subscript instruction.
So, use “w\_air” in place of “w_air” in the column name (or whatever gets used to label the legend).
Kirk
Hi,
Thanks for the response. The problem is that I have these identifiers as columns in my data and I often use them to plot series of data automatically by using color schemes, etc.
Kourosh
I’m not sure I understand how this addition (the backslash) is causing your methodology to fail. You probably need to post an example for a clearer understanding of your specific situation.
Best,
Kirk
We had some code, that we never fully implemented, to allow you to chose to ignore the _ and backslash for a given token object, that I think would solve this problem. We’ll add this in the next beta for you to try out.
Otherwise the solution is to add the the backslash in the column title as Kirk suggested.
A new beta was just uploaded that has the ability to format the text tokens to ignore the LaTex characters.
In the drawing command you are using (e.g., Plot, Points, etc) go the Legend name entry box. Click on the right side of a token on the ‘∨’ symbol to see this option. Click to enable.
Then you can have an underscore in the legend without it becoming a subscript.
Hope this helps – we are close to finalizing the next release and trying to avoid major changes but this was something we already were testing, so easy to implement. Would be great if you could test and make sure this works for your use case.
Thanks, I am running Mac with Intel chip. New Beta is telling me that this application is not supported on this mac.
I also cannot find the latest version before this one to revert back. Can you point me to that?
Thanks for the heads up – we see what the problem is on our end and will post a new beta to fix this ASAP.
Thanks, meanwhile can you send me the link to the last version before it got broken. I was in the middle of work.
You must be logged in to reply to this topic.