
添付の 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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!