[XeTeX] Many warnings when compile beamer presentation using XeLaTex

Steven Woody narkewoody at gmail.com
Sun Apr 6 16:43:00 CEST 2008


Hi,

I am using XeLaTex to compile a beamer document.  The full document is
listed in the last part of this message (sorry for I don't tranlate
those chinese characters in the file because that is tedious ), and, I
have two problems need your kind help.

Problem 1
--------------

The resulted PDF file looks good but if I run XeLaTeX in the
two-phases way ( that is, xelatex -no-pdf -halt-on-error; xdivpdfmx ),
I then always got thousands of warning messages listed as below:

** WARNING ** Unknown token "SDict"

** WARNING ** Interpreting PS code failed!!! Output might be broken!!!

** WARNING ** Interpreting special command ps: (ps:) failed.

** WARNING ** >> at page="1" position="(362.835, -1.2643e-005)" (in PDF)

** WARNING ** >> xxx "ps:SDict begin [ {ThisPage}<</Trans << /S /R >>
>> /PUT pdfm..."

** WARNING ** >> Reading special command stopped around >>begin [
{ThisPage}<</Trans << /S /R >> >> /PUT pdfmark end<<

I don't know what these messages exactly mean, if I run one phase
XeLaTex, the procedure seems good.

Problem 2
---------------

In the produced PDF file, there are those navigating buttons, such as
`next/prev slide', `next/prev section', looks pretty good except they
are all un-clickable and hence never worked for me.


My Original Beamer Document
----------------------------------------------

\documentclass[hyperref={bookmarksopen=false,pdfstartview=FitH}
    ]{beamer}

\mode<presentation>
{
    %\usetheme{Warsaw}
    \usetheme{Frankfurt}
    \setbeamercovered{transparent}
    \usecolortheme{seahorse}
    \usecolortheme{rose}
    \usefonttheme[onlylarge]{structuresmallcapsserif}
    \usefonttheme[onlysmall]{structurebold}
    \setbeamercolor{title}{fg=red!80!black,bg=red!20!white}
}

\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps,pgfshade}
\usepackage{amsmath,amssymb}
\usepackage{colortbl}
\usepackage[english]{babel}
\usepackage{times}
\usepackage{fontspec,xunicode,xltxtra}

\setromanfont[Mapping=tex-text,BoldFont=Adobe Heiti Std]{Adobe Song Std}
\setsansfont[Mapping=tex-text,BoldFont=Adobe Heiti Std]{AR PL ZenKai Uni}
\XeTeXlinebreaklocale "zh"
\XeTeXlinebreakskip = 0pt plus 1pt

\hypersetup{
    pdfcreator  = pdflatex,
    pdfproducer = pdflatex,
    pdfpagemode = FullScreen
}

