Generalhelp with powerdot slides

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
mhudson
Posts: 5
Joined: Sun Jul 15, 2007 5:30 am

help with powerdot slides

Post by mhudson »

Advice please.
Using tetex in Mandriva 2007.1 powerdot's example1 bombs (logfile below)
Maybe one of the loaded packages is buggy?
TIA

[mhudson@penguin doc]$ latex powerdot-example1
This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.5)
entering extended mode
(./powerdot-example1.tex
LaTeX2e <2003/12/01>
Babel <v3.8a> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
(/home/mhudson/texmf/tex/latex/powerdot/powerdot.cls
Document Class: powerdot 2005/12/06 v1.3 powerdot presentation class (HA,CE)
(/usr/share/texmf/tex/latex/xkeyval/xkeyval.sty
(/usr/share/texmf/tex/generic/xkeyval/xkeyval.tex
(/usr/share/texmf/tex/generic/xkeyval/keyval.tex)))
(/home/mhudson/texmf/tex/latex/base/article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(/home/mhudson/texmf/tex/latex/base/size10.clo))
(/home/mhudson/texmf/tex/latex/base/size11.clo)
(/home/mhudson/texmf/tex/latex/geometry/geometry.sty
(/usr/share/texmf/tex/latex/geometry/geometry.cfg))
(/home/mhudson/texmf/tex/latex/hyperref/hyperref.sty
(/home/mhudson/texmf/tex/latex/hyperref/pd1enc.def)
(/usr/share/texmf/tex/latex/hyperref/hyperref.cfg)
Implicit mode ON; LaTeX internals redefined
(/home/mhudson/texmf/tex/latex/misc/url.sty))
*hyperref using driver hdvips*
(/home/mhudson/texmf/tex/latex/hyperref/hdvips.def
(/home/mhudson/texmf/tex/latex/hyperref/pdfmark.def))
(/home/mhudson/texmf/tex/latex/graphics/graphicx.sty
(/home/mhudson/texmf/tex/latex/graphics/graphics.sty
(/home/mhudson/texmf/tex/latex/graphics/trig.sty)
(/usr/share/texmf/tex/latex/graphics/graphics.cfg)
(/home/mhudson/texmf/tex/latex/graphics/pdftex.def)))
(/usr/share/texmf/tex/latex/pstricks/pstricks.sty
(/home/mhudson/texmf/tex/generic/pstricks/pstricks.tex
`PSTricks' v1.04 <2004/06/22> (tvz)
(/usr/share/texmf/tex/generic/pstricks/pstricks.con))
(/home/mhudson/texmf/tex/latex/xcolor/xcolor.sty
(/usr/share/texmf/tex/latex/graphics/color.cfg)

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...

l.1440 white,1/1,1,1/0,0,1/0,0,0,0}

?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

help with powerdot slides

Post by localghost »

To make sure which packages are used, please put the \listfiles command in the first line of the code. Try the compiling route LaTeX -> PS -> PDF.

Code: Select all

\listfiles
\documentclass{powerdot}
…
I only can guess what's going wrong, but i think you might use obsolete versions of some packages.
mhudson
Posts: 5
Joined: Sun Jul 15, 2007 5:30 am

Re: help with powerdot slides

Post by mhudson »

Thanks for your response.

I've now re-installed tetex under mandriva 2007.1 x86-64
powerdot-example1.tex compiles fine on i586 but produces multiple error on x86-64
The first error in the log-file is now:
! LaTeX Error: Unknown graphics extension: .ps.

Here is the package list:

latex:
*File List*
powerdot.cls 2005/12/06 v1.3 powerdot presentation class (HA,CE)
xkeyval.sty 2005/11/25 v2.5e package option processing (HA)
xkeyval.tex 2005/11/25 v2.5e key=value parser (HA)
article.cls 2005/09/16 v1.4f Standard LaTeX document class
size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
geometry.sty 2002/07/08 v3.2 Page Geometry
geometry.cfg
hyperref.sty 2007/02/27 v6.75t Hypertext links for LaTeX
pd1enc.def 2007/02/27 v6.75t Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive and teTeX
kvoptions.sty 2006/08/22 v2.4 Connects package keyval with LaTeX options (HO
)
url.sty 2005/06/27 ver 3.2 Verb mode for urls, etc.
hdvips.def 2007/02/27 v6.75t Hyperref driver for dvips
pdfmark.def 2007/02/27 v6.75t Hyperref definitions for pdfmark specials
graphicx.sty 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty 2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
trig.sty 1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg 2005/08/28 v1.4 graphics configuration of teTeX/TeXLive
pdftex.def 2007/01/08 v0.04d Graphics/color for pdfTeX
pstricks.sty 2006/08/10 v0.32 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex 2006/04/29 v1.14c `PSTricks' (tvz)
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
color.cfg 2005/08/28 v1.4 color configuration of teTeX/TeXLive
enumitem.sty 2004/07/19 v1.0 Customized lists
verbatim.sty 2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
powerdot-default.sty 2005/12/06 v1.3 default style (HA)
pifont.sty 2005/04/12 PSNFSS-v9.2a Pi font support (SPQR)
upzd.fd 2001/06/04 font definitions for U/pzd.
upsy.fd 2001/06/04 font definitions for U/psy.
nameref.sty 2006/12/27 v2.28 Cross-referencing by name of section
refcount.sty 2006/02/20 v3.0 Data extraction from references (HO)
***********
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

help with powerdot slides

Post by localghost »

mhudson wrote: […] powerdot-example1.tex compiles fine on i586 but produces multiple error on x86-64 […]

That shouldn't make any difference, because it affects only the binaries of the LaTeX system.
mhudson wrote: […] The first error in the log-file is now:
! LaTeX Error: Unknown graphics extension: .ps.

The used packages seem to be OK. It seems that you try to compile your source with pdflatex, but a graphics file is only provided in PS format. So you have different ways of avoiding that.
  1. Compile only with latex and convert the document to PDF. Editors like Kile or TeXMaker support this very comfortable.
  2. Make sure all graphics files are provided in the formats JPG, PNG, PDF (accepted by pdflatex) and PS/EPS (accepted by latex). So you don't have to worry about those error messages, because the affected compiler will find the right graphics format on its own. You then can compile however you want.
If all that doesn't help, post the affected extract of the source code and the graphics file you try to include as an attachment.
mhudson
Posts: 5
Joined: Sun Jul 15, 2007 5:30 am

help with powerdot slides

Post by mhudson »

Thanks again for those comments and suggestons. tetex's latex command produces this error.

Code: Select all

[mhudson@penguin doc]$ latex powerdot-example1
If all that doesn't help, post the affected extract of the source code and the graphics file you try to include as an attachment.

You'll note the graphic powerdot-default.ps is part of the default style file for the powerdot package.
I've attached both, together with the latex source code.
Appreciate further ideas here.
Attachments
powerdot-default.ps
(5.52 KiB) Downloaded 401 times
powerdot-default.sty
(4.9 KiB) Downloaded 321 times
powerdot-example1.tex
(1.92 KiB) Downloaded 356 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

help with powerdot slides

Post by localghost »

The files in the attachment are not what i expected, since i have them as default on my system. But you didn't mention before, that the pure powerdot example doesn't work. Looking at the documentation of the powerdot package, you can see that powerdot presentations only can be compiled by latex, not by pdflatex (see Table 2: Dependencies, p. 26). The reason is that powerdot uses pstricks as default. Section 8 (Compiling your presentation, p. 25ff) gives more information right at the beginning of paragraph 8.2 (Creating and viewing output).
'The powerdot class' documentation wrote: To compile your presentation, run it with LaTeX.

I can't comprehend why latex in your case seems not to accept a graphics file in PS format. This kind of error message only should be given by pdflatex. On my systems (Windows XP with MiKTeX 2.6 and openSUSE 10.2 with teTeX) everything is working fine.
mhudson
Posts: 5
Joined: Sun Jul 15, 2007 5:30 am

help with powerdot slides

Post by mhudson »

Does this help explain it?

Code: Select all

[mhudson@penguin doc]$ which latex
/usr/bin/latex
[mhudson@penguin doc]$ ls -l /usr/bin/latex
lrwxrwxrwx 1 root root 6 Jul 15 21:44 /usr/bin/latex -> pdftex*
[mhudson@penguin doc]$ ls -l /usr/bin/pdflatex
lrwxrwxrwx 1 root root 6 Jul 15 21:44 /usr/bin/pdflatex -> pdftex*
[mhudson@penguin doc]$

M.H.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

help with powerdot slides

Post by localghost »

That explains all! Do you know how to change the soft links to get it work? On my system it looks like this.

Code: Select all

thorsten@localghost:~> which latex
/usr/bin/latex
thorsten@localghost:~> ls -l /usr/bin/latex
lrwxrwxrwx 1 root root 41 27. Jan 20:33 /usr/bin/latex -> ../share/texmf/teTeX/bin/i586-linux/latex
thorsten@localghost:~> ls -l /usr/bin/pdflatex
lrwxrwxrwx 1 root root 44 27. Jan 20:33 /usr/bin/pdflatex -> ../share/texmf/teTeX/bin/i586-linux/pdflatex
Did you change something at any time? I didn't, so these have to be the default settings.
mhudson
Posts: 5
Joined: Sun Jul 15, 2007 5:30 am

help with powerdot slides

Post by mhudson »

After a second re-install (i.e. 3 rd install) of tetex and friends,
this time first deleting all configuration and system directories created under $HOME
and the previous configuration file /usr/share/texmf/web2c/texmf.cnf,
everything (i.e. powerdot in latex) just works (though xdvi warns:
"Warning: Missing charsets in String to FontSet conversion"

I don't know what this means, but it doesn't seem to matter.

Code: Select all

I found no difference between /usr/share/texmf/web2c/texmf.cnf and the second install version:
[code][mhudson@penguin doc]$ diff /usr/share/texmf/web2c/texmf.cnf /usr/share/texmf/web2c/texmf.cnf.v1
[mhudson@penguin doc]$
However there had been from first saved as rpmsav to second version:
[mhudson@penguin doc]$ diff /usr/share/texmf/web2c/texmf.cnf.v0 /usr/share/texmf/web2c/texmf.cnf.v1
1c1
< % texmf.cnf -- runtime path configuration file for kpathsea.
---
> % original texmf.cnf -- runtime path configuration file for kpathsea.
8c8
<
---
> #
558a559,560
>
> % Parameter specific to MetaPost.[/code]

I had set the local path to $HOME/texmf I think before, and deleted the "original" (this was meant to retain my conf).

Following on to install kile I found the System check required KDVI (though it is listed as optional on kile's homepage). This package wasn't needed by tetex-latex though.

So, problem was a tetex configuration issue, solved by re-installing after deleting all previous configuration files.

Thanks for the advice.

PS interesting that now:

Code: Select all

[mhudson@penguin doc]$ ls -l /usr/bin/latex
lrwxrwxrwx 1 root root 6 Jul 21 14:03 /usr/bin/latex -> pdftex*
[mhudson@penguin doc]$ which pdflatex
/usr/bin/pdflatex
[mhudson@penguin doc]$ ls -l /usr/bin/pdflatex
lrwxrwxrwx 1 root root 6 Jul 21 14:03 /usr/bin/pdflatex -> pdftex*
[mhudson@penguin doc]$   
i.e. links remain as before !?!?
Post Reply