不能同时在数学模式中使用斜体,在文本中使用衬线

不能同时在数学模式中使用斜体,在文本中使用衬线

我正在处理以下内容,并获得了非常漂亮的文本衬线字体,我想保留这些字体,但我也在数学模式下获得了这些字体,这意味着数学文本不会像我希望的那样以斜体显示。

\documentclass{beamer}
\usetheme{ucl}

 \setbeamercolor{banner}{bg=black,fg=orange}
 \setbeamercolor{banner stripe}{bg=orange,fg=black}
 \setbeamercolor{structure}{fg=black}
\setbeamersize{description width=2em}
\setbeamertemplate{navigation symbols}{\vspace{-2ex}} 
\setbeamertemplate{footline}[frame number]

\useinnertheme{rounded}
\usefonttheme{professionalfonts}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{textcomp}
\usefonttheme[hoptionsi]{serif}
\usepackage{amssymb,amsmath}
\usepackage{wasysym}
\usepackage{multicol}
\usepackage{syllogism}

\usepackage{xcolor}
    \definecolor{olive}{rgb}{0.3, 0.4, .1}
    \definecolor{fore}{RGB}{249,242,215}
    \definecolor{back}{RGB}{51,51,51}
    \definecolor{title}{RGB}{255,0,90}
    \definecolor{dgreen}{rgb}{0.,0.6,0.}
    \definecolor{gold}{rgb}{1.,0.84,0.}
    \definecolor{JungleGreen}{cmyk}{0.99,0,0.52,0}
    \definecolor{BlueGreen}{cmyk}{0.85,0,0.33,0}
    \definecolor{RawSienna}{cmyk}{0,0.72,1,0.45}
    \definecolor{Magenta}{cmyk}{0,1,0,0}
    \newcommand{\red}[1]{\textcolor{magenta}{#1}}
    \newcommand{\magenta}[1]{\textcolor{magenta}{#1}}
    \newcommand{\green}[1]{\textcolor{green}{#1}}
    \newcommand{\yellow}[1]{\textcolor{gold}{#1}}

    \newtheorem{rough}{Provisional Definition}
    \newtheorem*{chara}{Characterisation}
    \newtheorem*{observation}{Observation}

    \newcommand{\Lp}{\mathcal{L}_1}
        \renewcommand{\iff}{\leftrightarrow}
    \usepackage[normalem]{ulem}


\title{Introduction to Logic 1}
\subtitle{Lecture 2: The Language of Propositional Logic - Syntax}
\author{}
\date{}

\begin{document}

\frame{\titlepage}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\frame{
\frametitle{Bracketing conventions}

\begin{observation}[conventions in $\Lp$]
\pause
\begin{itemize}
  \item \textnormal{$\wedge $ and $\vee $ bind more strongly than  $\rightarrow$ and $\leftrightarrow $:
\pause     ($P\rightarrow Q\wedge R$) abbreviates $(P\rightarrow (Q\wedge R))$} \pause 

  \item \textnormal{One may drop brackets on strings of $\land$s or strings of $\lor$s: \pause
  $(P\wedge Q\wedge R)$ abbreviates $((P\wedge Q)\wedge R)$}

  \item \textnormal{One may drop outer brackets:  \pause
     $P\wedge (Q\rightarrow\neg P_4)$ abbreviates $(P\wedge (Q\rightarrow\neg P_4))$} \pause

\end{itemize}
 \end{observation}
}
\end{document}

我尝试了不同的组合,删除了 professionalfonts、textcomp 和 serif,但都不起作用。有什么建议吗?谢谢!

答案1

eulervm 包将数学模式中的斜体字去掉了。由于我想要斜体字,所以我从正在使用的 .sty 文件中删除了该包。

相关内容