Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Color palette installation on stata


    Hello everyone, These are some color palettes I can use for making beamer slides and after searching I haven't found anything on the internet about how I can install these colors in stata. I managed some coding from the paper where the authors uploaded how they used these same color palettes on stata - but looks like I'm getting syntax error after running the command :


    \definecolor{mydeepblue}{RGB}{3, 53, 62}
    \definecolor{myarticblue}{RGB}{2, 148, 165}
    \definecolor{mybeige}{RGB}{167, 156, 147}
    \definecolor{myred}{RGB}{193, 64, 61}


    These are the commands I used to install these color pallettes on stata :

    *! version 1.0.1 19nov2018 *
    label "myarticblue"
    label resource "COLOR-MYARTICBLUE"

    Each time I recived the syntax error - invaloid syntax r(198). Could anyone shed some light on this? thanks in advance !
    Last edited by Tariq Abdullah; 10 Oct 2021, 04:29.

  • #2
    You have no need to install colours in Stata. Indeed, I don't know how you would do it either.

    See

    Code:
    help colorstyle
    for how to specify colours as RGB triples.


    I don't understand what you think

    Code:
    label "myarticblue"
    label resource "COLOR-MYARTICBLUE"
    will do in Stata but there is a label command and none of those commands bears any resemblance to what is allowed. Are you just guessing or did you find that code somewhere?

    The first block of commands you used look like LaTeX to me, which is naturally different territory.

    Comment


    • #3
      My bad. I was simply guessing. I think what you said totally made sense and will go that way. Never explored that category and that's why my comment didn't make any sense.

      nonetheless, you've again directed me the right way, and more than thankful for such kind gesture !

      Comment


      • #4
        More about using color palettes can be found this web page from Ben Jann with references to packages and papers.
        http://publicationslist.org/eric.melse

        Comment


        • #5


          So kind. That's very resourceful material for novice learners like me!

          Comment


          • #6
            In case it is helpful, the color styles are in files names color-COLORNAME.style which are by default installed into ado\base\style It is actually pretty easy if you know the RGB number to create a new named color style.

            Comment


            • #7
              See also https://www.statalist.org/forums/for...ailable-on-ssc where the technique discussed is more important than the command advertised.

              Comment


              • #8
                As a graduate student, there is no better community than statalist for someone who has yet to learn a lot! So thankful for everyone's time and valuable feedback!

                Comment

                Working...
                X