\title{不存在最大素数}
\author[欧几里德]
{欧几里德,亚历山第安 \\ \texttt{euclid at alexandria.edu}}
%\institute[Universities of Somewhere and Elsewhere] {
%    \inst{1}%
%    Department of Computer Science\\
%    University of Somewhere
%    \and
%    \inst{2}%
%    Department of Theoretical Philosophy\\
%    University of Elsewhere
%}
\date[ISPN '80]{第二十七届国际素数学会}
\subject{最大素数}

% \pgfdeclareimage[height=0.5cm]{university-logo}{university-logo-filename}
% \logo{\pgfuseimage{university-logo}}

\AtBeginSubsection[]
{
    \begin{frame}<beamer>
      \frametitle{大纲}
      \tableofcontents[currentsection,currentsubsection]
    \end{frame}
}

% If you wish to uncover everything in a step-wise fashion, uncomment
% the following command:
%\beamerdefaultoverlayspecification{<+->}

\newtheorem{ctheorem}[theorem]{定理}
\newtheorem{cproof}[theorem]{证明}
\newtheorem{cdefinition}[theorem]{定义}
\newtheorem{cexample}[theorem]{举例}

\newtheorem{answeredquestions}[theorem]{已解决的问题}
\newtheorem{openquestions}[theorem]{未解决的问题}

\begin{document}

\begin{frame}
    \titlepage
\end{frame}

\begin{frame}
    \frametitle{大纲}
    \tableofcontents[pausesections]
\end{frame}

\section{动机}

\subsection{所研究的基本问题}

\begin{frame}
    \frametitle{什么是素数?}
    \begin{cdefinition}
      \alert{素数}是有且仅有两个因子的数。
    \end{cdefinition}
    \pause
    \begin{cexample}
      \begin{itemize}
      \item 2是素数(两个因子:1和2)。
      \item 3是素数(两个因子:1和3)。
      \item 4不是素数(\alert{三个}因子:1、2和4)。
      \end{itemize}
    \end{cexample}
\end{frame}

\section{结论}

\subsection{主要结论}

\begin{frame}
    \frametitle{不存在最大素数}
    \framesubtitle{本证明使用了\underline{反证法}}

    \begin{ctheorem}
        不存在最大素数
    \end{ctheorem}
    \begin{cproof}
        \begin{enumerate}
        \item<1-> 假设存在最大的素数$p$。
        \item<2-> 令$q$为$p$的第一个乘积。
        \item<3-> 于是,$q + 1$不能被它们中的任何一个整除。
        \item<1-> 因此,$q + 1$也是素数并且大于$p$。\qedhere
        \end{enumerate}
        \visible<4->{本证明使用了\underline{反证法}。}
    \end{cproof}
\end{frame}

\subsection{其它结论}

\begin{frame}[fragile]
    \frametitle{一个素数生成算法}
%\begin{semiverbatim}
%\uncover<1->{\alert<0>{int main( void )}}
%\uncover<1->{\alert<0>{\{}}
%\uncover<1->{\alert<1>{   \alert<4>{std::}vector<bool> is_prime (100, true);}}
%\uncover<1->{\alert<1>{   for( int i = 2; i < 11; i++ )}}
%\uncover<2->{\alert<2>{   if( is_prime[i] ) \{}}
%\uncover<3->{\alert<3>{       \alert<4>{std::}cout << i << " ";}}
%\uncover<3->{\alert<3>{       for( int j = i; j < 100;}}
%\uncover<3->{\alert<3>{           is_prime [j] = false, j+=i );}}
%\uncover<2->{\alert<0>{   \}}}
%\uncover<1->{\alert<0>{   return 0;}}
%\uncover<1->{\alert<0>{\}}}
%\end{semiverbatim}
    \visible<4->{\alert<0>{Note the use of \alert{\texttt{std::}}.}}
\end{frame}

\section{总结}
\subsection{使用Blocks}

\begin{frame}
    \frametitle{下一步工作?}
    \begin{block}{已解决的问题}
        有多少个素数?
    \end{block}
    \begin{block}{未解决的问题}
        是否每个偶数都是两个素数的和?
    \end{block}
\end{frame}

\subsection{使用新的定义}

\begin{frame}
    \frametitle{下一步工作?}

    \begin{answeredquestions}
        有多少个素数?
    \end{answeredquestions}
    \begin{openquestions}
        是否每个偶数都是两个素数的和?
    \end{openquestions}
\end{frame}

\subsection{Using Columns}

\begin{frame}
    \frametitle{下一步工作?}
    \begin{columns}[t]
    \column{.5\textwidth}
        \begin{answeredquestions}
            有多少个素数?
        \end{answeredquestions}

    \column{.5\textwidth}
        \begin{openquestions}
            是否每个偶数都是两个素数的和?
            %\cite{Goldbach1742}
        \end{openquestions}
    \end{columns}
\end{frame}

% All of the following is optional and typically not needed.
\appendix
\section<presentation>{附录}

\begin{frame}%[allowframebreaks]
    \frametitle<presentation>{参考文献}

    \begin{thebibliography}{10}

    %\beamertemplatebookbibitems
    \beamertemplatearticlebibitems

    \bibitem{Goldbach1742}[Goldbach, 1742]
        Christian Goldbach.
        \newblock A problem we should try to solve before the ISPN '43 deadlin,
        \newblock \emph{Letter to leonhard Euler}, 1742.


    \end{thebibliography}
\end{frame}

\end{document}

-- 
woody

then sun rose thinly from the sea and the old man could see the other
boats, low on the water and well in toward the shore, spread out
across the current.


More information about the XeTeX mailing list