0

The color background of figures in tikz manual is really good. Its some sort of beige or cream color. How can we apply this in our own figures. Secondly I want to have this as background color for my beamer slides. How to do that ?

  • The figure examples are typeset within an 'environment' named codeexample which both shows code and the output of it. See /usr/local/texlive/2017/texmf-dist/doc/generic/pgf/macros>pgfmanual-en-macros.tex for more information (on TeXLive, however) – user31729 Oct 29 '17 at 8:09
2

As per Christian Hupfer's comment, you can find the definitions in /usr/local/texlive/2017/texmf-dist/doc/generic/pgf/macros/pg‌​fmanual-en-macros.te‌​x.

\documentclass{article}
\usepackage{xcolor}
\definecolor{graphicbackground}{rgb}{0.96,0.96,0.8}
\definecolor{codebackground}{rgb}{0.9,0.9,1}
\begin{document}

\colorbox{graphicbackground}{Ti\textit{k}Z graphic background}

\colorbox{codebackground}{Ti\textit{k}Z code background}

\end{document}

enter image description here

To set this color for the background of your beamer presentations, simply use

\documentclass{beamer}
\definecolor{graphicbackground}{rgb}{0.96,0.96,0.8}
\setbeamercolor{background canvas}{bg=graphicbackground}
|improve this answer|||||

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.