colored frames latex

colored frames latex

StartSearchLaTeX for Beginners F.A.Q.LaTeX faqLaTeX topicsLaTeX course

< include pdf in latex    > colored text

include pdf in latex

To get color into LaTeX use the usepackage xcolor. By using the command \fcolorbox{frame color}{background color}{Text which should be framed}

example red framed text

\documentclass{article}
\usepackage{xcolor}
\begin{document}
\fcolorbox{red}{white}{Text with a red frame}
\end{document}

example red framed text on blue ground

\documentclass{article}
\usepackage{xcolor}
\begin{document}
\fcolorbox{red}{blue}{Text with a red frame on blue background}
\end{document}
To see the writing in a better way change also the writing color; for example:
\documentclass{article}
\usepackage{xcolor}
\begin{document}
\fcolorbox{red}{blue}{\textcolor{white}{Text mit farbigen Rahmen}} 
\end{document}

Contact   Privacy Policy   disclosures

accept decline

This website uses cookies and pixel tags to ensure you get the best experience on our website. By using this website, you consent to the use of cookies.learn more about cookies see also our privacy policy