MiKTeX and proTeXtCompilation problem with MikTeX 2.6 and pst-all

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
atis
Posts: 2
Joined: Sun Oct 21, 2007 2:14 pm

Compilation problem with MikTeX 2.6 and pst-all

Post by atis »

Hello,

The following code worked fine with MikTeX 2.4, but not with 2.6.
(I want a box around my section numbers).

Code: Select all

\documentclass[11pt]{article}
\usepackage{pst-all}

\makeatletter
\renewcommand{\@seccntformat}[1]{\fbox{\csname the#1\endcsname}\hspace{0.5em}}
\makeatother

\begin{document}
\section{Title}
\end{document}
If you remove \usepackage{pst-all}, it works fine.

Does anyone know where the problem comes from ?

Thank you for your help !

Recommended reading 2024:

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

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

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

Compilation problem with MikTeX 2.6 and pst-all

Post by localghost »

Where is the sense in using pst-all in this case? Maybe some old versions of packages cause a collision. But this package isn't needed at all.

Code: Select all

\documentclass[11pt]{article}

\makeatletter
\renewcommand{\@seccntformat}[1]{\fbox{\csname the#1\endcsname}\hspace{0.5em}}
\makeatother

\begin{document}
\section{Title}
\end{document}
By the way, pst-all doesn't load all PSTricks packages, as you might think. You better load only the PSTricks packages that you really need, with pstricks-add as the last one. But using this will still cause problems. Maybe the titlesec package is of any help for you.
atis
Posts: 2
Joined: Sun Oct 21, 2007 2:14 pm

Re: Compilation problem with MikTeX 2.6 and pst-all

Post by atis »

Of course I don't use pstricks in this example. I just keeped wath's wrong.

Now, I've had an answer via the miktex mailing list. In fact, pstricks modifies
the definition of \@frameb@x (which is used in \fbox). So I just have to
put a \protect\fbox instead of \fbox.

Thank you for your help.

Atis
Post Reply