1

Background Story: Everything was fine and well until I converted the TeX file to PDF where I observed the following patterns seen below. Furthermore, I tried to run the TeX file again and again and still same result

Here is the code I used:

\documentclass{beamer}
\usetheme{metropolis}           % Use metropolis theme
\usefonttheme[onlymath]{serif}
\usepackage{amsmath,graphicx,lastpage}
\usepackage{fancyhdr}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{nicematrix}
\usepackage[labelfont=bf,textfont=md]{caption}
\usepackage{centernot}
\usepackage{varwidth}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{physics}
\usepackage{mathdots}
\usepackage{listings}
\usepackage{yhmath}
\usepackage{cancel}
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
\usepackage{color}
\usepackage{siunitx}
\usepackage{array}
\usepackage{sidecap}
\usepackage{multirow}
\usepackage{amssymb}
\usepackage{gensymb}
\usepackage{tabularx}
\usepackage[many]{tcolorbox}
\usepackage{booktabs}
\usepackage{wrapfig}
\usepackage{grffile}
\usepackage{xcolor}
\usepackage{mathrsfs}
\usepackage{stmaryrd}


\metroset{block=fill}
\metroset{subsectionpage=progressbar}
\useinnertheme[shadow]{rounded}
\newenvironment<>{problock}[1]{%
  \begin{actionenv}#2%
      \def\insertblocktitle{#1}%
      \par%
      \mode<presentation>{%
        \setbeamercolor{block title}{fg=orange,bg=metrop}
        \setbeamercolor{block body}{fg=white,bg=metrop}
        \setbeamercolor{itemize item}{fg=orange}
        \setbeamertemplate{itemize item}[triangle]
     }%
      \usebeamertemplate{block begin}}
    {\par\usebeamertemplate{block end}\end{actionenv}}


\titlegraphic{\includegraphics[width=2cm]{domcolor.png}}
\title{Main Title\\ {\small Small Title}}
\date{The Date}
\author{My Name}
\institute{Faculty\\Institue}
\begin{document}
  \maketitle
  \section{Introduction}
\end{document}

I obtained the following: Main Page

and here is what I obtained for the section.

enter image description here

I was wondering what might be the issue I hope someone can help.

Because usually The output should be like this: enter image description here

and for the introduction: enter image description here

4
  • What's wrong with the output you get? What kind of output do you expect instead?
    – leandriis
    Commented May 16, 2021 at 14:44
  • I have edited my question @leandriis Commented May 16, 2021 at 14:49
  • 1
    Try without \useinnertheme[shadow]{rounded}.
    – leandriis
    Commented May 16, 2021 at 14:54
  • You have fixed this issue for me thank you. @leandriis Commented May 16, 2021 at 14:57

1 Answer 1

1

Use not \useinnertheme[shadow]{rounded}, see comments.

You must log in to answer this question.

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