Überarbeitungsverlauf[Zurück]
Klicke auf Einblenden/Ausblenden von Überarbeitungen 2

05 Mai '17, 11:15

cgnieder's gravatar image

cgnieder
22.1k253463

Wie färbe lege ich bei exsheets eine farbige Box hinter die Überschrift "Exercise" bei \exsheets farbig ein?„Exercise“?

In dem MBB ist die Überschrift `\section{title}` farbig hinterlegt. Wie kann man das auf `\begin{question}` übertragen, so dass im Dokument "Exercise 1" genauso grau unterlegt ist? \documentclass[11pt, a4paper,twoside]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{exsheets} \usepackage{xcolor} \colorlet{sectioncolor}{gray} \colorlet{subsectioncolor}{orange} \makeatletter \renewcommand\sectionlinesformat[4]{% \hspace*{#2}% \colorbox{sectioncolor}{% \parbox[t]{\dimexpr\textwidth-2\fboxsep-#2\relax}{% \raggedsection\color{white}\@hangfrom{#3}{#4}% }}} \makeatother \begin{document} \section*{title} \begin{question} bla \end{question} \end{document}
Klicke auf Einblenden/Ausblenden von Überarbeitungen 1

04 Mai '17, 21:21

typ42's gravatar image

typ42
38341928

Wie färbe ich die Überschrift "Exercise" bei \exsheets farbig ein?

In dem MBB ist die Überschrift `\section{title}` farbig hinterlegt. Wie kann man das auf `\begin{question}` übertragen, so dass im Dokument "Exercise 1" genauso grau unterlegt ist? \documentclass[11pt, a4paper,twoside]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{exsheets} \usepackage{xcolor} \colorlet{sectioncolor}{gray} \colorlet{subsectioncolor}{orange} \makeatletter \renewcommand\sectionlinesformat[4]{% \hspace*{#2}% \colorbox{sectioncolor}{% \parbox[t]{\dimexpr\textwidth-2\fboxsep-#2\relax}{% \raggedsection\color{white}\@hangfrom{#3}{#4}% }}} \makeatother \begin{document} \section*{title} \begin{question} bla \end{question} \end{document}