Author Topic: VTex and Beamer  (Read 27961 times)

Mike La Martina

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
    • View Profile
VTex and Beamer
« on: December 28, 2014, 12:55:06 am »
Since I am between quarters I am experimenting with VTex.  Until now I have not tried to use Beamer.
When I compile this file:

\documentclass{beamer}
\usetheme{default}                                           
\begin{document}
\begin{frame}
What is this?
\end{frame}
\end{document}     
I get the following messages:

Initializing GeX...
Loading vtex.pro profile.
GeX initialization completed.
! PostScript Error: Undefined name [pgfw]
 VMUSAGE 128116
OStack:
0002 49|0000| 0.398500
0001 0a|0016| save
0000 0a|0016| save

=============
XStack:
0000 f3|0000| <file>

=============
! PostScript Error: Undefined name [pgfw]
 VMUSAGE 128116
OStack:
0002 49|0000| 0.398500
0001 0a|0016| save
0000 0a|0016| save

=============
XStack:

=============
! PS interpreter error, code=21
 ( Undefined name [pgfw]).
\@EveryShipout@Output ...pout \box \@cclv

l.6.11(I:/latex/m3200/zbeamertest.tex)
> \end{frame}

If anyone has experience with this, I would appreciate any information you have.
Thanks

Mike

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: VTex and Beamer
« Reply #1 on: December 28, 2014, 01:33:52 am »
VTeX doesn't work with the Beamer package, AFAIR due to missing pgf support.

You could either try os2tetex, which is not easy to install or another OS. ;-)
« Last Edit: December 28, 2014, 01:38:55 am by Andreas Schnellbacher »

Mike La Martina

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #2 on: December 28, 2014, 04:31:27 am »
I do use another OS but during my downtime I try to see how much I can get to work on eCS.
In fact, I have had limited success with the pgf-1.01 package I got from CTAN.
Something (perhaps GEX)  complains that pgfsys-vtex.def does not support opaci.
However I do get output that looks a great deal like correct output.
In fact I can produce something from the beamer-3.07 solutions directory files.
Unfortunately the output does not match what I see on my other OS.
I see on the MicroPress web site that VTex 8.6 supports beamer and pgf.
I think the last version of VTYex free for OS/2 is 8.4.4.  Is that correct?

Thanks for the response. 

Thomas Fauster

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #3 on: December 29, 2014, 09:33:56 am »
pgf works with VTeX.
I found an example in my old files from 2008:
Code: [Select]
\documentclass[vtex]{beamer}
\usepackage{tikz} % which requires pgf
...
The PDF gives the following information:
Quote
Producer: VTeX v8.44 (OS/2), PDF backend with GeX
Creator: LaTeX with beamer class version 3.07
I do not remember that I had to do a lot of tweaking to get beamer working with VTeX.
Maybe it is the missing option [vtex] in \documentclass in your test example?

Mike La Martina

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #4 on: December 29, 2014, 11:12:13 am »
Thanks for the suggestion Thomas, I will try it.

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: VTex and Beamer
« Reply #5 on: January 05, 2015, 11:20:07 pm »
Mike, please post your experiences, when you're done, even if you won't make it work.

Mike La Martina

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #6 on: January 06, 2015, 05:24:30 am »
Unfortunately I am unable to compile this file:

\documentclass[11pt]{beamer}
\usetheme{default}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\author{Mike La Martina}
\title{Exponential Functions}
\setbeamercovered{transparent}
\setbeamertemplate{navigation symbols}{}
\logo{}
\institute{Cal Poly}
\date{\today}
\subject{Precalculus}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\tableofcontents
\end{frame}

\begin{frame}{Laws of Exponents}
\begin{itemize}
\item $a^n \times a^m = a^{n+m}$
\item $a^n \div a^m = a^{n-m}$
\item ${(a^n)}^m = a^{nm}$
\item $a^{\dfrac{1}{n}}=\sqrt[n]{a}$
\item $a^{-n}= \dfrac{1}{a^n}$
\end{itemize}
\end{frame}
\end{document}

This is the part of the log file that indicates a failure:
LaTeX Info: Redefining \includegraphics on input line 15.
 (I:/Latex Files/beamer.nav)
! Undefined control sequence.
\trans@languagepath ->\languagename
                                    ,English
l.18.11(I:/Latex Files/beamer.tex)
> \end{frame}
             
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.


LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available
(Font)              size <5> substituted on input line 18.

