I would like to use the title color of my beamer presentation (some kind of blue) to write some inline text with the same color. Therefore I want to know the color definition. Is there a command for using the same color as the title?

My preamble definitions are:






    \begin{frame}{\bf This is the title's color I want to ``copy''}
            I want to use the ``blue'' color from the title for the caption of the table.

                table1 & trial \\
                1 & 2 \\
                3 & 4
            \caption*{My table}
  • Do you mean presentation title or frame title color? Could you post a compilable minimal example? Only with theme Warsaw and crane color theme there's no title with some kind of blue color. – Stefan Kottwitz Jan 22 '12 at 10:30
  • I added some code to clarify what I mean – Elec Jan 22 '12 at 11:25

You can copy the color from the frame title this way:

\caption*{\usebeamercolor[fg]{frametitle}{My table}}

The command \usebeamercolor[fg]{title in head/foot} (see p. 186 http://www.tex.ac.uk/CTAN/macros/latex/contrib/beamer/doc/beameruserguide.pdf) should provide you with the (text) color used in the header, even if you later decide to change your theme or change the title text color yourself in the preamble.

  • +1 Just tried your solution with the OPs MWE, it works too. – Stefan Kottwitz Jan 22 '12 at 11:35
  • Thanks. You are correct, though I didn't use this solution correctly at first – Elec Jan 22 '12 at 11:43
  • @Elec If you think the solution is good, you can also upvote it, by clicking the arrow on the left side of the answer. This general site feature helps further readers finding correct and good posts. – Stefan Kottwitz Jan 22 '12 at 11:45
  • 1
    @Elec It would be good, if you would register on this site. Then you can also vote for the answers to your questions and you have further access to site features. – Stefan Kottwitz Jan 22 '12 at 12:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.