Beamer 不会将 .eps 转换为 .pdf

Beamer 不会将 .eps 转换为 .pdf

在附加的 Beamer MWE 中,我无法将文件 Xlogo.eps 更改为另一个文件 Xlogo1.eps,不知道为什么。编译顺利完成,没有错误,但 pdf 仍然显示旧的 .eps 文件。因此,代码似乎适用于旧的 .eps 文件,但不适用于新的文件。

所有文件(.eps、.tex、.log、.sty)都存储在同一个文件夹中。我在 OSX 10.13.2 上使用 Texmaker 5.0.2。

我尝试过的方法: - 更新 MacTex 和 Texmaker - 尝试不同的编译器 - 尝试不同的编辑器 (TexShop、WinEdt) - 用同名文件替换旧的 .eps 文件 - 将 .sty 文件放在 /Users/User/Library/texmf/latex/local/ - 使用 sudo -H mktexlsr 更新文件名数据库

beamerthemeX.sty 文件的 MWE:

\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\ProcessOptionsBeamer
\def\X@logo{Xlogo.eps}
\mode<presentation>
\useoutertheme{X}
\useinnertheme{X}
\mode
<all>

beamerouterthemeX.sty 文件的 MWE:

\mode<presentation>
\defbeamertemplate*{headline}{X theme}
{
\hspace{0.025\textwidth}\raisebox{0cm}{\parbox{0.95\textwidth}{%
\color{esmtblack}{%
\footnotesize{\raisebox{0.5cm}{\insertsection\ $\mid$\ \insertsubsection} \           
\leavevmode\leaders\hrule height0pt depth-2.8pt\hfill\kern0pt\   
\color{esmtblack} \includegraphics[width=2cm]{\X@logo}}%
}}}%
}%
\setbeamersize{text margin left=1em,text margin right=1em}
\mode
<all>

.tex 文件的 MWE:

\documentclass[11pt]{beamer}
\mode<presentation>
{
\usetheme{X}
\setbeamercovered{transparent}
}
\usepackage{graphicx}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{geometry}
\usepackage{multicol}
\usepackage{mathrsfs}
\usepackage[german]{babel}
\usepackage{fontspec}
\setsansfont[Ligatures=TeX]{Arial Narrow}
\setbeamertemplate{authorname}{A}
\setbeamertemplate{authortitle}{B}
\setbeamertemplate{authorinstitute}{C}
\setbeamertemplate{authoremail}{D}
\setbeamertemplate{authorphone}{E}
\setbeamertemplate{authorfax}{F}
\setbeamertemplate{authorwebsite}{G}
\title[X]{A}
\subtitle{B}
\author{%
{\bf \usebeamertemplate{authorname}} \\
{\usebeamertemplate{authortitle}}\\
{\usebeamertemplate{authorinstitute}}\\
{\usebeamertemplate{authoremail}}\\
}
\date{20 Feb 2018}
\begin{document}
\newgeometry{top=0cm,left=0.5cm,right=0.5cm,bottom=0cm}
{
\usebackgroundtemplate%
\frame[plain]{
{\parbox{1\textwidth}\footnotesize{\raisebox{0.5cm}
\ \leavevmode\leaders\hrule height0pt depth-2.8pt\hfill\kern0pt\   
\color{black} \includegraphics[width=3cm]{Xlogo.eps}}%
}%
\titlepage}
}
\restoregeometry
\begin{frame}
\end{frame}

答案1

不是一个答案(我无法重现徽标的问题),但要指出代码中的其他几个问题

% !TeX TS-program = xelatex
\documentclass[11pt]{beamer}

\colorlet{esmtblack}{black}% Missing colour!!!!!!!!!!!!!!!!!!!!!!!!!!!

\makeatletter
\def\X@logo{dice.eps}
\defbeamertemplate*{headline}{X theme}{%
    \hspace{0.025\textwidth}%
    \raisebox{0cm}{%
        \parbox{0.95\textwidth}{%
            \color{esmtblack}% Does not take arguments !!!!!!!!!!!!!!!!!!!!!
            \footnotesize% Does not take arguments !!!!!!!!!!!!!!!!!!!!!!!!!
            \raisebox{0.5cm}{%
                \insertsection\ $\mid$\ \insertsubsection
            } \          
            \leavevmode\leaders\hrule height0pt depth-2.8pt\hfill\kern0pt\ 
            \color{esmtblack}%
            \includegraphics[width=2cm]{\X@logo}%
        }%
    }%
}%
\makeatother

%\usepackage{graphicx} Unnecessary with beamer !!!!!!!!!!!!!!!!!!!!!!!

%\usepackage{multicol} Beamer has its own column mechanism !!!!!!!!!!!

\begin{document}

%\usebackgroundtemplate% I have no idea what this should do
\begin{frame}[plain]
    \parbox{1\textwidth}{% { was missing !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        \footnotesize% Does not take arguments !!!!!!!!!!!!!!!!!!!!!!!!!!!
        \raisebox{0.5cm}{% { was missing !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            \ \leavevmode\leaders\hrule height0pt depth-2.8pt\hfill\kern0pt\ 
            \color{black} 
            \includegraphics[width=3cm]{dice.eps}
        }%
    }%
    \titlepage
\end{frame}

\end{document} % Missing !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

相关内容