5

With the following codes

     \documentclass[xcolor=dvipsnames]{beamer}
     \mode<presentation>
      \usetheme{Madrid}
       \begin{document}
      \begin{frame}{}
     \begin{exampleblock}{\textcolor[rgb]{1.00,0.50,0.00}{Theorem} 
      [M$\ddot{\rm u}$ller, Soltysiak (1992)]}
      For a $d$-tuple of ....
     \end{exampleblock}

    \beamertemplatearticlebibitems
    \begin{thebibliography}{10}
     \bibitem{V. Muller, and A. Soltysiak}
    \alert{V. Muller, and A. Soltysiak}
   \newblock  {Spectral radius formula for commuting Hilbert space 
   operators}
   \newblock {\em Studia Math.103. (1992), 329-333}.
     \end{thebibliography}
     \end{frame}
    \end{document}

I get

enter image description here

However I fail to copmilate when I write \bibitem{V. M$\ddot{\rm u}$ller, and A. Soltysiak} \alert{V. M$\ddot{\rm u}$ller, and A. Soltysiak}, and I want to get

enter image description here

10
  • 9
    Müller. Müller. It is Müller
    – Johannes_B
    Commented Dec 18, 2018 at 11:15
  • 4
    Or M\"uller, in text mode.
    – Sigur
    Commented Dec 18, 2018 at 11:17
  • 9
    don't use math mode for people's names (or any text accents) Commented Dec 18, 2018 at 11:18
  • 5
    Letters like this should be covered in any good quality LaTeX instroduction.
    – daleif
    Commented Dec 18, 2018 at 11:18
  • 7
    The argument of bibitem shouldnt have anything but letters and numbers to be honest. It is just a label.
    – Johannes_B
    Commented Dec 18, 2018 at 11:22

2 Answers 2

11

Your given code has a missing \end{frame} ...

With using \"u I can compile without errors:

\documentclass[xcolor=dvipsnames]{beamer}

\mode<presentation>
\usetheme{Madrid}

\begin{document}
\begin{frame}{}
     \begin{exampleblock}{\textcolor[rgb]{1.00,0.50,0.00}{Theorem} [M\"uller, Soltysiak (1992)]}
      For a $d$-tuple of ....
     \end{exampleblock}
\end{frame} % <=========================================================

 \begin{frame}
    \beamertemplatearticlebibitems
    \begin{thebibliography}{10}
     \bibitem{V. Muller, and A. Soltysiak}
    \alert{V. M\"uller, and A. Soltysiak} % <===========================
   \newblock  {Spectral radius formula for commuting Hilbert space operators}
   \newblock {\em Studia Math.103. (1992), 329-333}.
     \end{thebibliography}
 \end{frame}
\end{document}

with the result:

enter image description here

4
  • When I copy your codes, it compilates However in my original document it doen't.
    – Student
    Commented Dec 18, 2018 at 11:51
  • Now I delete \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} in my original document and it compilates well. Where is the problem.
    – Student
    Commented Dec 18, 2018 at 11:52
  • Thank you. The only difference is \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}
    – Student
    Commented Dec 18, 2018 at 11:56
  • 2
    @Student, maybe your file has ISO encoding, not UTF8. Your editor should show this.
    – Sigur
    Commented Dec 18, 2018 at 12:15
5

The accepted answer already solves your problem with the umlaut. To go one step further use latex's bibliography mechanism and beamer theorem environment and let them do the formatting for you:

\documentclass[xcolor=dvipsnames]{beamer}
\mode<presentation>
\usetheme{Madrid}


\makeatletter
\setbeamertemplate{theorem begin}
{%
    \setbeamercolor{block title}{bg=green!40!black}
  \begin{\inserttheoremblockenv}
  {%
    \textcolor{orange}{\inserttheoremname}
    \ifx\inserttheoremaddition\@empty\else\ \inserttheoremaddition\fi%
  }%
}
\makeatother

\begin{document}
\begin{frame}{}
\begin{theorem}[\cite{MS92}]
For a $d$-tuple of ....
\end{theorem}

\beamertemplatearticlebibitems
\begin{thebibliography}{9}
\bibitem[V. M\"{u}ller and A. Soltysiak (1992)]{MS92}
\alert{V. M\"{u}ller, and A. Soltysiak}
\newblock Spectral radius formula for commuting Hilbert space operators
\newblock \em Studia Math.103. (1992), 329-333.
\end{thebibliography}

\end{frame}
\end{document}

enter image description here

4
  • Thank you for your great answer. I remark that always you delete \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}. Clearly when one write only in English, we don't need \usepackage[utf8]{inputenc}. By the way is \usepackage[T1]{fontenc} always not necessary in beamer?
    – Student
    Commented Dec 18, 2018 at 12:15
  • @Student There is rarely an "always" in latex -- it all depends on the content of your file (the exception is that two letter font commands are always wrong to use in a current document). Commented Dec 18, 2018 at 12:18
  • @Student If you use \usepackage[utf8]{inputenc} you will have to make sure that your file is encoded in utf8. If not change utf8 to the true encoding of your file, Commented Dec 18, 2018 at 12:19
  • @Student If your tex distribution is up to date (Texlive 2018) than \usepackage[utf8]{inputenc} is used by default Commented Dec 18, 2018 at 12:20

You must log in to answer this question.

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