Telling DG to treat LaTeX commands only in equation mode

Welcome to our Forums Technical Support Support Desk Telling DG to treat LaTeX commands only in equation mode

Viewing 10 posts - 1 through 10 (of 12 total)
  • Author
    Posts
  • #8174
    kourosh kalayeh
    Participant

      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,
      Kourosh

      Screen Shot 2022-01-19 at 15.11.47

      #8175
      kirkt
      Participant

        You 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

         

        underscore

        • This reply was modified 2 years, 3 months ago by kirkt.
        • This reply was modified 2 years, 3 months ago by kirkt.
        #8183
        kourosh kalayeh
        Participant

          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

          #8184
          kirkt
          Participant

            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

            #8196
            dgteam
            Moderator

              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.

              #8200
              dgteam
              Moderator

                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.

                FormattingTextToken

                Then you can have an underscore in the legend without it becoming a subscript.

                underscoreignore

                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.

                #8202
                kourosh kalayeh
                Participant

                  Thanks, I am running Mac with Intel chip.   New Beta is telling me that this application is not supported on this mac.

                   

                  #8203
                  kourosh kalayeh
                  Participant

                    I also cannot find the latest version before this one to revert back.  Can you point me to that?

                    #8204
                    dgteam
                    Moderator

                      Thanks for the heads up – we see what the problem is on our end and will post a new beta to fix this ASAP.

                      #8205
                      kourosh kalayeh
                      Participant

                        Thanks, meanwhile can you send me the link to the last version before it got broken.  I was in the middle of work.

                      Viewing 10 posts - 1 through 10 (of 12 total)
                      • You must be logged in to reply to this topic.

                      Welcome to our Forums Technical Support Support Desk Telling DG to treat LaTeX commands only in equation mode