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

%------------------------\AtBeginSubsection[]----------------------
\AtBeginSubsection[]{%
  \begin{frame}<beamer>[noframenumbering,plain]{Outline}
  \transsplitverticalout
  \tableofcontents[currentsection,currentsubsection]
  \end{frame}
}

\usetheme{Madrid}

\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

enter image description here

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

enter image description here

3
  • 1
    $$...$$ 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
    Commented Dec 17, 2018 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
    Commented Dec 17, 2018 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
    Commented Dec 17, 2018 at 15:47

2 Answers 2

3

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}

enter image description here

4
  • Thank you for your answer. Is it possible to mount the word question a little up?
    – Student
    Commented Dec 17, 2018 at 15:46
  • @Student Sure.. Commented Dec 17, 2018 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
    Commented Dec 17, 2018 at 17:06
  • @Student Oh, right. This option is necessary for the maroon colour Commented Dec 17, 2018 at 17:14
3
\documentclass[xcolor=dvipsnames]{beamer}
      \usecolortheme[named=blue]{structure}
         \usepackage[tikz]{bclogo}
      %------------------------\AtBeginSubsection[]----------------------
     \AtBeginSubsection[]{
       \begin{frame}<beamer>[noframenumbering,plain]{Outline}
     \transsplitverticalout
    \tableofcontents[currentsection,currentsubsection]
       \end{frame}
      }

   \usetheme{Madrid}
\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} 

enter image description here

7
  • Thank you for your answer. It is possible to takethe horizontal line thickness like the vertical line? Thanks
    – Student
    Commented Dec 17, 2018 at 15:36
  • Yes, I just changed the code.
    – JPi
    Commented Dec 17, 2018 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
    Commented Dec 17, 2018 at 15:42
  • Yes, did that..
    – JPi
    Commented Dec 17, 2018 at 15:43
  • 1
    @Student "Does not compile" is not a very useful statement. The code compiles just fine for me. Commented Dec 17, 2018 at 15:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .