括号不会出现在投影机中

括号不会出现在投影机中

我想在方程环境中显示括号以便投影仪演示。我不知道,因为它没有出现。

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage[portuguese]{babel}
\usepackage{mathtools}

\usepackage{upgreek}
\usepackage{amsmath}
\usepackage{bbold}
\usepackage[subnum]{cases}
\usepackage{MnSymbol}
\usepackage{lmodern} % required to show the problem

\usepackage{ragged2e}
\usepackage{etoolbox}


\apptocmd{\frame}{}{\justifying}{} 
\newcommand{\bs}{\mathbf}

\usetheme{Madrid}

\begin{document}
\section{Introdução}
%\subsection{First Subsection}
\begin{frame}{Unified Particle Swarm Optimizer - UPSO}
    \justifying
    \setbeamercolor{block title}{fg=white,bg=red!75!black}
    \begin{block}{PSO tradicional}
        PSO tradicional foi proposto por Eberhart, R. C. and Kennedy, J. (1995) e apresenta as seguintes equações:
        \begin{equation*}
            \begin{aligned}
                v_{i+1} = \omega v_i + r_1c_1 (\bs{lbest_i} - \bs{x_i}) + r_2c_2 (\bs{gbest_i} - \bs{x_i})\\
                x_{i+1} = x_i + v_{i}\\
            \end{aligned}
        \end{equation*}

    \end{block}
\end{frame}
\end{document}

答案1

当你改变包裹的顺序lmodernMnSymbol

\usepackage{lmodern}
\usepackage{MnSymbol}

然后你又会得到括号。

相关内容