在投影机模式下,重音符号会被隐藏

在投影机模式下,重音符号会被隐藏

我正在尝试使用一位用户与我分享的 beamer 模板。不幸的是,我在使用重音符号时遇到了问题(因为我用法语书写):似乎使用重音符号的字符会被忽略,不会显示在模板上。例如,输入:“Etalement à interface élastique”会得到“Etalement interface lastique”在此处输入图片描述

我使用这个 sty 文件:名为“YTU.sty”

    \mode<presentation>

\newif\ifbeamer@secheader
\beamer@secheaderfalse

%\DeclareOptionBeamer{secheader}{\beamer@secheadertrue}
\ProcessOptionsBeamer

\useoutertheme[footline=authorinstitutetitle,subsection=false]{smoothbars}
\makeatletter % [add curpage/total page at the bottom](http://tex.stackexchange.com/questions/100838/beamer-dresden-theme-miniframes-appeareance-and-frame-number-insertion)
\newcommand{\frameofframes}{/}
\newcommand{\setframeofframes}[1]{\renewcommand{\frameofframes}{#1}}
\setbeamertemplate{footline} 
  {%
    \begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}
    \end{beamercolorbox}
    \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
      leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%
      \leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor}%
      \hfill%
      {\usebeamerfont{institute in head/foot}\usebeamercolor[fg]{institute in head/foot}\insertshortinstitute}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%
      leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%
      {\usebeamerfont{title in head/foot}\insertshorttitle}%
      \hfill%
      {\usebeamerfont{frame number}\usebeamercolor[fg]{frame number}\insertframenumber~\frameofframes~\inserttotalframenumber}
    \end{beamercolorbox}%
    \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}
    \end{beamercolorbox}
  }
\makeatother

\useinnertheme{circles}

%\useoutertheme{default}
%\useinnertheme[shadow=true]{rounded}

%define qut theme color 
\xdefinecolor{qut}{HTML}{00407a}  %PANTONE 541 BLUE
\setbeamercolor{footline}{bg=qut}
\setbeamercolor{frametitle}{bg=qut,fg=white}
\setbeamercolor{title}{bg=qut}
\setbeamerfont{frametitle}{size=\large}
%\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{bibliography item}[text]
\setbeamertemplate{caption}[numbered]

\setbeamercolor{palette primary}{use=structure,fg=white,bg=structure.fg}
\setbeamercolor{palette secondary}{use=structure,fg=white,bg=structure.fg!75!black}
\setbeamercolor{palette tertiary}{use=structure,fg=white,bg=structure.fg!50!black}
\setbeamercolor{palette quaternary}{fg=white,bg=structure.fg!50!black}
%\setbeamercolor*{sidebar}{use=structure,bg=structure.fg}
\setbeamercolor{titlelike}{parent=palette primary}

%% try
\setbeamercolor{block title}{bg=qut}
\setbeamercolor*{block title example}{use={normal text,example text},bg=white,fg=qut}
\setbeamercolor{fine separation line}{}
\setbeamercolor{item projected}{fg=white}
\setbeamercolor{palette sidebar primary}{use=normal text,fg=normal text.fg}
\setbeamercolor{palette sidebar quaternary}{use=structure,fg=structure.fg}
\setbeamercolor{palette sidebar secondary}{use=structure,fg=structure.fg}
\setbeamercolor{palette sidebar tertiary}{use=normal text,fg=normal text.fg}
%\setbeamercolor{palette sidebar quaternary}{fg=white}
\setbeamercolor{section in sidebar}{fg=brown}
\setbeamercolor{section in sidebar shaded}{fg=grey}
\setbeamercolor{separation line}{}
\setbeamercolor{sidebar}{bg=qut}
\setbeamercolor{sidebar}{parent=palette primary}
\setbeamercolor{structure}{fg=qut}
\setbeamercolor{subsection in sidebar}{fg=brown}
\setbeamercolor{subsection in sidebar shaded}{fg=grey}
\AtBeginSection[]{
    \begin{frame}
        \tableofcontents[sectionstyle=show/shaded,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]
    \end{frame}
}
\AtBeginSubsection[]{
    \begin{frame}
        \tableofcontents[sectionstyle=show/shaded,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]
    \end{frame}
}

\mode
<all>

这是模板的代码:

% !TEX encoding = UTF-8 Unicode
\documentclass[french]{beamer}
\usepackage{hyperref}
\usepackage[utf8]{inputenc}

%\usepackage[T1]{fontenc}
\UseRawInputEncoding


\usepackage{pgfpages}
\usepackage{pgf, tikz, adjustbox}

\usetikzlibrary{arrows.meta,
                patterns.meta
                }

% other packages
\usepackage{latexsym,amsmath,xcolor,multicol,booktabs,calligra}
\usepackage{graphicx,listings,stackengine}

%% Enable only in Xelatex
% \usepackage{pstricks}

\author{XXX}
\title{Etalement d'une goutte à interface élastique}
\subtitle{Presentation}
\institute [Sorbonne Université - ESPCI, Paris] {Laboratoire PMMH \\PSL University}
\date{\today}

\usepackage{YTU}

% defs
\def\cmd#1{\texttt{\color{red}\footnotesize $\backslash$#1}}
\def\env#1{\texttt{\color{blue}\footnotesize #1}}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\definecolor{halfgray}{gray}{0.55}

\lstset{
    basicstyle=\ttfamily\small,
    keywordstyle=\bfseries\color{deepblue},
    emphstyle=\ttfamily\color{deepred},    % Custom highlighting style
    stringstyle=\color{deepgreen},
    numbers=left,
    numberstyle=\small\color{halfgray},
    rulesepcolor=\color{red!20!green!20!blue!20},
    frame=shadowbox,
}


\begin{document}

\begin{frame}
    \titlepage

    
    \begin{note}
        {Introduce your self}
    \end{note}

\end{frame}
\end{document}

有人能帮我解决这个问题吗?

先感谢您,

答案1

删除\UseRawInputEncoding,就这样。

如果你查看文件.log,你会看到

Missing character: There is no <C3> in font cmss8!
Missing character: There is no <A9> in font cmss8!
Missing character: There is no <C3> in font cmss8!
Missing character: There is no <A0> in font cmss8!
Missing character: There is no <C3> in font cmss8!
Missing character: There is no <A9> in font cmss8!
Missing character: There is no <C3> in font cmss12!
Missing character: There is no <A0> in font cmss12!
Missing character: There is no <C3> in font cmss12!
Missing character: There is no <A9> in font cmss12!
Missing character: There is no <C3> in font cmss8!
Missing character: There is no <A9> in font cmss8!
Missing character: There is no <C3> in font cmss8!
Missing character: There is no <A0> in font cmss8!
Missing character: There is no <C3> in font cmss8!
Missing character: There is no <A9> in font cmss8!

精确的的目的\UseRawInputEncoding是逐字节吸收输入,而不假设任何编码;由于主文档字体(Computer Modern Sans)在 128–255 个位置上没有任何内容,所以就会发生这种情况。使用其他字体,您可能会得到任意垃圾。

删除错误的声明会产生

在此处输入图片描述

由于您用法语写作,您也应该重新启用\usepackage[T1]{fontenc}并添加\usepackage{babel}

正确的法语拼写不是“Étalement”吗?我认为你不应该省略大写字母上的重音符号。

相关内容