[1
Initializing GeX...
Loading vtex.pro profile.
GeX initialization completed.
! PostScript Error: Undefined name [pgfw]
 VMUSAGE 128116
OStack:
0002 49|0000| 0.398500
0001 0a|0016| save
0000 0a|0016| save

=============
XStack:
0000 f3|0000| <file>

=============
! PostScript Error: Undefined name [pgfw]
 VMUSAGE 128116
OStack:
0002 49|0000| 0.398500
0001 0a|0016| save
0000 0a|0016| save

=============
XStack:

=============
! PS interpreter error, code=21
 ( Undefined name [pgfw]).
\@EveryShipout@Output ...pout \box \@cclv
                                         
l.18.11(I:/Latex Files/beamer.tex)
> \end{frame}
             

Thomas Fauster

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #7 on: January 06, 2015, 11:09:39 am »
Both examples compile flawless here.
Log file and PDF output attached.

Mike La Martina

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #8 on: January 06, 2015, 03:59:40 pm »
It is curious that you have no problems and I do.

Perhaps you could try this attached file from the Beamer-3.07 package.
I do have some success but I still get the Gex Postscript error.

Thomas Fauster

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #9 on: January 06, 2015, 04:47:05 pm »
The problems seems to be related to the variable /pgfe which is apparently not defined in vtex.pro.

Your logfile shows some pgf-files dated 2013.
I suspect at some point the VTeX support was broken or dropped in pgf.
Try to locate an older version of pgf.

Alternatively, you could add to vtex pro a line with a dummy definition
/pgfe {} def
and see what happens to the error messages.


Mike La Martina

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #10 on: January 06, 2015, 07:44:33 pm »
Thanks.  I will give it a try and report back.

Mike La Martina

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #11 on: January 06, 2015, 09:19:14 pm »
I added /pgfe {} def to my vtex.pro.
I am now able to compile the file, but I still get and error as indicated.

LaTeX Info: Redefining \includegraphics on input line 15.
 (I:/Latex Files/beamer.nav)
! Undefined control sequence.
\trans@languagepath ->\languagename
                                    ,English
l.18.11(I:/Latex Files/beamer.tex)
> \end{frame}
             
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Also I do not get navigation symbols, but I do not see any error message about them.

By the way thanks for the help.

Mike

P.S

Since the beamer.nav file is indicated, here is its content:

\beamer@endinputifotherversion {3.33pt}
\headcommand {\slideentry {0}{0}{1}{1/1}{}{0}}
\headcommand {\beamer@framepages {1}{1}}
\headcommand {\slideentry {0}{0}{2}{2/2}{}{0}}
\headcommand {\beamer@framepages {2}{2}}
\headcommand {\slideentry {0}{0}{3}{3/3}{}{0}}
\headcommand {\beamer@framepages {3}{3}}
\headcommand {\beamer@partpages {1}{3}}
\headcommand {\beamer@subsectionpages {1}{3}}
\headcommand {\beamer@sectionpages {1}{3}}
\headcommand {\beamer@documentpages {3}}
\headcommand {\def \inserttotalframenumber {3}}

I can see no statement that is causing the error.
« Last Edit: January 06, 2015, 09:31:54 pm by Mike La Martina »

Thomas Fauster

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #12 on: January 07, 2015, 04:49:55 pm »
You could try to copy the /pgfe definition from this file to vtex.pro to improve the hack:
ftp://ftp.tug.org/tex/texlive/Contents/live/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-vtex.def
I think it should be done automatically when pgfsys-vtex.def is loaded,
but I am not familiar with the interaction of the pgf system layer with vtex.

Could the navigation symbols be invisible due to the unsupported opacity by vtex?

The error with \languagename is not in beamer.nav (parenthesis closed after file name and it has no line 18),
but after \end{frame} in beamer.tex (line 18, column 11)?
One suggestion would be to check/update the babel package.

Good luck, Thomas


Mike La Martina

  • Jr. Member
  • **
  • Posts: 59
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #13 on: January 08, 2015, 05:26:09 am »
Thanks Thomas.  I will try your suggestions.

Mike

Thomas Fauster

  • Newbie
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: VTex and Beamer
« Reply #14 on: January 09, 2015, 06:30:11 pm »
Mike,

the manual for the recent pgf version 3.0.0 says it requires vtex >8.46 and we are at 8.44.
pgf 1.18 works for me and may be found here:
http://sourceforge.net/projects/pgf/files/pgf/