# Underline and change the color of the title in bclogo

\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=blue]{structure}
\usepackage[tikz]{bclogo}

%------------------------\AtBeginSubsection[]----------------------
\AtBeginSubsection[]{%
\transsplitverticalout
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}

\begin{document}

\begin{frame}{}
\begin{bclogo}[arrondi=0.1, logo=\bcquestion, couleurBarre=Maroon]
{Question}
Why
$$r_e(\mathbf{T})\geq r(\mathbf{T}) \;?$$
\end{bclogo}
\end{frame}

\end{document}


After compilation I get

However I want to change the color of the word question and to underline it as the following picture shows

• $$...$$ should be avoided, so it would be better to use $r_e(\mathbf{T})\geq r(\mathbf{T}) \;?$, see tex.stackexchange.com/q/503/35864. – moewe Dec 17 '18 at 15:29
• @moewe I don't see what is the difference. I see the linked question so many times however I don't see that there exists a big difference. – Student Dec 17 '18 at 15:32
• In most cases there will indeed not be a visual difference. But there are situations where $$...$$ will give different spacing than $...$ (and people usually prefer the spacing $...$ gives). $...$ also works together with the fleqn option and provides for better placement of \qedhere. You are of course free to ignore the advice not to use $$...$$, but I think the comment has a place here to warn other people who might be more susceptible to the arguments in the linked answer. – moewe Dec 17 '18 at 15:47

Just as the answer by JPi using the soul package to underline the title, but using bclogo mechanism to customise the title globally

\documentclass[xcolor=dvipsnames]{beamer}

\usepackage{soul}
\setul{}{1.5pt}

\usepackage[tikz]{bclogo}
\renewcommand\bcStyleTitre[1]{\vskip-0.5em\bfseries\color{Maroon}\ul{#1}\vskip0em}

\begin{document}

\begin{frame}
\begin{bclogo}[arrondi=0.1, logo=\bcquestion, couleurBarre=Maroon]
{Question}
Why
$r_e(\mathbf{T})\geq r(\mathbf{T}) \;?$
\end{bclogo}
\end{frame}

\end{document}


• Thank you for your answer. Is it possible to mount the word question a little up? – Student Dec 17 '18 at 15:46
• @Student Sure.. – user36296 Dec 17 '18 at 15:50
• When I repace in you codes \documentclass{beamer} by \documentclass[xcolor=dvipsnames]{beamer} it compilates well. Is the reason that my winedit version is old? Thank you. – Student Dec 17 '18 at 17:06
• @Student Oh, right. This option is necessary for the maroon colour – user36296 Dec 17 '18 at 17:14
\documentclass[xcolor=dvipsnames]{beamer}
\usecolortheme[named=blue]{structure}
\usepackage[tikz]{bclogo}
%------------------------\AtBeginSubsection[]----------------------
\AtBeginSubsection[]{
\transsplitverticalout
\tableofcontents[currentsection,currentsubsection]
\end{frame}
}

\usepackage{soul}

\begin{document}
\setul{}{1.5pt}

\begin{frame}{}
\begin{bclogo}[arrondi=0.1, logo=\bcquestion, couleurBarre=Maroon]
{\textcolor{red}{\ul{Question}}}
Why
$r_e(\mathbf{T})\geq r(\mathbf{T}) \;?$
\end{bclogo}
\end{frame}

\end{document}


• Thank you for your answer. It is possible to takethe horizontal line thickness like the vertical line? Thanks – Student Dec 17 '18 at 15:36
• Yes, I just changed the code. – JPi Dec 17 '18 at 15:40
• I mean the thick of the line which underlines the word question is equal to the thick of the vertical line. Thank you very much. – Student Dec 17 '18 at 15:42
• Yes, did that.. – JPi Dec 17 '18 at 15:43
• @Student "Does not compile" is not a very useful statement. The code compiles just fine for me. – user36296 Dec 17 '18 at 15:55