Document ClassesBeamer class, pstricks and \usetheme{warsaw}

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
dk1310
Posts: 2
Joined: Wed Mar 16, 2011 12:45 am

Beamer class, pstricks and \usetheme{warsaw}

Post by dk1310 »

Hi there. I'm new at this.

When I am trying to compile a beamer class presentation, with \usetheme{warsaw} and \usepackage{pstricks} (using latex-miktex 2.8), winedt5.5 gives me the following error:

Code: Select all

! undefined control sequence.
<recently read> \@@drv
1.11 \begin{document}
?
Although it works with another theme (i.e. montpellier), or without \usepackage{pstricks}. The funny thing is that it used to compile, but now it does not any more (I must have updated some package...)

I post minimal code below and also the log file with \listfiles in the attachment.

Can anyone help me with this? Thank you!
David

Code: Select all

\listfiles
\documentclass[serif]{beamer} %
\usepackage{pstricks}

\usetheme{Warsaw}
%\usetheme{Montpellier}

\begin{document}
\begin{frame}
 Hi there
\end{frame}
\end{document}
Attachments
EFGFeb2010.log
The according log file.
(38.97 KiB) Downloaded 442 times

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

Beamer class, pstricks and \usetheme{warsaw}

Post by localghost »

The log file is incomplete. But that's not relevant here. You only can compile documents using PSTricks (Postscript Tricks) directly with PDFLaTeX when simultaneously using a package like auto-pst-pdf. Otherwise you have to go via DVI and PS to PDF by compilation with LaTeX. If do not need special features of PSTricks, you can use the pgf/tikZ package which is internally used by the beamer class. You might present a drawing that you want to do so we could try to reproduce it with pgf/tikZ.


Beat regards and welcome to the board
Thorsten
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Beamer class, pstricks and \usetheme{warsaw}

Post by CrazyHorse »

dk1310 wrote: When I am trying to compile a beamer class presentation, with \usetheme{warsaw} and \usepackage{pstricks} (using latex-miktex 2.8), winedt5.5 gives me the following error:

Code: Select all

! undefined control sequence.
<recently read> \@@drv
1.11 \begin{document}
?
run the document with xelatex instead of pdflatex or choose the sequence latex->dvips->ps2pdf

Herbert
dk1310
Posts: 2
Joined: Wed Mar 16, 2011 12:45 am

Re: Beamer class, pstricks and \usetheme{warsaw}

Post by dk1310 »

Hi Herbert, Thorsten.
Thank you for your quick reply. Although both answers seem correct, due to my little knowledge of latex, I couldn't implement any of these:

1) I don't have the option to run xetex or xelatex in my winedt. So I guess I cannot compile to dvi first

2) I added \usepackage{auto-pst-pdf}, but it still gives me the same error

Also I don't know exactly which graphics since I am working as RA for a professor and I have been asked to "make this run"...

Thanks a lot...

David
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Beamer class, pstricks and \usetheme{warsaw}

Post by CrazyHorse »

dk1310 wrote: 1) I don't have the option to run xetex or xelatex in my winedt. So I guess I cannot compile to dvi first

2) I added \usepackage{auto-pst-pdf}, but it still gives me the same error

Also I don't know exactly which graphics since I am working as RA for a professor and I have been asked to "make this run"...
I installed WinEdt6.0 and had a xetex and xelatex at the menu when I open it for pdf-texify. After choosen xelatex and then clicking on the button I could run xelatex. Maybe that you have to download the file xdvipdfmx.cfg from CTAN or
http://texnik.dante.de/config/ and to save it in
...\MiKTeX2.9\tex\xetex\xetex-pstricks

Don't forget to update the file name data base

Herbert
Post Reply