I want to define my paragraphs and subsubsections to always be inside of a transparent box with a certain color.
I know that there's a transparency-package but this doesn't work with the PDF-view only with PS-view (i don't really understand why, but it seems that I can't use it for what i want to do), I also found a solution with the package tikz but i don't really understand how it works. Here is an Example where someone uses tikz and gets a transparent box with transparent text (I only want a transparent box - no transparent text).
Until now I only used Latex for writing protocols in a&a Style, so I don't know much about redefining commands and things like that. I am using the document class article with texmaker. I am producing a PDF-workbook for students so I need the solution to be compatible with PDF.
I'm trying to make a minimal example of what I did so far:
\documentclass[a4paper, 12pt, DIV10]{article}
\usepackage[ngerman]{babel}
\usepackage{xcolor}
\usepackage[explicit]{titlesec}
\usepackage{lipsum}
\titleformat{\subsubsection}
{\normalfont\Large\bfseries}
{}
{0em}
{\colorbox{orange}{\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\textcolor{blue}{\thesection\quad#1}}}}
\setcounter{secnumdepth}{4}
\titleformat{\paragraph}
{\normalfont\Large\bfseries}
{}
{0em}
{\colorbox{red}{\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\textcolor{green}{\thesection\quad#1}}}}
\begin{document}
\section{Kapitel}
\lipsum[1]
\subsubsection*{Erklärung}
\lipsum[2]
\paragraph*{Übungen}
\lipsum[3]
\end{document}
I hope you can help me, if I forgot to mention anything let me know, and I'll figure it out.


red!40defines a color that is 40% red, the remainder white, whereasred!40!blackis 40% red, 60% black. The complexity knows no bound:red!40!black!60!green, etc. – Steven B. Segletes Jul 28 '16 at 16:54