
No beamer MWE anexado, não consigo alterar o arquivo Xlogo.eps para outro arquivo Xlogo1.eps, não faço ideia do porquê. A compilação ocorre sem erros, mas o pdf ainda mostra o arquivo .eps antigo. Portanto, o código parece funcionar para o arquivo .eps antigo, mas não para o novo.
Todos os arquivos (.eps, .tex, .log, .sty) são armazenados na mesma pasta. Eu uso o Texmaker 5.0.2 no OSX 10.13.2.
O que eu tentei: - Atualizar MacTex e Texmaker - Experimente compiladores diferentes - Experimente editores diferentes (TexShop, WinEdt) - Substitua o arquivo .eps antigo pelo mesmo nome - Coloque os arquivos .sty em /Users/User/Library/texmf/latex /local/ - Atualize o banco de dados de nomes de arquivos com sudo -H mktexlsr
MWE do arquivo beamerthemeX.sty:
\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\ProcessOptionsBeamer
\def\X@logo{Xlogo.eps}
\mode<presentation>
\useoutertheme{X}
\useinnertheme{X}
\mode
<all>
MWE do arquivo beamerouterthemeX.sty:
\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>
MWE do arquivo .tex:
\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}
Responder1
Não é uma resposta (não consigo reproduzir o problema com o logotipo), mas para apontar alguns outros problemas no código
% !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 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!