In case you have texpower installed, can you please tell me what's going wrong with this example? I'm attaching 2 files. The testslide.tex uses some style information in GreenWhiteSlide.sty. On my system, if I just drop those in the same directory, then all runs fine with latex.

If you view the pdf file after running "pdflatex testslide.tex", you will see what I'm aiming at.

If I bring that into Lyx with the File/import latex option, the file does import, but when viewed, it does not have any of the slide titles and the cover page is missing.

I'm delighted to learn of the texpower package, because it does allow the feature I've eagerly hoped for, to "pause" a slide presentation between items. The syntax in the file is much simpler than ppower4 or prosper, so it is promising.

Making it work with LyX is my question now.

--
Paul E. Johnson                       email: [EMAIL PROTECTED]
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700

Attachment: testslide.tex
Description: TeX document

%%% R Core Style for PDF Presentations
%%% Copyright (C) 2003 R Foundation

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{GreenWhiteSlide}


\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{texpower}}

\ProcessOptions*

\RequirePackage{Rdefs}
\RequirePackage{color}
\RequirePackage{graphicx}
\RequirePackage{fancyhdr}
\RequirePackage{paralist}
\RequirePackage{soul}
\RequirePackage{texpower}
\RequirePackage[colorlinks, linkcolor=linkcolor]{hyperref}

\topmargin-15mm
\setlength{\textheight}{150mm}
\setlength{\headheight}{20mm}
%\headsep-15mm
\footskip10mm

\special{landscape}

\fancyhf[]{}
\renewcommand{\headrulewidth}{0pt}

\definecolor{darkred}{rgb}{0.56, 0, 0}
\definecolor{headcolor}{rgb}{0.8, 0.9, 0.07}
\definecolor{darkgreen}{rgb}{0.3, 0.4, 0.35}
\definecolor{darkblue}{rgb}{0, 0, 0.56}
\definecolor{linkcolor}{rgb}{0.56, 0.56, 0.56}
\definecolor{codecol}{rgb}{0.4,0.8,0.9}

\replacecolor{textcolor}{white}
\replacecolor{emcolor}{green}
\replacecolor{codecolor}{codecol}
\replacecolor{pagecolor}{darkgreen}


\newcounter{SlideNr}
\newcommand{\newslide}[1]{
  \newpage
  \addtocounter{SlideNr}{1}
  \fancyhead[L]{\Large\bf\textcolor{headcolor}{#1}}
  \hypertarget{Slide.\arabic{SlideNr}}{}
  \pdfbookmark[1]{#1}{Slide.\arabic{SlideNr}}
}

\newcommand{\lnavarrow}{
  \hyperlink{Section.\arabic{SectionNr}}{$\leftarrow$}
}

\newcommand{\rnavarrow}{
  \addtocounter{SectionNr}{1}
  \hyperlink{Section.\arabic{SectionNr}}{$\rightarrow$}
  \addtocounter{SectionNr}{-1}
}  
\newcommand{\navarrows}{
  \lnavarrow\rnavarrow
}  

\fancypagestyle{section}{\fancyhf{}
    \renewcommand{\headrulewidth}{0pt}
}

\setcounter{tocdepth}{2}
\newcounter{SectionNr}
\newcommand{\section}[1]{
  \ifdisplay
  \fancyfoot[L]{\tiny\navarrows}
  \fancypagestyle{section}{\fancyhf{}
    \renewcommand{\headrulewidth}{0pt}
    \fancyfoot[L]{\tiny\navarrows}
  }
  \fi
  \newpage
  \thispagestyle{section}
  \addtocounter{SectionNr}{1}
  \centerline{\Large\bf\textcolor{emcolor}{#1}}
  \hypertarget{Section.\arabic{SectionNr}}{}
  \pdfbookmark[0]{#1}{Section.\arabic{SectionNr}}
  \newpage
}

\newcommand{\subsection}[1]{
  {\large\bf #1}
  }
\newcommand{\subsubsection}[1]{
  {\textbf{#1}}
}

[EMAIL PROTECTED]
\location{}
[EMAIL PROTECTED]
\affiliation{}
[EMAIL PROTECTED]
\titlefoot{}
\newcommand{\titlelogo}{%
  \begin{minipage}[b]{\textwidth}
  \end{minipage}
}

\renewcommand{\maketitle}{%
  \begin{center}
    \titlelogo

    \Large
    \bigskip
    [EMAIL PROTECTED]

    \normalsize
    \bigskip
    {\bf [EMAIL PROTECTED]

    \smallskip
    [EMAIL PROTECTED]
    
    \smallskip
    [EMAIL PROTECTED]

    
    \bigskip
    {\small\it [EMAIL PROTECTED]
    
    \bigskip
    {\tiny [EMAIL PROTECTED]
  \end{center}
  \newpage
  \renewcommand{\headrulewidth}{0.4pt}
  \pagestyle{fancy}
}

\hyphenpenalty=5000
\tolerance=1000


Reply via email to